Difference between revisions of "Numerator Command"
From GeoGebra Manual
(replaced example in the "general" section because it refers to an input bar entry) |
m (fix example) |
||
Line 14: | Line 14: | ||
:{{examples|1=<div> | :{{examples|1=<div> | ||
:*<code><nowiki>Numerator[2/3 + 1/15]</nowiki></code> yields ''11''. | :*<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>}} | + | :*If variables ''a, b'' and ''c'' haven't been previously defined in GeoGebra, then <code>Numerator[a/b]</code> yields ''a'' and <code>Numerator[Simplify[a + b/c]]</code> yields ''a c + b''</div>}} |
Revision as of 16:59, 26 December 2015
- Numerator[ <Function> ]
- Returns the numerator of the function.
- Example:
Numerator[(3x² + 1) / (2x - 1)]
yields f(x) = 3x² + 1.
Note:
- 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[Simplify[a + b/c]]
yields a c + b