Skip to main content
1-Visitor
January 26, 2020
Question

Issue with for statement (MC15)

  • January 26, 2020
  • 1 reply
  • 1749 views

Hi

Something strange, very simple example, nothing special, but it doesn`t work

Error.png

MC15 file is attached, thanks in advance

1 reply

23-Emerald IV
January 26, 2020

Try:

LucMeekes_0-1580042916959.png

Success!
Luc

ifomenko1-VisitorAuthor
1-Visitor
January 26, 2020

Many thanks, Luc

Your is way works.

Just for info everything is right when it is not a function

Error2.png

25-Diamond I
January 26, 2020

@ifomenko wrote:

Many thanks, Luc

Your is way works.

Just for info everything is right when it is not a function

 


No, not at all! 😉

You confuse numerical and symbolic evaluation.

Everythings is OK if you use numeric evaluation - even in your posted sheet with the function.

Its the symbolic evaluation which causes the error and this error also occurs if you don't turn it into a function.

As the very same error also occurs in Prime 6 with the old (muPad) and the new (FriCAS) symbolic processor and probably also in Luc's MC11 with Maple, it looks like the problem is not the symbolic processor itself but the interface between Mathcad and the symbolic which obviously will only accept scalar values for enumeration types.

So I guess we can call it a Mathcad & Prime bug.