 Get Expression - Maple Help

Home : Support : Online Help : Programming : Maplets : Examples : Get Expression

Maplets[Examples]

 GetExpression
 display a Maplet application that requests an expression Calling Sequence GetExpression(opts) Parameters

 opts - equation(s) of the form option=value where option is one of caption, title, or width; specify options for the Maplet application Description

 • The GetExpression() calling sequence displays a Maplet application that prompts the user to enter an expression. This expression is returned to the Maple session.  If the user does not enter an expression, an exception is raised.
 • The GetExpression sample Maplet worksheet describes how to write a Maplet application that behaves similarly to this routine by using the Maplets[Elements] package.
 • The opts argument can contain one or more of the following equations that set Maplet application options.
 caption = string
 Specifies the text that prompts the user for an expression. By default, the caption is Enter an expression:.
 title = string
 Specifies the Maplet application title.  By default, the title is Get Expression.
 width = posint
 Specifies the input field width.  By default, the width is 30 characters. Examples

 > $\mathrm{with}\left({\mathrm{Maplets}}_{\mathrm{Examples}}\right):$
 > $f≔\mathrm{GetExpression}\left(\right)$
 ${f}{≔}{{y}}^{{2}}{-}{4}{}{y}$ (1)
 > $g≔\mathrm{GetExpression}\left(\right)$
 ${f}{≔}\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{y}{}\left({x}\right){-}{{y}{}\left({x}\right)}^{{2}}$ (2)