Hi I need to write a python code for thefollowing: (part a and b can be done by hand)
Consider the nonlinear equation:
f (x) = sin(πx) − x2= 0
(a) Can you “solve the equation by hand”, i.e. express the solutionx* explicitly in terms of
elementary functions and the constant π?
(b) Show that the equation f (x) = 0 has the same solution(s) asg(x) = x if
g(x) =1/2π(sinπx)-1/2π(x2)+x
In fact, we can show that for any initial point in (0, 2] thesequence xk= g(xk−1 ) converges to a
unique solution x* .
(c) Write a function that computes this sequence. Your functionshould:
– Take for input the
PayPal Gateway not configured
PayPal Gateway not configured