atan

Declaration

double* function atan(double* X)

Description

atan returns the arc tangent of X.. Atan returns a value between -pi/2 and pi/2.

Example Stored Procedure

CREATE PROCEDURE test_asin (x DOUBLE PRECISION)

RETURNS (result DOUBLE PRECISION) AS

BEGIN

result = asin(x);

END!!

WISQL - calling the example stored procedure

execute procedure test_atan(-1.1);

RESULT

======================

-0.8329812666744317

execute procedure test_atan(1);

RESULT

======================

0.7853981633974483

Error Results - restrictions on X are : -PI/2 < X < PI/2

execute procedure test_atan( 1.7);

RESULT

======================

-999999

execute procedure test_atan( -1.7);

RESULT

======================

-999999