sandbox-maxima-worked-example-2
Converting inches to kilometers.First load the ‘ezunits’ package.
load (ezunits) $
foo : 1 ` inch;
Units are converted by the double backtick operator; conversions are not carried out automatically.
bar : foo `` km;
As usual, Maxima prefers exact numbers to inexact.We can get a float approximation if we wish.
float (bar);
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);
quux : baz `` m^3;
float (%);