Difference between revisions of "Numerator Command"
From GeoGebra Manual
m (fix example) |
(Docs for the new syntax) |
||
Line 3: | Line 3: | ||
:Returns the numerator of the function. | :Returns the numerator of the function. | ||
:{{example|1=<div><code><nowiki>Numerator[(3x² + 1) / (2x - 1)]</nowiki></code> yields ''f(x) = 3x² + 1''.</div>}} | :{{example|1=<div><code><nowiki>Numerator[(3x² + 1) / (2x - 1)]</nowiki></code> yields ''f(x) = 3x² + 1''.</div>}} | ||
− | + | ;Numerator[ <Number> ] | |
− | + | :For a rational number returns it's numerator. It uses a numerical method, which limits this command to numbers with small denominator. For irrational output the numerator of a its [[ContinuedFraction Command|continued fraction]] is returned. | |
− | : | + | {{note|1=See also [[Denominator Command]] and [[FractionText Command]].}} |
− | |||
Revision as of 22:47, 27 December 2015
- Numerator[ <Function> ]
- Returns the numerator of the function.
- Example:
Numerator[(3x² + 1) / (2x - 1)]
yields f(x) = 3x² + 1.
- Numerator[ <Number> ]
- For a rational number returns it's numerator. It uses a numerical method, which limits this command to numbers with small denominator. For irrational output the numerator of a its continued fraction is returned.
Note: See also Denominator Command and FractionText Command.
CAS Syntax
- Numerator[ <Expression> ]
- Returns the numerator of a rational number or expression.
- Examples:
Numerator[2/3 + 1/15]
yields 11.- If variables a, b and c haven't been previously defined in GeoGebra, then
Numerator[a/b]
yields a andNumerator[Simplify[a + b/c]]
yields a c + b