diff - Maple Help

Units[Simple]

 diff
 differentiation and partial differentiation in the Simple Units environment

 Calling Sequence diff(a, x)

Parameters

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

Description

 • In the Simple Units environment, the diff function differentiates an expression a with respect to a name x that can have a unit.  The result is the derivative of a with respect to x; its unit is the unit of a divided by the unit of x.
 • Every command in the Simple Units environment that needs to determine whether an expression is valid or not, does so using the Units[TestDimensions] command.
 • 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.
 – When you edit a unit, double brackets appear around it.
 > $\mathrm{with}\left(\mathrm{Units}\left[\mathrm{Simple}\right]\right):$
 > $-3.532{x}^{2}\mathrm{Unit}\left('J'\right)$
 ${-}{3.532}{}{{x}}^{{2}}{}⟦{J}⟧$ (1)
 > $\mathrm{diff}\left(,x\mathrm{Unit}\left('s'\right)\right)$
 ${-}{7.064}{}{x}{}⟦{W}⟧$ (2)
 > $32{x}^{2}\mathrm{Unit}\left('\mathrm{ft}'\right)+7x\mathrm{Unit}\left('\mathrm{inch}'\right)+45\mathrm{Unit}\left('m'\right)$
 $\left(\frac{{6096}}{{625}}{}{{x}}^{{2}}{+}\frac{{889}}{{5000}}{}{x}{+}{45}\right){}⟦{m}⟧$ (3)
 > $\mathrm{diff}\left(,x\mathrm{Unit}\left('s'\right),x\mathrm{Unit}\left('s'\right)\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\mathrm{Unit}\left('s'\right)\right)$
 $\left({16}{}{{x}}^{{3}}{-}{3}\right){}⟦\frac{{1}}{{s}}⟧$ (6)