Skip to main content
ttokoro
21-Topaz I
21-Topaz I
May 26, 2025
Solved

Recursion

  • May 26, 2025
  • 2 replies
  • 604 views

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.

 

 

 

Best answer by Werner_E

???????

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.

2 replies

Werner_E25-Diamond IAnswer
25-Diamond I
May 26, 2025

???????

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
ttokoro21-Topaz IAuthor
21-Topaz I
May 26, 2025

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

t.t.