Unit conversion of a list of quantities
- To: mathgroup at smc.vnet.net
- Subject: [mg131971] Unit conversion of a list of quantities
- From: mariusz sapinski <mariusz.sapinski at gmail.com>
- Date: Thu, 7 Nov 2013 00:28:37 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
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
- Follow-Ups:
- Re: Unit conversion of a list of quantities
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Unit conversion of a list of quantities
- From: mariusz sapinski <mariusz.sapinski@gmail.com>
- Re: Unit conversion of a list of quantities
- From: Itai Seggev <itais@wolfram.com>
- Re: Unit conversion of a list of quantities
- From: Itai Seggev <itais@wolfram.com>
- Re: Unit conversion of a list of quantities