Difference between revisions of "Min Command"
From GeoGebra Manual
m |
Noel Lambert (talk | contribs) |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|algebra}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|algebra}} | ||
− | ;Min[ | + | ;Min[ <List> ] |
:Returns the minimum of the numbers within the list. | :Returns the minimum of the numbers within the list. | ||
:{{example| 1=<code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''-23''.}} | :{{example| 1=<code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''-23''.}} | ||
− | :{{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[ | + | :{{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[ <List> ] will yield the minimum segment length.}} |
Line 22: | Line 22: | ||
:{{example| 1=<code><nowiki>Min[ x^3 + 2x^2 - 1, -2, 0]</nowiki></code> creates the point (0, -1).}} | :{{example| 1=<code><nowiki>Min[ x^3 + 2x^2 - 1, -2, 0]</nowiki></code> creates the point (0, -1).}} | ||
− | ;Min[ | + | ;Min[ <List of Data>, <List of Frequencies> ] |
:Returns the minimum of the list of data with corresponding frequencies. | :Returns the minimum of the list of data with corresponding frequencies. | ||
:{{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.}} | :{{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.}} | ||
==CAS Syntax== | ==CAS Syntax== | ||
− | ;Min[ | + | ;Min[ <List> ] |
:Returns the minimum of the numbers within the list. | :Returns the minimum of the numbers within the list. | ||
:{{example| 1=<code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''-23''.}} | :{{example| 1=<code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''-23''.}} |
Revision as of 21:46, 22 August 2015
- 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: Opened 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 minimum point for function in the given interval. Function should be continuous and have only one local minimum point in the interval.
- Example:
Min[ x^3 + 2x^2 - 1, -2, 0]
creates the point (0, -1).
- 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.
CAS Syntax
- Min[ <List> ]
- Returns the minimum of the numbers within the list.
- Example:
Min[{-2, 12, -23, 17, 15}]
yields -23.
- Min[ <Number>, <Number> ]
- Returns the minimum of the two given numbers.
- Example:
Min[12, 15]
yields 12.
Note: See also Max Command, Extremum Command and Function Inspector Tool.