Units[Standard] - Maple Programming Help

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

Units[Standard]

 diff
 differentiation and partial differentiation in the Standard Units environment

 Calling Sequence diff(a, x)

Parameters

 a - algebraic expression x - name or name multiplied by a unit

Description

 • In the Standard Units environment, the diff function differentiates an expression with respect to a name that can have a unit.  The result is the derivative of the expression, with respect to the variable of differentiation, with a unit, the input expression unit divided by the variable of differentiation unit if any.
 • For other properties, see the global function diff.

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.
 – In Maple 2015 and later versions, the double brackets around a unit are not displayed unless you are editing the unit.
 > $\mathrm{with}\left(\mathrm{Units}[\mathrm{Standard}]\right):$
 > $-3.532{x}^{2}⟦'J'⟧$
 ${-}{3.532}{}{{x}}^{{2}}{}⟦{J}⟧$ (1)
 > $\mathrm{diff}\left(,x⟦'s'⟧\right)$
 ${-}{7.064}{}{x}{}⟦{W}⟧$ (2)
 > $32{x}^{2}⟦'\mathrm{ft}'⟧+7x⟦'\mathrm{inch}'⟧+45⟦'m'⟧$
 $\left(\frac{{6096}}{{625}}{}{{x}}^{{2}}{+}\frac{{889}}{{5000}}{}{x}{+}{45}\right){}⟦{m}⟧$ (3)
 > $\mathrm{diff}\left(,x⟦'s'⟧,x⟦'s'⟧\right)$
 $\frac{{12192}}{{625}}{}⟦\frac{{m}}{{{s}}^{{2}}}⟧$ (4)
 > $4{x}^{4}-3x+2$
 ${4}{}{{x}}^{{4}}{-}{3}{}{x}{+}{2}$ (5)
 > $\mathrm{diff}\left(,x⟦'s'⟧\right)$
 $\left({16}{}{{x}}^{{3}}{-}{3}\right){}⟦\frac{{1}}{{s}}⟧$ (6)