Difference between revisions of "Numerator Command"

From GeoGebra Manual
Jump to: navigation, search
m
(replaced example in the "general" section because it refers to an input bar entry)
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>}}
 +
 +
{{note|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> ]
Line 9: Line 15:
 
:*<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[a + b/c]</code> yields ''a c + b''</div>}}
 
{{note|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]].}}
 

Revision as of 12:13, 30 August 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 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