Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mathcad question - How can you find the units of an expression?

0 views
Skip to first unread message

Thnker

unread,
Oct 4, 1998, 3:00:00 AM10/4/98
to

Does anyone know how to find the units of an expression, other than manually
inspecting ? For instance, if there were a function named say... UnitsOf(x)
where x is any expression, that would match my needs exactly.

What I want to do is have a function determine the units of a quantity so that
when I need to call a function that doesn't allow units (such as ln(x)) I can
have my new function strip away the units before the call to ln(x) and then
restore them later.

I realize that in the case of ln(x), units are not too meaningful but there are
other applications, including functions of my own, that would benefit from
being able to remove units, compute stuff and then restore the units.


"Never underestimate the bandwidth of a station wagon filled with tapes
hurtling down the highway."

Thn...@aol.com

0 new messages