Question: Help with calculations and Units

Hi, i have a problem with Units; Basically my problem is that if i try to get the square of a variable with units only the value of the unit is squared not the units. For example:

> Z := 5*Unit('ft');

> Z^2 = 25 Units:-Unit('ft')^2

I dont know if my copy paste attemp is clear enough.... but basically the units are not being squared, the ^2 is placed outside the brackets and is not taken into account in further calculations. The result i am looking for is something like this:

> Z := 5*Unit('ft');

> Z^2 = 25 Units:-Unit('ft^2')

So i will have squared feets and can use that value in further calculations. Thanks.

Please Wait...