Difference between revisions of "Rationalize Command"
From GeoGebra Manual
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)") |
|||
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. | ||
− | :{{Examples|1=< | + | :{{Examples|1=<div> |
− | {{Note|1= | + | :*<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>}} | ||
+ | |||
+ | {{Note|1=See also [[MixedNumber Command]].}} |
Revision as of 11:02, 12 October 2017
CAS Syntax
- 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.