<?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%3AArccos</id>
	<title>TI-BASIC:Arccos - 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%3AArccos"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Arccos&amp;action=history"/>
	<updated>2026-05-29T20:33:23Z</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:Arccos&amp;diff=1094&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:Arccos&amp;diff=1094&amp;oldid=prev"/>
		<updated>2016-02-24T18:34:19Z</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=COSINVERSE.GIF&lt;br /&gt;
|summary=Returns the inverse cosine (also called arccosine)&lt;br /&gt;
|syntax=cosֿ¹(&amp;#039;&amp;#039;number&amp;#039;&amp;#039;)&lt;br /&gt;
|location=Press:&lt;br /&gt;
# [2nd]&lt;br /&gt;
# [cosֿ¹]&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=1 byte&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
cosֿ¹( returns the [http://mathworld.wolfram.com/InverseCosine.html arccosine] of its argument. It is the inverse of [[TI-BASIC:Cos|Cos(]], which means that cosֿ¹(n) produces an angle θ such that cos(θ)=n.&lt;br /&gt;
&lt;br /&gt;
Like cos(, the result of cosֿ¹( depends on whether the calculator is in [[TI-BASIC:Radian_Mode|Radian]] or [[TI-BASIC:Degree_Mode|Degree]] mode. However, unlike cosine, the result is in degrees or radians, not the argument. A full rotation around a circle is 2π radians, which is equal to 360°. The conversion of θ=cosֿ¹(n) from radians to degrees is θ*180/π and from degrees to radians is θ*π/180.  The cosֿ¹( command also works on a list.&lt;br /&gt;
&lt;br /&gt;
The cosֿ¹( function can be defined for all real and complex numbers, but assumes real values only in the closed interval [-1,1]. Because Z80 calculators have their trigonometric functions and inverses restricted only to real values, the calculator will throw [[TI-BASIC:Errors#domain|ERR:DOMAIN]] if the argument is outside of this interval, no matter what the mode setting may be.&lt;br /&gt;
&lt;br /&gt;
In radians:&lt;br /&gt;
&lt;br /&gt;
 :cosֿ¹(-1)&lt;br /&gt;
     3.141592654&lt;br /&gt;
&lt;br /&gt;
In degrees:&lt;br /&gt;
&lt;br /&gt;
 :cosֿ¹(-1)&lt;br /&gt;
     180&lt;br /&gt;
&lt;br /&gt;
= Advanced Uses =&lt;br /&gt;
&lt;br /&gt;
Since the function cosine itself doesn&amp;#039;t have the restrictions that arccosine does, and since arccosine is the inverse of cosine, you can use cosֿ¹(cos( to keep a variable within a certain range (most useful for the [[TI-BASIC:Homescreen|home screen]]). Here is an example for a game like [[TI-BASIC:Pong|Pong]]. The ball travels between 0 and 12.&lt;br /&gt;
&lt;br /&gt;
You could use a flag like this:&lt;br /&gt;
&lt;br /&gt;
 :If X=12 or not(X 	\\ X is the position&lt;br /&gt;
 :-D→D		\\ D is the direction&lt;br /&gt;
 :X+D→X		\\ new position&lt;br /&gt;
 :Output(8,X,&amp;quot;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An easier way to do this, without needing a flag or even an [[TI-BASIC:If|If]] statement, is using cosֿ¹(cos(&lt;br /&gt;
&lt;br /&gt;
 :X+1→X		\\ Note: the calculator is in Degree mode&lt;br /&gt;
 :Output(8,cosֿ¹(cos(15X))/15,&amp;quot;=&amp;quot;)	\\ I used 15 because cosֿ¹ ranges from [0,180]&lt;br /&gt;
 										and X from [0,12],  so 180/12=15&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#domain|ERR:DOMAIN]]&amp;#039;&amp;#039;&amp;#039; is thrown if you supplied an argument outside the interval [-1,1]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#datatype|ERR:DATA TYPE]]&amp;#039;&amp;#039;&amp;#039; is thrown if you input a complex value or a matrix.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Sin|Sin(]]&lt;br /&gt;
* [[TI-BASIC:Arcsin|sinֿ¹(]]&lt;br /&gt;
* [[TI-BASIC:Cos|Cos(]]&lt;br /&gt;
* [[TI-BASIC:Tan|Tan(]]&lt;br /&gt;
* [[TI-BASIC:Arctan|tanֿ¹(]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>