TAN Function

Returns the tangent.

Categories:Trigonometric
CAS
Table of Contents

Syntax

TAN(argument)

Required Argument

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.

Restrictioncannot be an odd multiple of π /2

Example

The following SAS statements produce these results:
SAS Statement
Result
x=tan(0.5);
0.5463024898
x=tan(0);
0
x=tan(3.14159/3);
1.7320472695
Last updated: March 16, 2017