The Dink Network

Reply to Re: sp_foo(bar, -1);

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 18th 2004, 07:39 PM
bonca.gif
From the manual page for atan2:

ATAN2(3) Linux Programmer's Manual ATAN2(3)

NAME
atan2 - arc tangent function of two variables

SYNOPSIS
#include <math.h>

double atan2(double y, double x);

float atan2f(float y, float x);

long double atan2l(long double y, long double x);

DESCRIPTION
The atan2() function calculates the arc tangent of the two
variables x and y. It is similar to calculating the arc
tangent of y / x, except that the signs of both arguments
are used to determine the quadrant of the result.

RETURN VALUE
The atan2() function returns the result in radians, which
is between -PI and PI (inclusive).