Question: these are equtions from analytical solution. I tried to write newton-raphonson method using c++ .my code is below #include #include using namespace std; double f(double

 these are equtions from analytical solution. I tried to write newton-raphonson

method using c++ .my code is below #include #include using namespace std;

these are equtions from analytical solution. I tried to write newton-raphonson method using c++ .my code is below

#include #include using namespace std; double f(double x) { return 1.000*exp(x)+435*(exp(x)-1)/x-1.564; } double f1(double x) { return 1.000*exp(x)+435*(exp(x)/x-exp(x)-1/x*x); }

int main () { double x=1.0; double err; double tol=0.001; while (1) { err=f(x)/f1(x); x=x-err; cout

but something is error could you solve my fault ?

Use Newton's method to find an approximation for X, accurate to within 10-4, for the population 1,564,000 = 1,000,000e4+ 135, tel 8(2)- (-156400 1000 + 435.0000 -1) 5'(2) = 1000000e + 435000 e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!