Create a C programme code for this Solve x sin x ex sin x2

Create a C programme code for this,

Solve x sin x - e^x sin (x^2) = 0, by the bisection method with initial value of x = -2 and 0.

Solution

#include <stdio.h>

#include <math.h>

int main()

{

float k = 2,k1=0;

float sin_value_square = sin(k*k);

float sin_value=sin(-2);

float exp_value = exp(k);

float result1=-2*sin(-2)-exp(-2)-2*sin(-2*-2);

float result2=-0*sin(0)-exp(0)-0*sin(0*0);

printf(\"value for k=-2 is %f\",result1);

printf(\"value for k=0 is %f\",result1);

}

Create a C programme code for this, Solve x sin x - e^x sin (x^2) = 0, by the bisection method with initial value of x = -2 and 0.Solution#include <stdio.h&g

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site