Difference between revisions of "Rationalize Command"

From GeoGebra Manual
Jump to: navigation, search
Line 3: Line 3:
 
;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 if appropriate.
:{{example| 1=<div><code><nowiki>Rationalize[3.5]</nowiki></code> yields <math>\frac{7}{2}</math>.</div>}}
+
:{{Examples|1=<br><code><nowiki>Rationalize[3.5]</nowiki></code> yields <math>\frac{7}{2}</math>.<br><code><nowiki>Rationalize[1/sqrt(2)]</nowiki></code> yields <math>\frac{\sqrt{2} }{2}</math>.}}
:{{example| 1=<div><code><nowiki>Rationalize[1/sqrt(2)]</nowiki></code> yields <math>\frac{\sqrt{2} }{2}</math>.</div>}}
+
:{{Note|1=<br>See also [[MixedNumber Command]].}}
{{note| 1=<div>See also [[MixedNumber Command]].</div>}}
 

Revision as of 03:08, 6 October 2012

This command works in CAS View only.

Rationalize[ <Number> ]
Creates the fraction of the given Number, and rationalizes the denominator if appropriate.
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