Difference between revisions of "Denominator Command"

From GeoGebra Manual
Jump to: navigation, search
m (moved notes to Input bar section)
Line 4: Line 4:
 
: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=<div><code><nowiki>Denominator[5 / (x^2 + 2)]</nowiki></code> yields ''f(x)=(x<sup>2</sup> + 2)''.</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 [[Numerator Command]].}}
 +
 
==CAS Syntax==
 
==CAS Syntax==
 
;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=<div><code><nowiki>Denominator[2 / 3 + 1 / 15]</nowiki></code> yields ''15''.</div>}}
{{note|1=<div>See also [[Numerator Command]].</div>}}
 
{{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>}}
 

Revision as of 12:24, 30 November 2014



Denominator[ <Function> ]
Returns the denominator of a function.
Example:
Denominator[5 / (x^2 + 2)] yields f(x)=(x2 + 2).


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 Numerator Command.

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