Difference between revisions of "Numerator Command"

From GeoGebra Manual
Jump to: navigation, search
m
(command syntax: changed [ ] into ( ))
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=5.0}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|function}}
{{command|cas=true|function}}
+
;Numerator( <Function> )
;Numerator[ <Function> ]
 
 
: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=<code><nowiki>Numerator((3x² + 1) / (2x - 1))</nowiki></code> yields ''f(x) = 3x² + 1''.}}
{{notes|1=
+
;Numerator( <Number> )
:*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
+
:For a rational number returns its numerator. It uses a numerical method, which limits this command to numbers with small denominator. For irrational input the numerator of its [[ContinuedFraction Command|continued fraction]] is returned.
:*See also [[Denominator Command]].}}
+
{{note|1=See also [[Denominator Command]] and [[FractionText 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>
 
:{{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>}}

Latest revision as of 09:39, 9 October 2017


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 its numerator. It uses a numerical method, which limits this command to numbers with small denominator. For irrational input the numerator of its continued fraction is returned.


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(Simplify(a + b/c)) yields a c + b
© 2024 International GeoGebra Institute