Difference between revisions of "RemoveUndefined Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(command syntax: changed [ ] into ( ))
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|list}}
{{command|list}}
+
; RemoveUndefined( &lt;List> ):Removes undefined objects from a list.
; RemoveUndefined[ <List> ]:Removes undefined objects from a list.
+
: {{Example| 1=<div><code>RemoveUndefined(Sequence((-1)^i, i, -3, -1, 0.5))</code> removes the second and fourth element of the sequence since expressions <math>(-1)^{1.5}</math> and <math>(-1)^{2.5}</math> are undefined and yields list ''{-1, 1, -1}.</div>}}
: {{Example| 1=<code>RemoveUndefined[Sequence[(-1)^i, i, -3, -1, 0.5]]</code> removes the second and fourth elements of the sequence since expressions <math>(-1)^{1.5}</math> and <math>(-1)^{2.5}</math> are undefined.}}
+
 
 +
{{note| 1=<div>See also [[Remove Command]].</div>}}

Latest revision as of 11:27, 6 October 2017


RemoveUndefined( <List> )
Removes undefined objects from a list.
Example:
RemoveUndefined(Sequence((-1)^i, i, -3, -1, 0.5)) removes the second and fourth element of the sequence since expressions (-1)^{1.5} and (-1)^{2.5} are undefined and yields list {-1, 1, -1}.


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