Difference between revisions of "TI-BASIC:R Ptheta"

From Learn @ Cemetech
Jump to navigationJump to search
(Initial automated import)
 
(Automated internal link correction)
 
(One intermediate revision by the same user not shown)
Line 25: Line 25:
 
= Advanced Uses =
 
= Advanced Uses =
  
If you want the result to always be a radian angle, regardless of mode settings, you can divide the result by 1^^[[TI-BASIC:Radian_Symbol|r]]^^:
+
If you want the result to always be a radian angle, regardless of mode settings, you can divide the result by 1<sup>[[TI-BASIC:Radian_Symbol|r]]</sup>:
  
 
  R►Pθ(x,y)/1^^r
 
  R►Pθ(x,y)/1^^r
Line 41: Line 41:
 
= Related Commands =
 
= Related Commands =
  
* [[TI-BASIC:P►Rx(|P►Rx(]]
+
* [[TI-BASIC:P_Rx|P►Rx(]]
 
* [[TI-BASIC:P►Ry(|P►Ry(]]
 
* [[TI-BASIC:P►Ry(|P►Ry(]]
* [[TI-BASIC:R►Pr(|R►Pr(]]
+
* [[TI-BASIC:R_Pr|R►Pr(]]
 
* [[TI-BASIC:Angle|Angle(]]
 
* [[TI-BASIC:Angle|Angle(]]
 
* [[TI-BASIC:Tanֿ¹(|Tanֿ¹(]][[Category:TI-BASIC]]
 
* [[TI-BASIC:Tanֿ¹(|Tanֿ¹(]][[Category:TI-BASIC]]
 
[[Category:TIBD]]
 
[[Category:TIBD]]

Latest revision as of 23:53, 24 February 2016

RTOPTHETA.GIF

Command Summary

R►Pθ( calculates the angle coordinate (in polar coordinates) given the Cartesian coordinates.

Command Syntax

R►Pθ(x,y)

Menu Location

Press:

  1. 2nd ANGLE to access the angle menu.
  2. 6 to select R►Pθ(, or use arrows and ENTER.

Calculator Compatibility

TI-83/84/+/SE

Token Size

1 byte

R►Pθ( (Rectangular to polar θ) takes the (x,y) (Cartesian) coordinate, and returns the angle that the ray from (0,0) to (x,y) makes with the positive x-axis. This is the θ-coordinate of the same point in (r,θ) (polar) mode. The identity used for this conversion is tan(θ)=y/x, with the correct inverse being chosen depending on the quadrant that the point is in. The range of the angle returned is -π<θ≤π. R►Pθ( can also be used on lists.

R►Pθ( is equivalent to the atan2() instruction seen in C/++ and FORTRAN.

R►Pθ(3,4)
	.927295218
tanֿ¹(4/3)
	.927295218
R►Pθ(0,{1,-1})
	{1.570796327, -1.57096327}

R►Pθ( is affected by Degree and Radian mode in its output, which is an angle measured in degrees or radians respectively.

Advanced Uses

If you want the result to always be a radian angle, regardless of mode settings, you can divide the result by 1r:

R►Pθ(x,y)/1^^r

If you want the result to always be a degree angle, regardless of mode settings, you can divide the result by 1°:

R►Pθ(x,y)/1°


Error Conditions

Related Commands