cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Newton-Raphson Method - MC Prime 8

Cornel
18-Opal

Newton-Raphson Method - MC Prime 8

Hello,

CornelBejan_0-1675757402203.png

 

MC Prime 8 file attached.

Thank you.

 

1 ACCEPTED SOLUTION

Accepted Solutions
ttokoro
20-Turquoise
(To:Cornel)

Chage xi-1 - and -> to = 

 

image.pngimage.pngimage.pngimage.png

View solution in original post

5 REPLIES 5

As Newton-Raphson is essentially numeric there is little point in using a symbolic equals.  Just stick with numerics.

Here is my equivalent using Mathcad 8 Express:

NewtonRaphson.png

Alan

 

ttokoro
20-Turquoise
(To:Cornel)

Chage xi-1 - and -> to = 

 

image.pngimage.pngimage.pngimage.png

Werner_E
24-Ruby V
(To:Cornel)

As Alan I am asking what the idea of a symbolical evaluation of the intermediate results of a numerical approximation algorithm might be!!

Whats wrong with

Werner_E_0-1675774221497.png

BTW you had a wrong sign in your implementation of the Newton algorithm. See Alan's approach for a correction.

Werner_E_1-1675774279121.png

 

Here is the (unsimplified) symbolic result with four iteration steps.

Werner_E_2-1675774305627.png

Are you sure that you really want to see the result for 5 or more steps? 🙂

Using "simplify" or "simplify, max" may give you a more compact result at the cost of a lot of coffee to drink while  waiting for the calculation to finish.

But again, what's the sense of displaying those results symbolically?

If you really need to see the symbolic representation of the fifth iteration step, here it is

Werner_E_0-1675775143985.png

 

And for an exact symbolic result

Werner_E_0-1675775914458.png

😄

 

 

So, Thank you all for your comments and vigilance. It's fine and enough in this case to display results in numerical form.
Thank you.

Top Tags