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 (%);
| 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 |