Min

Min.png

Command Summary

Finds the lowest numerical value from arguements

Command Syntax

min(arg1,[arg2])

Menu Location

From the catalog

Calculator Compatibility

This command works on all calculators.

The min() Command can exectued in two different ways.

It can find the lowest of two numbers:

min(0,1)
    0

It can find the lowest number in a list:

min({0,1,2})
    0

Advanced Uses

For advanced users, the min command can also have its two arguements replaced with lists, as long as the two lists have the same dimensions and only include numbers. min(list,list) returns a list, with min having been done on each pair of items, as is the custom for lists in functions.

min({123},{321})
    {1,2,1}

It also works in much the same way for matricies.

min([[1,2,3][1,2,3]],[[3,2,1][3,2,1]])
    [[1,2,1][1,2,1]]

Optimization

If comparing two numbers, it is slightly faster to compare the two as two arguements than to have them in a list.

:min({1,2})
can be
:min(1,2)

The first example takes 13 seconds for 1000 repetitions, while the second takes only 9. When using the min command repetitively, this will add up.

Related Commands

Several (around 3) commands have a similar function or are used in a similar context to this command. Make a bulleted list of them, with links to the other commands' pages. It will often be the case that several commands all link to each other.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License