[Date Index] [Thread Index] [Author Index]
Re: Anyone using the Units package extensively?
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