Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Mathematica 9.0.1. Sorry for using an image, but pasting code messed up the output formatting.

I'd like to represent 25 Btu/(hr ft F).

enter image description here

All units are spelled correctly as identified in the second attempt... not sure what is going wrong in the first attempt?

I've also tried: "DegreesFahrenheit" "DegreesFahrenheitDifference" "BritishThermalUnitsIT"

No luck. I've seen other posts where people used the Wolfram Alpha capabilities to "interpret" which units were used... I hope I don't need internet connectivity for this simple task?

share|improve this question
This worked in 9. Quantity[25,"BTU"]/(Quantity["Feet"]Quantity["Hour"]Quantity["Fahrenheit"]) I think the small print on this may be the line "Quantity will automatically attempt to parse an unknown unit string to its canonical form.". They key word being attempt. Some combinations of units it may give up on. – Ymareth Oct 31 '13 at 18:14
maybe Quantity[25,"BritishThermalUnitsIT"/("Hours"*"Feet"*"DegreesFahrenheitDifferenc‌​e")] – chuy Oct 31 '13 at 18:31
@Ymareth: yes that worked. I guess I'll resort to doing it that way... but it seems like it should work "cleaner" than that. Perhaps I'll make a palette of buttons with commonly used units so I don't have to type Quantity[""] each and every time. – cjpembo Oct 31 '13 at 19:53
It's OK to paste in output, but don't do it with input, even through it's a little more work to break up the into several pieces. – m_goldberg Nov 1 '13 at 1:58
up vote 3 down vote accepted

A work-around for the OP's problem is to enter the units expression into Quantity as a single string, not as several strings separated by arithmetic operators. Thus

k = Quantity[25, "BTU/(Hour Feet Fahrenheit)"]


share|improve this answer
It's confusing, though, when the documentation does have examples of multiple strings... – cormullion Nov 2 '13 at 22:10
@cormullion. Your make a good point. What's more the documentation example works! I have edited my answer to remove the assertion that OP's is due to a simple error. – m_goldberg Nov 2 '13 at 22:38
@m_goldberg. Looks like your method might be the easiest to implement. I'm going to cross my fingers and hope that it holds up. Thanks. – cjpembo Nov 4 '13 at 15:51

Your Answer


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.