Skip to content

aTTiny73/Newton-Raphson-numerical-method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Newton-Raphson-numerical-method

Newton-Raphson numerical method for solving any polynominal order

Use example :

f : 3s^4 + 10s^3 + 21s^2 + 24s - 16
df/ds = 12s^3 + 30s^2 + 24s + 24

--Newton-Raphson Method--

1.Enter the polynominal function
2.Choose another starting point
3.Print the entered polynominal function
4.Exit

1

Enter the polynominal function order:

4

Enter the coefficient associated with S^4

3

Enter the coefficient associated with S^3

10

Enter the coefficient associated with S^2

21

Enter the coefficient associated with S^1

24

Enter the coefficient associated with S^0

-16

Enter the polynominal order of differentiated function:

3

Enter the coefficient associated with S^3

12

Enter the coefficient associated with S^2

30

Enter the coefficient associated with S^1

24

Enter the coefficient associated with S^0

24

Enter the number of iterations:

30

Enter the starting point S0:

1

0.533333
0.437199
0.450489
0.44784
0.448347
0.448249
0.448268
0.448264
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
0.448265
--Newton-Raphson Method--

1.Enter the polynominal function
2.Choose another starting point
3.Print the entered polynominal function
4.Exit

3

3s^4+10s^3+21s^2+24s^1-16s^0
-------------------------
12s^3+30s^2+24s^1+24s^0
--Newton-Raphson Method--

1.Enter the polynominal function
2.Choose another starting point
3.Print the entered polynominal function
4.Exit

4

About

Newton-Raphson numerical method for solving any polynominal order

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages