| This is read-only version of the old wiki, feel free to browse it for materials. If you want to share your own materials, please use GeoGebraTube instead. You are also welcome to help us enhance the new wiki. If any questions arise, please contact the webmaster. |
FormulaText Command
Syntax
- FormulaText[object O]
- FormulaText[object O, boolean B]
Action
Returns the formula for the object as a LaTeX text. If B is true (or not set), values are substituted for the terms, otherwise they are represented by their names.
FormulaText[Object, Boolean]: Returns the formula for the object as LaTeX text. The Boolean variable determines if values are substituted for variables (true) or if variable names are shown in the text (false).
Examples
If a = 2 and f(x) = a x^2, then
- FormulaText[f] returns 2 x^2 (as a LaTeX text).
- FormulaText[f, true] returns 2 x^2 (as a LaTeX text).
- FormulaText[f, false] returns a x^2 (as a LaTeX text).
Notes
Quick way to show formula of an object O is to type
""+O
into the input bar. Using this for a polynomial function creates spaces between variable and coefficients, unlike FormulaText.
See also