Skip to main content
4-Participant
March 6, 2023
Solved

Deviding a length by a constant number gives a strange result

  • March 6, 2023
  • 1 reply
  • 1937 views

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 

 

 

 

 

 

 

 

Best answer by Werner_E

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.

1 reply

25-Diamond I
March 6, 2023

Please post the worksheet

 

As you are a new user I guess you are using Prime and should experience something like this

Werner_E_0-1678100155148.png

Perhaps you have unintentionally redefined one of the variables again after the initial definition?

So you would see

Werner_E_1-1678100760741.png

which actually is

Werner_E_3-1678100831181.png

 

4-Participant
March 6, 2023

Well, that is not the same in my case. 

GA_10603334_1-1678100904309.png

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. 

GA_10603334_2-1678101107304.png

 

 

Apparently cm and mm worked okay. 

GA_10603334_3-1678101205337.png

Now the problem is wrting "m" from keyboard. 

Werner_E25-Diamond IAnswer
25-Diamond I
March 6, 2023

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.