logo

Crowdly

 program coardei; #include <iostream> #include <iomanip> #include <math.h>...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

 program coardei;

#include <iostream>

#include <iomanip>

#include <math.h>

using namespace std;

a, b, c, e, x;

i, n;

double f(double x)

{

return log(x * sin(x));

}

int main()

{

a = 0.5; b = 1.5; n = 10;

c = - f(a) / (f(b) - f(a)) * ();

if (f(c) * f(a) 0) e = b; x = a;}

else { e = a; x = b; }

// calculul iterativ al solutiei}

for (i = 1; i <= n; i)

{

x = x - (f(x)) / (f(e) - f(x)) * ();

cout << setprecision(8) << " x=" << x << " f(x)=" << f(x) <<

endl;

}

return 0;

}

More questions like this

Want instant access to all verified answers on moodle1.ceiti.md?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!