Question: Below is the code i have, i am getting lot of errors and also not sure if this correct. Request you to help me with

Below is the code i have, i am getting lot of errors and also not sure if this correct. Request you to help me with the above question to write a c program and show its output.
/* Find root x for xsinx = e^x-xsin(x^2), by the Newton-Raphson method in the interval, [-2, 2].*/ #include #include #include float function(float x) { return pow(2.7183,x) - x*sin(pow(x,2))- x*sin(x); // f(x) function value calculation } // differntitate function float diff (float x) { return pow(2.7183,x) - (2*(x*x)) * (cos(x*x)) - x*cos(x) - sin(x) - sin(x*x); // f^-1(x) function calculate value } void main() { int i, m=25; // declared of variables float x1, p = -2, y, error= 0.001; // 0.001 acceptable error for (i=1; i Write C code for the following: 1. Find x for sin x = ex- (x2), x sin by the Newton-Raphson method in the interval, [-2,2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
