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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Translate the entire conversation x

Recursion

ttokoro
21-Topaz I

Recursion

Recursion of Programming.

Prime 9.

image.pngimage.pngimage.png

Prime 10.01

image.png

Prime 11

image.png

 

So we must use Prime 11 or Prime 9, 8, 7.

Prime 10 kills auto vectorizatin of range by = and also Recursion of Programming.

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:ttokoro)

???????

Why don't you ever attach the associated worksheet???

 

I can't confirm the problem you seem to experience.

The result is exactly(!) the same in Prime 9, 10 and 11

Werner_E_0-1748262013624.png

I also don't experience any problems in any of the three Prime versions when I use a "if...elseif" cascade

Werner_E_1-1748274663251.png

 

Prime 9 worksheet attached

 

BTW, IMH the picture from Prime 10 which you posted can't be explained by any error in the implementation of recursion in the software. I rather suspect that you have defined another function f(x) somewhere above so that your new function f(x) actually is calling the one defined above.
But this happens equally in all versions of Prime (and also in real Mathcad)! A previously define function has priority over the function just being defined when called from within the new function.

Something like

Werner_E_2-1748275741147.png

 

So to seriously test if Prime 10 has a problem you would have to create a worksheet in Prime 9 and use THE VERY SAME sheet in P10 and P11. If there is a difference after letting the sheet recalculate, then you my have found a problem.

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:ttokoro)

???????

Why don't you ever attach the associated worksheet???

 

I can't confirm the problem you seem to experience.

The result is exactly(!) the same in Prime 9, 10 and 11

Werner_E_0-1748262013624.png

I also don't experience any problems in any of the three Prime versions when I use a "if...elseif" cascade

Werner_E_1-1748274663251.png

 

Prime 9 worksheet attached

 

BTW, IMH the picture from Prime 10 which you posted can't be explained by any error in the implementation of recursion in the software. I rather suspect that you have defined another function f(x) somewhere above so that your new function f(x) actually is calling the one defined above.
But this happens equally in all versions of Prime (and also in real Mathcad)! A previously define function has priority over the function just being defined when called from within the new function.

Something like

Werner_E_2-1748275741147.png

 

So to seriously test if Prime 10 has a problem you would have to create a worksheet in Prime 9 and use THE VERY SAME sheet in P10 and P11. If there is a difference after letting the sheet recalculate, then you my have found a problem.

ttokoro
21-Topaz I
(To:ttokoro)

This is my mistake. My text region with math did the bad job like Werner_E said.

Announcements

Top Tags