Maplets[Examples] - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Maplets : Examples : Maplets/Examples/SignQuery

Maplets[Examples]

  

SignQuery

  

display a Maplet application that queries the user about the sign of an object

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

SignQuery(expr, opts)

Parameters

expr

-

algebraic expression

opts

-

equation(s) of the form option=value where option is one of height, mathml, sign, title, or width; specify options for the Maplet application

Description

• 

The SignQuery(expr) calling sequence displays a dialog that asks about the sign of expr. The user can click Yes or No. The return value is true or false, respectively.

• 

The opts argument can contain one or more of the following equations that set Maplet application options.

  

 

  

height = posint

  

If the option mathml is set to true, this is the height of the MathMLViewer element. By default, the height is 50 pixels.

  

 

  

mathml = true or false

  

If this option is set to true, the expression is rendered using MathML.

  

 

  

sign = positive, nonnegative, negative, nonpositive, or nonzero

  

This option adjusts the question posed. By default, the value is positive. That is, the query asks if expr is positive.

  

 

  

title = string or symbol

  

Specifies the Maplet application title.  By default, the title is Sign Query.

  

 

  

width = posint

  

If the option mathml is set to true, this is the width of the MathMLViewer element. By default, the width is 50 pixels.

  

 

Examples

withMaplets[Examples]:

SignQueryx24

SignQueryx24,mathml

See Also

Maplets[Elements]

Maplets[Elements][MathMLViewer]

Maplets[Examples]

Overview of Maplet Applications

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam