Question: Error when using "with(Units[Standard])"

Hey everyone.

I have a wierd problem when using the "Units[Standard]" addon.

I'm trying to do some simple thermodynamics calculations, and need to raise certain values in an irrational power.

It looks like this:

restart:
with(Units[Standard]):

n:=1.38:
p1:=1.1[bar]:
v1:=3[dm^3]:
v2:=0.4[dm^3]:

p2:=(p1*v1^n)/(v2^n):

If I execute it, I get this error:
Error, (in Units:-Standard:-^) a unit can only be raised to a rational power

Ive found out that if I remove the "with(Units[Standard]):" then it works perfectly, or if I change the "n-value" to a rational value, as the text suggest.
Can anyone help me eliminate this error? Because I really want to use the standard units addon.


//Dragsdal

Please Wait...