Message Boards Message Boards

0
|
2989 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Parsecs UnitConvert failure for H0?

Posted 2 years ago

While attempting to do some formulas for the Hubble Constant (H0) I ran into difficulty with Units. Am I doing something wrong?:

This works:

UnitConvert["Meters","Mpc"]

This doesn't:

UnitConvert["Seconds"^-1,"Kilometers"/"Seconds"/"Mpc"]
Quantity::unkunit: Unable to interpret unit specification (Kilometers)/(Mpc Seconds).
POSTED BY: James Bowery
Posted 2 years ago

It works if the long form is used

UnitConvert["Seconds"^-1, "Kilometers"/"Seconds"/"Megaparsecs"]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract