Question: there is a two equations.I applied these equations newton raphson method in c++ code my code is below #include #include using namespace std; double f(double

 there is a two equations.I applied these equations newton raphson method

there is a two equations.I applied these equations newton raphson method in c++ code my code is below

#include #include using namespace std; double f(double x) { return 53.1187-14.701*log(x)-4849.3/x; // this is my first equation } double f1(double x) { return 4849.3/x*x-14.701/x*In(10); // I tried to write second equation but there is a error about In(10) how to write In(10) functions }

int main () { double x=300; double err; double tol=0.001; while (1) { err=f(x)/f1(x); x=x-err; cout 4849.3 Let f(T)= 53.1187- differentiatinga -F'T) = -14701109T=0 wie get 4 849.3 14.701 dLog(T). %3D Tin10 TxLn 10

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!