Differentiation - Maple Help

Differentiation and Partial Differentiation in the Natural Units Environment

 Calling Sequence diff(a, x)

Parameters

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

Description

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

 > $\mathrm{with}\left(\mathrm{Units}\left[\mathrm{Natural}\right]\right):$
 > $-3.532{x}^{2}J$
 ${-}{3.532}{}{{x}}^{{2}}{}⟦{J}⟧$ (1)
 > $\mathrm{diff}\left(,xs\right)$
 ${-}{7.064}{}{x}{}⟦{W}⟧$ (2)
 > $32{x}^{2}\mathrm{ft}+7x\mathrm{inch}+45m$
 $\left(\frac{{6096}}{{625}}{}{{x}}^{{2}}{+}\frac{{889}}{{5000}}{}{x}{+}{45}\right){}⟦{m}⟧$ (3)
 > $\mathrm{diff}\left(,xs,xs\right)$
 $\frac{{12192}}{{625}}{}⟦\frac{{m}}{{{s}}^{{2}}}⟧$ (4)
 > $4{x}^{4}-3x+2$
 ${4}{}{{x}}^{{4}}{-}{3}{}{x}{+}{2}$ (5)
 > $\mathrm{diff}\left(,xs\right)$
 $\left({16}{}{{x}}^{{3}}{-}{3}\right){}⟦\frac{{1}}{{s}}⟧$ (6)