Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hello there,
I am new to mathcad and in my start I got a strange result:
I am deviding a length of dimension m by a constant number and the result is not what I was expecting
H:=10 m soil layer thickness
N:=5 number of calculation layers
Dz: = H/N
Dz= 400
Solved! Go to Solution.
Chances are that you have defined a variable m:=200 m somewhere above and so Prime possibly can't know if you mean unit meter or your user defined variable m when you type m and it assumes that your own variable m is meant.
So either use another name for your variable or you have to type "m" followed by pressing Ctrl-u to change the labelling to unit.
If you use the default setting you can see that a name is labelled as unit when its bold and blue.
Please post the worksheet
As you are a new user I guess you are using Prime and should experience something like this
Perhaps you have unintentionally redefined one of the variables again after the initial definition?
So you would see
which actually is
Well, that is not the same in my case.
I found out that typing "m" from keyboard and assigning the dimension "m" from units in the menu bar have different results.
Below is when I assign the "m" from Units under the menu bar.
Apparently cm and mm worked okay.
Now the problem is wrting "m" from keyboard.
Chances are that you have defined a variable m:=200 m somewhere above and so Prime possibly can't know if you mean unit meter or your user defined variable m when you type m and it assumes that your own variable m is meant.
So either use another name for your variable or you have to type "m" followed by pressing Ctrl-u to change the labelling to unit.
If you use the default setting you can see that a name is labelled as unit when its bold and blue.
Thank you. That was the propblem!
Hi,
There are two spaces in the input that would not appear if entering Prime formulae in a worksheet.
Included a worksheet with correct input and output.
If you go to help (? mark in upper right corner of window) there is a tutorial called "About the Getting Started Tutorial". Just search for it.
Cheers
Terry
No, Terry.
What @GA_10603334 posted in his first message is not a screenshot but simply was retyped here using the "Insert/Edit code sample" facility.
Prime would not allow to type those spaces anyway - as soon as type the colon : you get the assignment operator := and are ot allowed to type a space in-between or after,