sandbox-maxima-worked-example-2


Converting inches to kilometers. First load the ‘ezunits’ package.

load (ezunits) $
foo : 1 ` inch;
1inch

Units are converted by the double backtick operator; conversions are not carried out automatically.

bar : foo `` km;
1275000000km

As usual, Maxima prefers exact numbers to inexact. We can get a float approximation if we wish.

float (bar);
2.54×10-5km

A volume conversion. Here ‘baz’ is the volume of one inch of water spread over one acre, while ‘quux’ is the same volume expressed in SI units.

baz : 1 ` (inch * acre);
1inchacre
quux : baz `` m^3;
20076201783195312500m3
float (%);
102.79015312896m3
Title sandbox-maxima-worked-example-2
Canonical name Sandboxmaximaworkedexample2
Date of creation 2013-12-27 13:29:32
Last modified on 2013-12-27 13:29:32
Owner robert_dodier (1000903)
Last modified by robert_dodier (1000903)
Numerical id 1
Author robert_dodier (1000903)
Entry type Example