Overloaded Functions in the Standard Units Environment - Maple Programming Help

Home : Support : Online Help : Science and Engineering : Units : Environments : Standard : Units/Standard/functions

Overloaded Functions in the Standard Units Environment

Description

 • In the Standard Units environment, the following functions are overloaded with functions that remove units from their primary arguments, call the appropriate global function, and then multiply the result by the unit. The primary argument can be the first argument, as in expand(3*x*(1-x)*Unit('m')) or a subsequent argument, such as abs(1, 3.3213*Unit('m')) where the first argument is used to denote the derivative.

 abs argument ceil collect combine conjugate csgn evalc evalr expand factor floor frac Im normal Re round seq shake signum simplify trunc

 Note: In Maple 2015 and later versions, units are not surrounded by double brackets.
 > with(Units[Standard]):
 > 3*Unit('W')*x*(1 - x);
 ${3}{}{x}{}\left({1}{-}{x}\right){}⟦{W}⟧$ (1)
 > expand((1));
 $\left({-}{3}{}{{x}}^{{2}}{+}{3}{}{x}\right){}⟦{W}⟧$ (2)
 > factor((2));
 ${-}{3}{}{x}{}\left({x}{-}{1}\right){}⟦{W}⟧$ (3)
 > assume(y>0, z>0);
 > 2*ln(y)*Unit('m') - ln(z)*Unit('ft');
 $\left({2}{}{\mathrm{ln}}{}\left({\mathrm{y~}}\right){-}\frac{{381}}{{1250}}{}{\mathrm{ln}}{}\left({\mathrm{z~}}\right)\right){}⟦{m}⟧$ (4)
 > combine((4), ln);
 ${\mathrm{ln}}{}\left(\frac{{{\mathrm{y~}}}^{{2}}}{{{\mathrm{z~}}}^{\frac{{381}}{{1250}}}}\right){}⟦{m}⟧$ (5)