log

Declaration

double function log(double X)

Description

log returns the natural logarithm of X. where X >= 1.0 e -304

Example Stored Procedure

CREATE PROCEDURE test_log (X DOUBLE PRECISION)

RETURNS (result DOUBLE PRECISION) AS

BEGIN

result = log(X);

END!!

WISQL - calling the example stored procedure

execute procedure test_log( 2.2);

RESULT

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

0.7884573603642703

execute procedure test_log( 7002.2);

RESULT

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

8.853979664374327

Error Results - restrictions on X are : X > 1.0e304

execute procedure test_log( -7002.2);

RESULT

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

-999999

execute procedure test_log( .9e-304);

RESULT

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

-999999