Difference between revisions of "Min Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | <noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | ||
{{command|algebra}} | {{command|algebra}} | ||
− | ; Min[Number a | + | ;Min[ <Number a>, <Number b> ] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:Yields the minimum of the given numbers ''a'' and ''b''. | :Yields the minimum of the given numbers ''a'' and ''b''. | ||
:{{example| 1=<div><code><nowiki>Min[12, 15]</nowiki></code> yields ''12''.</div>}} | :{{example| 1=<div><code><nowiki>Min[12, 15]</nowiki></code> yields ''12''.</div>}} | ||
− | ;Min[List of Numbers] | + | ;Min[ <List of Numbers> ] |
:Yields the minimum of the numbers within the list. | :Yields the minimum of the numbers within the list. | ||
:{{example| 1=<div><code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''-23''.</div>}} | :{{example| 1=<div><code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''-23''.</div>}} | ||
{{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=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.}} | ||
− | ;Min[ Function, left-x, right-x ] | + | ;Min[ <Function>, <left-x>, <right-x> ] |
:Calculates the minimum point for function in the given interval. Function should only have on minimum point in the interval. | :Calculates the minimum point for function in the given interval. Function should only have on minimum point in the interval. | ||
{{note|See also [[Extremum Command]] and [[Function Inspector Tool]].}} | {{note|See also [[Extremum Command]] and [[Function Inspector Tool]].}} | ||
Line 29: | Line 14: | ||
:Returns the lower bound of the interval, e.g. <code>Min[2 < x < 3]</code> returns ''2''. It is the same for open and closed intervals. | :Returns the lower bound of the interval, e.g. <code>Min[2 < x < 3]</code> returns ''2''. It is the same for open and closed intervals. | ||
==CAS Syntax== | ==CAS Syntax== | ||
− | ;Min[Number a, Number b] | + | ;Min[ <Number a>, <Number b> ] |
:Yields the minimum of the given numbers ''a'' and ''b''. | :Yields the minimum of the given numbers ''a'' and ''b''. | ||
:{{example| 1=<div><code><nowiki>Min[12, 15]</nowiki></code> yields ''12''.</div>}} | :{{example| 1=<div><code><nowiki>Min[12, 15]</nowiki></code> yields ''12''.</div>}} | ||
− | ;Min[List of Numbers] | + | ;Min[ <List of Numbers> ] |
:Yields the minimum of the numbers within the list. | :Yields the minimum of the numbers within the list. | ||
:{{example| 1=<div><code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''-23''.</div>}} | :{{example| 1=<div><code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''-23''.</div>}} |
Revision as of 10:00, 19 August 2011
- Min[ <Number a>, <Number b> ]
- Yields the minimum of the given numbers a and b.
- Example:
Min[12, 15]
yields 12.
- Min[ <List of Numbers> ]
- Yields 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 Min[] considers the numbers associated with those objects. For example, Min[List of Segments] will yield the minimum segment length.
- Min[ <Function>, <left-x>, <right-x> ]
- Calculates the minimum point for function in the given interval. Function should only have on minimum point in the interval.
Note: See also Extremum Command and Function Inspector Tool.
- Min[ <Interval> ]
- Returns the lower bound of the interval, e.g.
Min[2 < x < 3]
returns 2. It is the same for open and closed intervals.
CAS Syntax
- Min[ <Number a>, <Number b> ]
- Yields the minimum of the given numbers a and b.
- Example:
Min[12, 15]
yields 12.
- Min[ <List of Numbers> ]
- Yields the minimum of the numbers within the list.
- Example:
Min[{-2, 12, -23, 17, 15}]
yields -23.