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

hide units

ptc-4911741
1-Visitor

hide units

Hello!

example:

Pk=Gk+Gk2+Gk3=10kN+20kN+15kN=45kN

is it possible to show "kN" only at the end?

13 REPLIES 13

To do what your example shows requires using the symbolic processor. The symbolic processor doesn't recognize units; to that processor kN is merely another variable name. So I believe the answer to your question is "no."

Now, watch somebody prove me wrong!

NUnit.pngOnly so I think:

I thought about some default feature...

ok, I can write equations without units, but I need "middle" answer:

Pk := Gk+Gk2+Gk3 --> 10+20+15 = 45

but now I can get only Pk = Gk+Gk2+Gk3 = 45

Werner_E
25-Diamond I
(To:ptc-4911741)

Its absolutely not clear to me what you want to achieve.

In your first post it looked like Gk have unit kN, in your last not!??

It is possible to let it look like in your first post by using default features

HideUnits1.png

I hope you do not want to see something like 10 + 20 + 15 = 45 kN, because this would be definitely wrong!! Units out of thin air - you shouldn't do that magic production of units. Something like (10 + 20 +15) kN = 45 kN is OK, but AFAIK cannot be shown that way with Mathcad in conjunction with your one line definition and explicit symbolic evaluation.

Fortunately you can't do that in Mathcad using default formatting features. You would have to resort to some trickery like Valery's, by defining kN:=1 and later kN:=10^3*N to regain yor kiloNewtons. Nevertheless your variables would have to be redefined to get the necessary units.

Another dirty trick would involve defining a variable which looks like kN (if you don't mind the red error in the definitions) and later resubstitute it so Pk get real unit N/kN. Again you would have to redefine your Gk. All not to be recommended.

HideUnits2.png

RichardJ
19-Tanzanite
(To:Werner_E)

I hope you do not want to see something like 10 + 20 + 15 = 45 kN, because this would be definitely wrong!! Units out of thin air - you shouldn't do that magic production of units.

I agree.

Werner Exinger wrote:

Its absolutely not clear to me what you want to achieve.

There is a standard of calculations documentation in Russia for example:

a=2m b=3cm

c=a+b=2+0.03=2.03m

Valery Ochkov schrieb:

Werner Exinger wrote:

Its absolutely not clear to me what you want to achieve.

There is a standard of calculations documentation in Russia for example:

a=2m b=3cm

c=a+b=2+0.03=2.03m

A standard - really! Hmm, it still looks wrong for me. But maybe I'm just showing being a stickler.

Werner Exinger wrote:

Valery Ochkov schrieb:

Werner Exinger wrote:

Its absolutely not clear to me what you want to achieve.

There is a standard of calculations documentation in Russia for example:

a=2m b=3cm

c=a+b=2+0.03=2.03m

A standard - really! Hmm, it still looks wrong for me. But maybe I'm just showing being a stickler.

It was a standard of old times without computers.

One man calculates - another checks it.

with a slide rule for example.

One man calculates - another checks it.

with a slide rule for example.

Probably with one of those really big slide rules.

MichaelH wrote:

One man calculates - another checks it.

with a slide rule for example.

Probably with one of those really big slide rules.

No - with this (one my dream). In past I have had a wristwatch with calculator:

LofWatch.png

Second my dream is a wristwatch with Mathcad

That is 100% what I want! I need units only in final result, it's enough for me.

But now mathcad work this way: c=a+b --> 2m+0.03m=2.03m

mnet
3-Newcomer
(To:ptc-4911741)

Although seems weird, it is possible to hide units. For the unit use different style say "User 1" and then modify the font color fo that specific style to white.

hide_unit_mathcad.jpg

ValeryOchkov
24-Ruby IV
(To:mnet)

But we cannot use invisible units with/by explicit operator

And second.

An using invisible variables - one way to the Mathcad House - see http://communities.ptc.com/groups/mathcad-paradoxes

Announcements

Top Tags