<function>
Property Examples
The following examples illustrate use of the <function>
tag properties.
Property
Property | Type |
---|---|
$f.applyStyleToLabel | boolean |
$f.backgroundColor | text |
$f.disabled | boolean |
$f.displayDecimals | integer |
$f.displayDigits | integer |
$f.displaySmallAsZero | number |
$f.domain | [ interval ] |
$f.expand | text |
$f.expandSpecified | boolean |
$f.extrema | [ number ] |
$f.fixed | boolean |
$f.fixLocation | boolean |
$f.formula | math |
$f.globalInfimum | [ number ] |
$f.globalMaximum | [ number ] |
$f.globalMinimum | [ number ] |
$f.globalSupremum | [ number ] |
$f.hidden | boolean |
$f.label | label |
$f.labelIsName | boolean |
$f.labelPosition | text |
$f.latex | latex |
$f.layer | number |
$f.maxima | [ number ] |
$f.minima | [ number ] |
$f.numExtrema | number |
$f.numInputs | integer |
$f.numMaxima | number |
$f.numMinima | number |
$f.numOutputs | integer |
$f.padZeros | boolean |
$f.simplify | text |
$f.styleDescription | text |
$f.styleDescriptionWithNoun | text |
$f.symbolic | boolean |
$f.text | text |
$f.textColor | text |
$f.textStyleDescription | text |
$f.variable | _variableName |
$f.variables | [ _variableName ] |
$f.xscale | number |
$f.yscale | number |
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 . 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 .
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 .
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 . 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 .
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 . 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.