Previous Page | Next Page

Functions and CALL Routines

COS Function



Returns the cosine.
Category: Trigonometric

Syntax
Arguments
Examples

Syntax

COS (argument)


Arguments

argument

specifies a numeric constant, variable, or expression and is expressed in radians. If the magnitude of argument is so great that mod(argument,pi) is accurate to less than about three decimal places, COS returns a missing value.


Examples

SAS Statements Results
x=cos(0.5);
0.8775825619
x=cos(0);
1
x=cos(3.14159/3);
0.500000766

Previous Page | Next Page | Top of Page