Re: Anyone using the Units package extensively?
- To: mathgroup at smc.vnet.net
- Subject: [mg45674] Re: Anyone using the Units package extensively?
- From: bobhanlon at aol.com (Bob Hanlon)
- Date: Mon, 19 Jan 2004 05:15:18 -0500 (EST)
- References: <firstname.lastname@example.org>
- Sender: owner-wri-mathgroup at wolfram.com
Degree is built in to Mathematica Sin[60 Degree] Sqrt/2 It will keep exact numbers exact Sin[37 Degree] Sin[37*Degree] N will force numerical evaluation %//N 0.601815 or you may get some exact numerical results by using FunctionExpand %%//FunctionExpand // Simplify (1/2^(1/3))*((1/32 + I/32)*((-(-1 + I*Sqrt)^(1/3))* (-I + Sqrt)*(Sqrt*(-1 + Sqrt) + 2*I*Sqrt[5 + Sqrt]) + (-1 - I*Sqrt)^(1/3)* (I + Sqrt)*(I*Sqrt*(-1 + Sqrt) + 2*Sqrt[5 + Sqrt]))) %//N // Chop 0.601815 Bob Hanlon In article <bua34p$img$1 at smc.vnet.net>, AES/newspost <siegman at stanford.edu> wrote: << In article <bu8iv9$au6$1 at smc.vnet.net>, William McHargue <A at B.C> wrote: > Hello, > > I've been using Mathematica for engineering analysis and have come to > carry units throughout my calculations. Does anyone else do this and > would you like to exchange tips/tricks? > > Regards, Can't say I do this extensively, but I routinely define deg = Pi/180. and then use constructs like theta = 37 deg Sin[60 deg] Print[theta/deg] to make calculations and results more readable. Would be glad to hear of other tricks and techniques