Difference between revisions of "Rationalize Command"

From GeoGebra Manual
Jump to: navigation, search
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>{{betamanual|version=4.2}}
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|geogebra}}
{{command|CAS}}
+
==CAS Syntax==
 +
;Rationalize( <Number> )
 +
:Creates the fraction of the given ''Number'', and rationalizes the denominator, if it contains square roots.
 +
:{{Examples|1=<div>
 +
:*<code><nowiki>Rationalize(3.5)</nowiki></code> yields <math>\frac{7}{2}</math>.
 +
:*<code><nowiki>Rationalize(1/sqrt(2))</nowiki></code> yields <math>\frac{\sqrt{2} }{2}</math>.</div>}}
  
==CAS Syntax==
+
{{Note|1=See also [[MixedNumber Command]].}}
;Rationalize[ <Number> ]
 
:Creates the fraction of the given ''Number'', and rationalizes the denominator if appropriate.
 
:{{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>.}}
 
:{{Note|1=<br>See also [[MixedNumber Command]].}}
 

Latest revision as of 13:11, 24 May 2019


CAS Syntax

Rationalize( <Number> )
Creates the fraction of the given Number, and rationalizes the denominator, if it contains square roots.
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