Name

cos — return the cosine of an angle in radians

Synopsis

cos( in x double precision);
 

Description

cos returns the cosine of x. The argument is an angle in radians. The argument is converted to an IEEE 64-bit float and the result is of that type.

Parameters

x

Angle in radians, as double precision.

Return Types

cos returns a double precision value.

Examples

Example 24.523. Simple example

SQL> select cos(0);
unnamed
DOUBLE PRECISION NOT NULL
_______________________________________________________________________________

                        1

1 Rows. -- 0 msec.

SQL> select cos(pi()/2);
cos
DOUBLE PRECISION
_______________________________________________________________________________

1.615544574432587e-15

1 Rows. -- 1 msec.
      

See Also

sin, tan, acos, pi, radians


© 1992 - OpenLink Software. All rights reserved.

Making Technology Work for You®