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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Argument is not a number

JM_10241707
6-Contributor

Argument is not a number

Hello Experts,

 

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

8 REPLIES 8


@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

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


@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

I tried that but it still the same error 

Hi,

Try this

@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?

LucMeekes
23-Emerald III
(To:JM_10241707)

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

 

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

 

Top Tags