Difference between revisions of "Denominator Command"

From GeoGebra Manual
Jump to: navigation, search
m (Bot: Automated text replacement (-{{command +{{command|cas=true))
(command syntax: changed [ ] into ( ))
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|function}}
{{command|cas=true|function}}
+
;Denominator( <Function> )
;Denominator[ <Function> ]
 
 
:Returns the denominator of a function.
 
:Returns the denominator of a function.
:{{example|1=<div><code><nowiki>Denominator[5 / (x^2 + 2)]</nowiki></code> yields ''f(x)=(x<sup>2</sup> + 2)''.</div>}}
+
:{{example|1=<code><nowiki>Denominator(5 / (x^2 + 2))</nowiki></code> yields ''f(x)=(x<sup>2</sup> + 2)''.}}
 +
;Denominator( <Number> )
 +
:For a rational number returns its denominator. It uses a numerical method, which limits this command to numbers with small denominator. For irrational input the denominator of its [[ContinuedFraction Command|continued fraction]] is returned.
 +
{{note|1=See also [[Numerator Command]] and [[FractionText Command]].}}
 +
 
 +
 
 
==CAS Syntax==
 
==CAS Syntax==
The following syntax works only in [[CAS View]].
+
;Denominator( <Expression> )
;Denominator[ <Expression> ]
 
 
:Returns the denominator of a rational number or expression.
 
:Returns the denominator of a rational number or expression.
:{{example|1=<div><code><nowiki>Denominator[2 / 3 + 1 / 15]</nowiki></code> yields ''15''.</div>}}
+
:{{example|1=<code><nowiki>Denominator(2 / 3 + 1 / 15)</nowiki></code> yields ''15''.}}
{{note|1=<div>See also [[Numerator Command]].</div>}}
 

Latest revision as of 09:02, 9 October 2017


Denominator( <Function> )
Returns the denominator of a function.
Example: Denominator(5 / (x^2 + 2)) yields f(x)=(x2 + 2).
Denominator( <Number> )
For a rational number returns its denominator. It uses a numerical method, which limits this command to numbers with small denominator. For irrational input the denominator of its continued fraction is returned.


CAS Syntax

Denominator( <Expression> )
Returns the denominator of a rational number or expression.
Example: Denominator(2 / 3 + 1 / 15) yields 15.
© 2024 International GeoGebra Institute