Referenceparabola

<parabola>

<parabola> is a Graphical component that renders a parabola when nested inside a <graph> component.

Attributes and Properties

Attributes for <parabola>
AttributeTypeValues
applyStyleToLabel = "…"boolean"true" "false"
displayDecimals = "…"integer
displayDigits = "…"integer
displaySmallAsZero = "…"number
draggable = "…"boolean"true" "false"
extrapolateBackward = "…"boolean"true" "false"
extrapolateForward = "…"boolean"true" "false"
flipFunction = "…"boolean"true" "false"
labelIsName = "…"boolean"true" "false"
labelPosition = "…"text"upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right"
layer = "…"integer
nearestPointAsCurve = "…""true" "false"
numDiscretizationPoints = "…"number
padZeros = "…"boolean"true" "false"
periodic = "…"boolean"true" "false"
showCoordsWhenDragging = "…"boolean"true" "false"
splineForm = "…"text"centripetal" "uniform"
splineTension = "…"number
through = "…"
vertex = "…"[ math ]
Props for <parabola name="p">
PropertyType
$p.anumber
$p.applyStyleToLabelboolean
$p.bnumber
$p.cnumber
$p.disabledboolean
$p.displayDecimalsinteger
$p.displayDigitsinteger
$p.displaySmallAsZeronumber
$p.draggableboolean
$p.equationmath
$p.extrapolateBackwardboolean
$p.extrapolateForwardboolean
$p.fixedboolean
$p.fixLocationboolean
$p.flipFunctionboolean
$p.hiddenboolean
$p.labellabel
$p.labelIsNameboolean
$p.labelPositiontext
$p.layerinteger
$p.numDiscretizationPointsnumber
$p.padZerosboolean
$p.parMaxnumber
$p.parMinnumber
$p.periodicboolean
$p.showCoordsWhenDraggingboolean
$p.splineFormtext
$p.splineTensionnumber
$p.styleDescriptiontext
$p.styleDescriptionWithNountext
$p.throughPoints[ math ]
$p.vertex[ math ]

Example: Default <parabola>

The default <parabola> renders the graph of the equation y=x2y = x^2. It is not draggable.


Example: <parabola> passing through 3 points

A <parabola> can be rendered when 3 throughPoints are specified with the through attribute.


Example: <parabola> with vertex and throughPoint

A <parabola> can be rendered by specifying the vertex and a single throughPoint.


Attribute Example: through

The through attribute specifies a point or points the parabola passes through.


Attribute Example: vertex

The vertex attribute specifies the maximum or minimum point on the parabola.


Example: flipFunction

The flipFunction attribute is used to define a quadratic function in yy.


Attribute Example: Standard graphical attributes

The uses of the following standard graphical attributes are illustrated: hide, layer, styleNumber, applyStyleToLabel and labelIsName.


Property Example: Style properties

The styleDescription and styleDescriptionWithNoun properties render a text description corresponding to the styleNumber of the component.


Property Example: a, b, c

The a, b and c properties return the coefficients of the parabola’s equation in general form.