Units[Natural] - Maple Help

Home : Support : Online Help : Science and Engineering : Units : Environments : Natural : Units/Natural/max

Units[Natural]

 max
 maximum function in the Natural Units environment
 min
 minimum function in the Natural Units environment

 Calling Sequence max(x1, x2, ...) min(x1, x2, ...)

Parameters

 'x1, x2, ... - expressions

Description

 • In the Natural Units environment, these procedures override the top-level max and min functions.  If any of the arguments have units associated with them, all units are converted to the units of the first argument, and then the global procedure of the same name is called on the unitless arguments.

Examples

Note: In Maple 2015 and later versions, units are not surrounded by double brackets.

 > $\mathrm{with}\left(\mathrm{Units}[\mathrm{Natural}]\right):$
 > $\mathrm{min}\left(\frac{3m}{2},1.49\mathrm{ft}\right)$
 ${0.4541520000}{}⟦{m}⟧$ (1)
 > $\mathrm{dis}≔\mathrm{max}\left(x\mathrm{furlong},\frac{3\mathrm{ft}}{2},120\mathrm{cm},17\mathrm{inches}\right)$
 ${\mathrm{dis}}{:=}{\mathrm{max}}{}\left(\frac{{6}}{{5}}{,}\frac{{25146}}{{125}}{}{x}\right){}⟦{m}⟧$ (2)
 > $\mathrm{dis}≔\mathrm{convert}\left(\mathrm{dis},'\mathrm{units}',m\right)$
 ${\mathrm{dis}}{:=}{\mathrm{max}}{}\left(\frac{{6}}{{5}}{,}\frac{{25146}}{{125}}{}{x}\right){}⟦{m}⟧$ (3)
 > $x≔3$
 ${x}{:=}{3}$ (4)
 > $\mathrm{dis}$
 $\frac{{75438}}{{125}}{}⟦{m}⟧$ (5)