Difference between revisions of "Rationalize Command"

From GeoGebra Manual
Jump to: navigation, search
Line 2: Line 2:
 
==CAS Syntax==
 
==CAS Syntax==
 
;Rationalize( <Number> )
 
;Rationalize( <Number> )
:Creates the fraction of the given ''Number'', and rationalizes the denominator if appropriate.
+
:Creates the fraction of the given ''Number'', and rationalizes the denominator (square roots only).
 
:{{Examples|1=<div>
 
:{{Examples|1=<div>
 
:*<code><nowiki>Rationalize(3.5)</nowiki></code> yields <math>\frac{7}{2}</math>.
 
:*<code><nowiki>Rationalize(3.5)</nowiki></code> yields <math>\frac{7}{2}</math>.

Revision as of 12:05, 24 May 2019


CAS Syntax

Rationalize( <Number> )
Creates the fraction of the given Number, and rationalizes the denominator (square roots only).
Examples:
  • Rationalize(3.5) yields \frac{7}{2}.
  • Rationalize(1/sqrt(2)) yields \frac{\sqrt{2} }{2}.


Note: See also MixedNumber Command.
© 2024 International GeoGebra Institute