Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is there a way to force Mathematica to UnitSimplify to a different unit? For example, I would like kg m^2/s^2 to simplify to N m but it always simplifies to J. Is there a way to specify a units preference?

share|improve this question
    
Related: Implementing CGS unit system in Mathematica 9. Of course N m/J are the trickiest as one would often want to use both in the same calculation. –  Szabolcs Dec 3 '12 at 19:28
3  
See notebook here for some ideas on how to do various conversions. For your example, the GroebnerBasis approach using Meters and Newtons as "lowest" variables can be adapted to do what you want. –  Daniel Lichtblau Dec 3 '12 at 19:45
add comment

1 Answer

up vote 3 down vote accepted

I would use UnitConvert:

UnitConvert[Quantity[1, 
     ("Kilograms"*"Meters"^2)/
       "Seconds"^2], 
   Quantity["Newton Meters"]]
share|improve this answer
    
UnitConvert is documented: reference.wolfram.com/mathematica/ref/UnitConvert.html –  Rolf Mertig Dec 3 '12 at 20:23
    
Yes, yes it is. I was reading UnitConvert as UnitSimplify. Deleting my comment ... –  rcollyer Dec 3 '12 at 20:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.