GetExpression - Maple Help

Home : Support : Online Help : Education : Grading : GetExpression

 GetExpression

 Calling Sequence GetExpression(obj)

Parameters

 obj - a Grading object

Description

 • The GetExpression command returns an expression that obj represents, if this exists, followed by any variables used in the expression. Otherwise nothing is returned.
 • If obj was not created with user-supplied variables, then automatically generated variables may appear in the returned result.

Examples

 > $\mathrm{with}\left(\mathrm{Grading}\right):$
 > $L≔\mathrm{LinearFunction}\left(\left[0,5\right],\left[3,-2\right]\right):$
 > $\mathrm{GetExpression}\left(L\right)$
 ${-}\frac{{7}{}{v}}{{3}}{+}{5}{,}{v}$ (1)
 > $Q≔\mathrm{QuadraticFunction}\left({w}^{2}-2w+5\right)$
 ${Q}{≔}{\mathrm{<< QuadraticFunction: w^2-2*w+5>>}}$ (2)
 > $\mathrm{GetExpression}\left(Q\right)$
 ${{w}}^{{2}}{-}{2}{}{w}{+}{5}{,}{w}$ (3)

Compatibility

 • The Grading:-GetExpression command was introduced in Maple 18.
 • For more information on Maple 18 changes, see Updates in Maple 18.