max, min - Maple Help

Units[Standard]

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

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

Parameters

 'x1, x2, ... - expressions

Description

 • In the Standard 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

Notes:

 – To enter a unit in 2-D Math input, select the unit from the appropriate Units palette. If the unit you want is not there, select $\mathrm{unit}$ and then enter the unit.
 – When you edit a unit, double brackets appear around it.
 > $\mathrm{with}\left(\mathrm{Units}\left[\mathrm{Standard}\right]\right):$
 > $\mathrm{min}\left(\frac{3}{2}\mathrm{Unit}\left('m'\right),1.49\mathrm{Unit}\left('\mathrm{ft}'\right)\right)$
 ${1.49}{}⟦{\mathrm{ft}}⟧$ (1)
 > $\mathrm{dis}≔\mathrm{max}\left(x\mathrm{Unit}\left('\mathrm{furlong}'\right),\frac{3}{2}\mathrm{Unit}\left('\mathrm{ft}'\right),120\mathrm{Unit}\left('\mathrm{cm}'\right),17\mathrm{Unit}\left('\mathrm{inches}'\right)\right)$
 ${\mathrm{dis}}{≔}{\mathrm{max}}{}\left(\frac{{6}}{{5}}{,}\frac{{25146}{}{x}}{{125}}\right){}⟦{m}⟧$ (2)
 > $\mathrm{dis}≔\mathrm{convert}\left(\mathrm{dis},'\mathrm{units}','m'\right)$
 ${\mathrm{dis}}{≔}{\mathrm{max}}{}\left(\frac{{6}}{{5}}{,}\frac{{25146}{}{x}}{{125}}\right){}⟦{m}⟧$ (3)
 > $x≔3$
 ${x}{≔}{3}$ (4)
 > $\mathrm{dis}$
 $\frac{{75438}}{{125}}{}⟦{m}⟧$ (5)