« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Units
Convert between Different Units
Convert a light year to various units of length and different unit systems.
In[1]:=
X
FormulaGallery[forms_List] := TraditionalForm@ Grid[Table[forms[[i]], {i, Length[forms]}], Dividers -> All, Spacings -> {1, 2}, Alignment -> {Center, Center}, BaseStyle -> {FontFamily -> "Helvetica"}, Background -> {None, {{Hue[.6, .15, .9], GrayLevel[.9]}}}, FrameStyle -> Directive[Thick, White]]
In[2]:=
X
Pane[FormulaGallery[ Map[{#, UnitConvert[Quantity[1, "LightYears"], #]} &, {"Feet", "Meters", "Microns", "SI", "Imperial", "Metric"}]] , 550]
Out[2]=