Next Previous Up Top Contents Index

7.2 The Transcendentals module

atan2

G.f. method

Summary

Returns the arc tangent of one angle divided by another.

Signature

atan2 x y => z 

Arguments

x
An instance of type <real>. The first angle, in radians.

y
An instance of type <real>. The second angle, in radians.

Values

z
An instance of type <float>.

Library

common-extensions

Module

transcendentals

Description

Returns the arc tangent of x divided by y. x may be zero if y is not zero. The signs of x and y are used to derive what quadrant the angle falls in.

The floating point precision of the result is given by the precision of x/y. The result is a single-float if x/y is an integer.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index