Difference between revisions of "Min 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 )
m (typo)
(19 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|algebra}}
{{command|cas=true|algebra}}
+
;Min( <List> )
;Min[ <Number a>, <Number b> ]
+
:Returns the minimum of the numbers within the list.
:Gives the minimum of the given numbers ''a'' and ''b''.
+
:{{example| 1=<code><nowiki>Min({-2, 12, -23, 17, 15})</nowiki></code>  yields ''-23''.}}
:{{example| 1=<div><code><nowiki>Min[12, 15]</nowiki></code>  yields ''12''.</div>}}
+
:{{note| 1=If the input consists of non-numeric objects, then this command considers the numbers associated with those objects. If you have a list of segments for example, the command Min( &lt;List> ) will yield the minimum segment length.}}
;Min[ <List of Numbers> ]
+
;Min( <Interval> )
:Gives the minimum of the numbers within the list.
+
:Returns the lower bound of the interval.
:{{example| 1=<div><code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code>  yields ''-23''.</div>}}
+
:{{example| 1=<code><nowiki>Min(2 < x < 3)</nowiki></code> yields ''2'' .}}
:{{note| 1=If the input consists of non-numeric objects, then Min[] considers the numbers associated with those objects. For example, Min[List of Segments] will yield the minimum segment length.}}
+
:{{note| 1=Open and closed intervals are not distinguished.}}
;Min[ <Function>, <left-x>, <right-x> ]
+
;Min( <Number>, <Number> )
:Calculates (numerically) the minimum point for function in the given interval. Function should be continuous and have only one minimum point in the interval.
+
:Returns the minimum of the two given numbers.
;Min[ <Interval> ]
+
:{{example| 1=<code><nowiki>Min(12, 15)</nowiki></code>  yields ''12''.}}
:Gives the lower bound of the interval.
+
;Min( <Function>, <Start x-Value>, <End x-Value> )
:{{example| 1=<div><code><nowiki>Min[2 < x < 3]</nowiki></code> yields ''2'' .</div>}}
+
:Calculates (numerically) the '''local''' minimum point for function in the given interval. Function should be continuous and have only one ''local'' minimum point in the interval.
:{{note| 1=Opened and closed intervals are not distinguished.}}
+
:{{note| 1=For polynomials you should use the [[Extremum Command]].}}
==CAS Syntax==
+
:{{example| 1=<code><nowiki>Min(exp(x) x^3,-4,-2)</nowiki></code> creates the point (-3, -1.34425) .}}
;Min[ <Number a>, <Number b> ]
+
;Min( <List of Data>, &lt;List of Frequencies> )
:Gives the minimum of the given numbers ''a'' and ''b''.
+
:Returns the minimum of the list of data with corresponding frequencies.  
:{{example| 1=<div><code><nowiki>Min[12, 15]</nowiki></code>  yields ''12''.</div>}}
+
:{{example| 1=<code><nowiki>Min({1, 2, 3, 4, 5}, {0, 3, 4, 2, 3})</nowiki></code> yields 2, the lowest number of the first list whose frequency is greater than 0.}}
;Min[ <List of Numbers> ]
+
 
:Gives the minimum of the numbers within the list.
+
{{note| 1=<div>
:{{example| 1=<div><code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''-23''.</div>}}
+
* If you want the minimum of two functions <code>f(x)</code> and <code>g(x)</code> then you can define <code>(f(x) + g(x) - abs(f(x) - g(x)))/2</code>
{{note| 1=See also [[Extremum Command]] and [[Function Inspector Tool]].}}
+
* See also [[Max Command]], [[Extremum Command]] and [[Function Inspector Tool]].</div>}}

Revision as of 09:07, 25 October 2019


Min( <List> )
Returns the minimum of the numbers within the list.
Example: Min({-2, 12, -23, 17, 15}) yields -23.
Note: If the input consists of non-numeric objects, then this command considers the numbers associated with those objects. If you have a list of segments for example, the command Min( <List> ) will yield the minimum segment length.
Min( <Interval> )
Returns the lower bound of the interval.
Example: Min(2 < x < 3) yields 2 .
Note: Open and closed intervals are not distinguished.
Min( <Number>, <Number> )
Returns the minimum of the two given numbers.
Example: Min(12, 15) yields 12.
Min( <Function>, <Start x-Value>, <End x-Value> )
Calculates (numerically) the local minimum point for function in the given interval. Function should be continuous and have only one local minimum point in the interval.
Note: For polynomials you should use the Extremum Command.
Example: Min(exp(x) x^3,-4,-2) creates the point (-3, -1.34425) .
Min( <List of Data>, <List of Frequencies> )
Returns the minimum of the list of data with corresponding frequencies.
Example: Min({1, 2, 3, 4, 5}, {0, 3, 4, 2, 3}) yields 2, the lowest number of the first list whose frequency is greater than 0.


Note:
© 2024 International GeoGebra Institute