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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Newton-Raphson Method - MC Prime 8

Cornel
19-Tanzanite

Newton-Raphson Method - MC Prime 8

Hello,

CornelBejan_0-1675757402203.png

 

MC Prime 8 file attached.

Thank you.

 

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
25-Diamond I
(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?

Werner_E
25-Diamond I
(To:Werner_E)

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

😄

 

 

Cornel
19-Tanzanite
(To:Werner_E)

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.

Announcements

Top Tags