ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: atan2
Type: RealFloat a => a -> a -> a
Class: RealFloat
Description: atan2 y x computes the angle (from the positive x-axis) of the vector from the origin to the point (x,y). atan2 y x returns a value in the range [-pi, pi]
Related:

Example 1

Input: atan2 1 1

Output: 0.785398

Example 2

Input: atan2 0 1

Output: 0.0

Example 3

Input: atan2 1 0

Output: 1.5708