Oracle / PLSQL: TAN Function
This Oracle tutorial explains how to use the Oracle/PLSQL TAN function with syntax and examples.
Description
The Oracle/PLSQL TAN function returns the tangent of n.
Syntax
The syntax for the TAN function in Oracle/PLSQL is:
TAN( n )
Parameters or Arguments
- n
- A numeric value used to calculate the tangent. It is an angle expressed in radians.
Returns
The TAN function returns a numeric value.
Applies To
The TAN function can be used in the following versions of Oracle/PLSQL:
- Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
Example
Let's look at some Oracle TAN function examples and explore how to use the TAN function in Oracle/PLSQL.
For example:
TAN(3) Result: -0.142546543074278 TAN(5.2) Result: -1.88564187751976 TAN(-5.2) Result: 1.88564187751976
Advertisements