Functions and CALL Routines |
Category: | Trigonometric |
Syntax | |
Arguments | |
Examples |
Syntax |
TAN(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 /2 |
Examples |
SAS Statements | Results |
---|---|
x=tan(0.5); |
0.5463024898 |
x=tan(0); |
0 |
x=tan(3.14159/3); |
1.7320472695 |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.