Referencefunction (Properties)

<function>

Property Examples

The following examples illustrate use of the <function> tag properties.

Property

Props for <function name="f">
PropertyType
$f.applyStyleToLabelboolean
$f.backgroundColortext
$f.disabledboolean
$f.displayDecimalsinteger
$f.displayDigitsinteger
$f.displaySmallAsZeronumber
$f.domain[ interval ]
$f.expandtext
$f.expandSpecifiedboolean
$f.extrema[ number ]
$f.fixedboolean
$f.fixLocationboolean
$f.formulamath
$f.globalInfimum[ number ]
$f.globalMaximum[ number ]
$f.globalMinimum[ number ]
$f.globalSupremum[ number ]
$f.hiddenboolean
$f.labellabel
$f.labelIsNameboolean
$f.labelPositiontext
$f.latexlatex
$f.layernumber
$f.maxima[ number ]
$f.minima[ number ]
$f.numExtremanumber
$f.numInputsinteger
$f.numMaximanumber
$f.numMinimanumber
$f.numOutputsinteger
$f.padZerosboolean
$f.simplifytext
$f.styleDescriptiontext
$f.styleDescriptionWithNountext
$f.symbolicboolean
$f.texttext
$f.textColortext
$f.textStyleDescriptiontext
$f.variable_variableName
$f.variables[ _variableName ]
$f.xscalenumber
$f.yscalenumber

Property Example: Attributes as properties

The <function> attributes listed above are also accessible as properties.


Property Example: numOutputs

The numOutputs property of a function is the dimension of its range.


Property Example: formula

If a function is defined by a formula, the formula property gives that formula. If the expand or simplify attributes are used, these are applied only during evaluation , so they do not effect the formula property. To simplify or expand the formula property of a function, you should nest it inside a <math> with the appropriate attributes.

The formula property isn’t currently implemented for interpolated functions.


Property Example: latex

The latex property gives the LaTeX of the function’s formula.


Property Example: numMinima

The property numMinima gives the number of minima calculated for a function of a single variable. By default, it looks for minima in the interval [100,100][-100,100]. This interval can be changed with the xscale attribute.


Property Example: minima/minimumLocations/minimumValues

The property minima gives the minima of a function of a single variable as an array of points. The property minimumLocations gives the values of the independent variable where the minima occur. The property minimumValues gives the values of the function at the minima.

By default, minima are calculated in the interval [100,100][-100,100].
This interval can be changed with the xscale attribute.


Property Example: numMaxima

The property numMaxima gives the number of maxima calculated for a function of a single variable. By default, it looks for maxima in the interval [100,100][-100,100].
This interval can be changed with the xscale attribute.


Property Example: maxima/maximumLocations/maximumValues

The property maxima gives the maxima of a function of a single variable as an array of points. The property maximumLocations gives the values of the independent variable where the maxima occur. The property maximumValues gives the values of the function at the maxima.

By default, maxima are calculated in the interval [100,100][-100,100]. This interval can be changed with the xscale attribute.


Property Example: numExtrema

The property numExtrema gives the number of extrema calculated for a function of a single variable. By default, it looks for maxima in the interval [100,100][-100,100].
This interval can be changed with the xscale attribute.


Property Example: extrema/extremumLocations/extremumValues

The property extrema gives the extrema of a function of a single variable as an array of points. The property extremumLocations gives the values of the independent variable where the extrema occur. The property extremumValues gives the values of the function at the extrema.

By default, extrema are calculated in the interval [100,100][-100,100]. This interval can be changed with the xscale attribute.


Property Example: styleDescription/styleDescriptionWithNoun

Since users can override styles and so may see different colors and line styles, don’t directly refer to the colors and line styles you create. Instead, use the properties styleDescription and styleDescriptionWithNoun. With those properties, the text will change to match the displayed styles.