Skip to main content
14-Alexandrite
July 31, 2018
Solved

PROGRAMMING NEWTON RAPHSON ON PRIME

  • July 31, 2018
  • 2 replies
  • 7109 views

Hi

I need to use Newton algorythm with prime.

I write algorythm  step by step.

I don't know prime correctly  to make a program for iterative loop.

I need to make 10 loop max, and i want to program break when:

- iterative loop over 10

or

- Error control match with range value Ec

I need to enter manualy first step x0

I need to enter nanualy Error_control Ec

Please, can you help me to write NR with program in prime.

Thanks

 

in this capture:

find root for f(x) function with NR algorythm

 

Capture.PNG

 

Best answer by Werner_E

Here's a slightly different function with two additional arguments - function and max.iterations - and a table as output:

B.png

Worksheet in P4 format attached.

 

2 replies

23-Emerald I
July 31, 2018
XDN14-AlexandriteAuthor
14-Alexandrite
July 31, 2018

Thanks, it's great!

because i don't understand one things

In you program, where is limited iteration with 10 loop max ?

 

Werner_E25-Diamond IAnswer
25-Diamond I
July 31, 2018

Here's a slightly different function with two additional arguments - function and max.iterations - and a table as output:

B.png

Worksheet in P4 format attached.

 

XDN14-AlexandriteAuthor
14-Alexandrite
July 31, 2018

It's ok for me !!!

Thanks!!!!

 

For my use, it's not necessary to iterative loop is "var"

ten value will be implemented in hard.

But it's more pretty in your solutionSmiley Wink