Skip to main content
8-Gravel
April 22, 2022
Question

Argument is not a number

  • April 22, 2022
  • 4 replies
  • 2777 views

Hello Experts,

 

Somehow I am getting error in Mathcad Prime but it used to work with my 14 application 

4 replies

23-Emerald V
April 22, 2022

@JM_10241707 wrote:

Hello Experts,

 

Somehow I am getting error in Mathcad Prime but it used to work with my 14 application 


Unfortunately, I've only got Mathcad Prime Express 8, so can't check your worksheet.  However, I note that "H" is highlighted.  I know it's got Variable style, but it might be worth checking if you have "units in symbolics" enabled (a Calculation ribbon option).  If so, does disabling it make a difference?  (H is Henry).

 

Stuart

8-Gravel
April 22, 2022

I want to use H as variable and not as UNIT. Is there any reason why this is failing?

23-Emerald V
April 22, 2022

@JM_10241707 wrote:

I want to use H as variable and not as UNIT. Is there any reason why this is failing?


Did you check whether the use units in symbolic flag was set?  Does unsettling it make a difference?

 

Another thing to try is using clearsym to ensure that H is treated as a purely symbolic name.

 

https://support.ptc.com/help/mathcad/r8.0/en/#page/PTC_Mathcad_Help/variable_clearing_functions.html#wwID0E3CEEB

 

Stuart

21-Topaz II
April 23, 2022
8-Gravel
April 29, 2022

@StuartBruff @terryhendicott 

 

Thank you for engaging . The value entered in prime is not required to be instated in Mathcad 15. See attached 

Why we need to enter values in prime?

23-Emerald IV
April 29, 2022

This is your Mathcad 14 file:

LucMeekes_0-1651254322064.png

And this is what you have in Prime 8:

LucMeekes_2-1651254440062.png

 

Note that in the second function of F you have an H that should be an x[0

That is one thing you need to fix.

 

Then, symbolic evaluation of F itself gives:

LucMeekes_3-1651254705692.png

Which demonstrates that Prime 8 has a bug where it fails to see I as a parameter to the function F, it is confusing it with the function I() that you defined above.

 

Finally you're running into autolabelling problems. Make sure all your variables are labelled as a variable, and your functions are labelled as a function, then see what happens.

 

I got this:

LucMeekes_4-1651255299860.png

I'm afraid this does not make you happy.

 

Success!
Luc

 

25-Diamond I
April 29, 2022

It looks like the symbolic evaluation of the "Jacob" function got broken in Prime and needs to be fixed.

See these threads:

https://community.ptc.com/t5/PTC-Mathcad/Jacob-not-showing-expected-result-01-Possible-BugRep/m-p/772070

https://community.ptc.com/t5/PTC-Mathcad/Jacobian-matrix/m-p/783414