<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AMin</id>
	<title>TI-BASIC:Min - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AMin"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Min&amp;action=history"/>
	<updated>2026-05-15T21:21:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Min&amp;diff=1159&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Min&amp;diff=1159&amp;oldid=prev"/>
		<updated>2016-02-24T18:37:42Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=MIN.GIF&lt;br /&gt;
|summary=Returns the minimum of two elements or of a list.&lt;br /&gt;
|syntax=* for two numbers: min(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;y&amp;#039;&amp;#039;)&lt;br /&gt;
* for a list: min(&amp;#039;&amp;#039;list&amp;#039;&amp;#039;)&lt;br /&gt;
* comparing a number to each element of a list: min(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;list&amp;#039;&amp;#039;) or min(&amp;#039;&amp;#039;list&amp;#039;&amp;#039;,&amp;#039;&amp;#039;x&amp;#039;&amp;#039;)&lt;br /&gt;
* pairwise comparing two lists: min(&amp;#039;&amp;#039;list1&amp;#039;&amp;#039;,&amp;#039;&amp;#039;list2&amp;#039;&amp;#039;)&lt;br /&gt;
|location=Press:&lt;br /&gt;
# MATH to access the [[TI-BASIC:Math|Math]] menu.&lt;br /&gt;
# RIGHT to access the NUM submenu.&lt;br /&gt;
# 6 to select min(, or use arrows.&lt;br /&gt;
&lt;br /&gt;
Alternatively, press:&lt;br /&gt;
# 2nd LIST to access the list menu.&lt;br /&gt;
# LEFT to access the MATH submenu.&lt;br /&gt;
# ENTER to select min(.&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=1 byte&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
min(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;y&amp;#039;&amp;#039;) returns the smallest of the two numbers &amp;#039;&amp;#039;x&amp;#039;&amp;#039; and &amp;#039;&amp;#039;y&amp;#039;&amp;#039;. min(&amp;#039;&amp;#039;list&amp;#039;&amp;#039;) returns the smallest element of &amp;#039;&amp;#039;list&amp;#039;&amp;#039;. min(&amp;#039;&amp;#039;list1&amp;#039;&amp;#039;,&amp;#039;&amp;#039;list2&amp;#039;&amp;#039;) returns the pairwise minima of the two lists. min(&amp;#039;&amp;#039;list1&amp;#039;&amp;#039;,&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) (equivalently, min(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;list1&amp;#039;&amp;#039;)) returns a list whose elements are the smaller of &amp;#039;&amp;#039;x&amp;#039;&amp;#039; or the corresponding element of the original list.&lt;br /&gt;
&lt;br /&gt;
 min(2,3)&lt;br /&gt;
      2&lt;br /&gt;
 min({2,3,4})&lt;br /&gt;
      2&lt;br /&gt;
 min({1,3},{4,2})&lt;br /&gt;
      {1 2}&lt;br /&gt;
 min({1,3},2)&lt;br /&gt;
      {1 2}&lt;br /&gt;
&lt;br /&gt;
Unlike [[TI-BASIC:Operators#relational|relational operators]], such as &amp;lt; and &amp;gt;, min( can also compare complex numbers. To do this, both arguments must be complex -- either complex numbers or complex lists: min(2,&amp;#039;&amp;#039;i&amp;#039;&amp;#039;) will throw a [[TI-BASIC:Errors#datatype|ERR:DATA TYPE]] error even though min(2+0&amp;#039;&amp;#039;i&amp;#039;&amp;#039;,&amp;#039;&amp;#039;i&amp;#039;&amp;#039;) won&amp;#039;t. In the case of complex numbers, the number with the smallest absolute value will be returned. When the two numbers have the same absolute value, the second one will be returned: min(&amp;#039;&amp;#039;i&amp;#039;&amp;#039;,-&amp;#039;&amp;#039;i&amp;#039;&amp;#039;) returns -&amp;#039;&amp;#039;i&amp;#039;&amp;#039; and min(-&amp;#039;&amp;#039;i&amp;#039;&amp;#039;,&amp;#039;&amp;#039;i&amp;#039;&amp;#039;) returns &amp;#039;&amp;#039;i&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
= Advanced Uses =&lt;br /&gt;
&lt;br /&gt;
min( can be used in Boolean comparisons to see if every value of a list is 1 (true) -- useful because commands like [[TI-BASIC:If|If]] or [[TI-BASIC:While|While]] only deal with numbers, and not [[TI-BASIC:Lists|Lists]], but comparisons like L1=L2 return a list of values. In general, the behavior you want varies, and you will use the min( or [[TI-BASIC:Max|Max(]] functions accordingly.&lt;br /&gt;
&lt;br /&gt;
Using min( will give you a strict test -- only if every single value of a list is true will min( return true. For example, the following code will test if two lists are identical -- they have the same exact elements -- and print EQUAL in that case:&lt;br /&gt;
&lt;br /&gt;
 :If dim(L1)=dim(L2&lt;br /&gt;
 :Then&lt;br /&gt;
 :If min(L1=L2&lt;br /&gt;
 :Disp &amp;quot;EQUAL&lt;br /&gt;
 :End&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The first check, to see if the sizes are identical, is necessary because otherwise comparing the lists will return a [[TI-BASIC:Errors#dimmismatch|ERR:DIM MISMATCH]] error.&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#datatype|ERR:DATA TYPE]]&amp;#039;&amp;#039;&amp;#039; is thrown when comparing a real and a complex number. This can be avoided by adding 0&amp;#039;&amp;#039;i&amp;#039;&amp;#039; to the real number.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#dimmismatch|ERR:DIM MISMATCH]]&amp;#039;&amp;#039;&amp;#039; is thrown, when using min( with two lists, if they have different dimensions.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Max|Max(]]&lt;br /&gt;
* [[TI-BASIC:Sum|Sum(]]&lt;br /&gt;
* [[TI-BASIC:Prod|Prod(]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>