Previous Page | Next Page

Functions and CALL Routines

TAN Function



Returns the tangent.
Category: Trigonometric

Syntax
Arguments
Examples

Syntax

TAN(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, TAN returns a missing value.

Restriction: cannot be an odd multiple of [pi] /2

Examples

SAS Statements Results
x=tan(0.5);
0.5463024898
x=tan(0);
0
x=tan(3.14159/3);
1.7320472695

Previous Page | Next Page | Top of Page