Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to handle Units of Measure

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100191] Re: How to handle Units of Measure
  • From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
  • Date: Thu, 28 May 2009 04:25:12 -0400 (EDT)

In this very simple example if I write
R+iwL
where R is measured in Ohms, w in s^-1, L in H, I expect that the
result is given in Ohms.
Why it doesn't happen in Mathematica ? Ho can I do to handle in a
simple way those conversions ?
Thanks

Hi, Theodoro,
I do it this way, simple enough:

In[30]:=    R := x*Ohm;
                w := z*Hz;
                L := y*H;
                H = Ohm/Hz;
                R + w*L // Simplify

Out[34]= Ohm (x + y z)

-- 
Alexei Boulbitch, Dr., habil.
Senior Scientist

IEE S.A.
ZAE Weiergewan
11, rue Edmond Reuter
L-5326 Contern
Luxembourg

Phone: +352 2454 2566
Fax:   +352 2454 3566

Website: www.iee.lu

This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.




  • Prev by Date: simultaneous equations - eliminating variables and solving
  • Next by Date: Working with Indeterminate in large numerical lists
  • Previous by thread: Re: How to handle Units of Measure
  • Next by thread: Re: How to handle Units of Measure