Embed presentation
Download to read offline


![Just a normal example
x
y
1
1
θ
(1,1)=[√2, π
4
]
θ=atan(
y
x
)
θ=atan(
1
1
)= π
4](https://image.slidesharecdn.com/atan2-160420165912/75/atan2-brief-explain-3-2048.jpg)





The document discusses the difference between the atan and atan2 functions. Atan returns the principal value of the arctangent of y/x in radians between -π/2 and π/2. Atan2 avoids problems when determining the quadrant by also considering the signs of both x and y, allowing it to return values between -π and π. Some examples are provided where atan and atan2 return different values due to the quadrant. The document recommends checking the man pages for more details on atan and atan2.


![Just a normal example
x
y
1
1
θ
(1,1)=[√2, π
4
]
θ=atan(
y
x
)
θ=atan(
1
1
)= π
4](https://image.slidesharecdn.com/atan2-160420165912/75/atan2-brief-explain-3-2048.jpg)



