Previous Up Next

10.1.2  Computing with units

Xcas performs usual arithmetic operations (+, -, *, /, ^) on unit objects. Different units may be used, but they must be compatible for + and -. The result is an unit object

Input:

1_m+100_cm

Output:

2_m

Input:

100_cm+1_m

Output:

200_cm

Input:

1_m*100_cm

Output:

1_m^2

Previous Up Next