Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Unit conversion of a list of quantities
Replies: 2   Last Post: Nov 8, 2013 3:46 PM

 Messages: [ Previous | Next ]
 mariusz sapinski Posts: 4 Registered: 7/18/13
Unit conversion of a list of quantities
Posted: Nov 7, 2013 12:30 AM

I have the following lists:
Edep = {4.9491200000000017`*^-14 Joules,
1.8669264000000004`*^-14 Joules, 6.223088000000001`*^-15 Joules}
mass = {0.043937500000000004` g, 0.06987` g, 0.02329` g}

I want to calculate dose:
dose = Edep/mass

I get another list (of Quantities):

{(1.1264*10^-12 Joules)/g, (2.672*10^-13 Joules)/g, (
2.672*10^-13 Joules)/g}

OK, but I want to have Grays, ie. Joules/kg:

UnitConvert[dose, "Joules/kg"]

Unfortunately output is not what I want:
{UnitConvert[(1.1264*10^-12 Joules)/g, "Joules/kg"],
UnitConvert[(2.672*10^-13 Joules)/g, "Joules/kg"],
UnitConvert[(2.672*10^-13 Joules)/g, "Joules/kg"]}

How to get Mathematica to convert J/g to J/kg?
Mathematica 9.0.1 on linux.

Regards, Mariusz

Date Subject Author
11/7/13 mariusz sapinski
11/8/13 Bill Rowe
11/8/13 Alexei Boulbitch