Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago

Question

7. Do the organizations social activities reflect diversity?

Answered: 1 week ago