Help Contents / Arithmetic / Trigonometric Functions / radArcTan

radArcTan x y

outputs the arctangent of y/x, in radians, of its input, if x is nonzero, or pi/2 or -pi/2 depending on the sign of y, if x is zero. 

The expression 

	2*(RADARCTAN 0 1) 

can be used to get the value of pi. 

Examples: 

	radArcTan 1 0		;0  ;-) 
	pi/(radArcTan 1 1)		;4  ;-) 
	pi/(radArcTan 1 Sqrt 3)		;3  ;-) 
	pi/(radArcTan 1 1e300)		;2  ;-) 


previous: ArcTan
