Difference between revisions of "Numerator Command"
From GeoGebra Manual
({{note|1=<div> For a fast numerical method (so long as the numbers aren't too big) you can use these in the Input Bar: <code>CommonDenominator[a,a]</code> for denominator and <code>round(a*CommonDenominator[a,a])</code> for Numerator </div>}}) |
(moved example to Input bar section & added CAS example) |
||
Line 4: | Line 4: | ||
: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>}} | ||
+ | {{notes|1= | ||
+ | :*For a fast numerical method (so long as the numbers aren't too big) you can use these in the ''Input Bar'': <code>CommonDenominator[a,a]</code> for denominator and <code>round(a*CommonDenominator[a,a])</code> for Numerator | ||
+ | :*See also [[Denominator Command]].}} | ||
+ | |||
==CAS Syntax== | ==CAS Syntax== | ||
;Numerator[ <Expression> ] | ;Numerator[ <Expression> ] | ||
:Returns the numerator of a rational number or expression. | :Returns the numerator of a rational number or expression. | ||
− | :{{ | + | :{{examples|1=<div> |
− | + | :*<code><nowiki>Numerator[2/3 + 1/15]</nowiki></code> yields ''11''. | |
− | + | :*If variables ''a, b'' and ''c'' haven't been previously defined in GeoGebra, then <code>Numerator[a/b]</code> yields ''a'' and <code>Numerator[a + b/c]</code> yields ''a c + b''</div>}} | |
− | |||
− | </div>}} |
Revision as of 11:15, 30 November 2014
- Numerator[ <Function> ]
- Returns the numerator of the function.
- Example:
Numerator[(3x² + 1) / (2x - 1)]
yields f(x) = 3x² + 1.
Notes:
- For a fast numerical method (so long as the numbers aren't too big) you can use these in the Input Bar:
CommonDenominator[a,a]
for denominator andround(a*CommonDenominator[a,a])
for Numerator - See also Denominator Command.
- For a fast numerical method (so long as the numbers aren't too big) you can use these in the Input Bar:
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[a + b/c]
yields a c + b