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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Deviding a length by a constant number gives a strange result

GA_10603334
4-Participant

Deviding a length by a constant number gives a strange result

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     

 

 

 

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:GA_10603334)

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.

View solution in original post

6 REPLIES 6
Werner_E
25-Diamond I
(To:GA_10603334)

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

 

GA_10603334
4-Participant
(To:Werner_E)

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_E
25-Diamond I
(To:GA_10603334)

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.

GA_10603334
4-Participant
(To:Werner_E)

Thank you. That was the propblem! 

Hi,

Capture.JPG

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.

Werner_E_0-1678102860177.png

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,

Announcements

Top Tags