Difference between revisions of "Numerator Command"

From GeoGebra Manual
Jump to: navigation, search
({{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.
:{{example|1=<div><code><nowiki>Numerator[2/3 + 1/15]</nowiki></code> yields ''11''.</div>}}
+
:{{examples|1=<div>
{{note|1=<div>See also [[Denominator Command]].</div>}}
+
:*<code><nowiki>Numerator[2/3 + 1/15]</nowiki></code> yields ''11''.
{{note|1=<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[a + b/c]</code> yields ''a c + b''</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>}}
 

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 and round(a*CommonDenominator[a,a]) for Numerator
  • See also Denominator 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 and Numerator[a + b/c] yields a c + b
© 2024 International GeoGebra Institute