Oracle / PLSQL: TAN Function

This article is written about how to use the Oracle/PLSQL TAN function with syntax and examples.

Description

The Oracle/PLSQL TAN characteristic returns the tangent of n.

Syntax

The syntax for the TAN characteristic in Oracle/PLSQL is:

TAN( n )

Parameters or Arguments

n A numeric cost used to calculate the tangent. It is an perspective expressed in radians.

Returns

The TAN function returns a numeric value.

Applies To

The TAN feature can be used in the following variations of Oracle/PLSQL:

Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i

Example

Let’s appear at some Oracle TAN characteristic examples and discover how to use the TAN feature in Oracle/PLSQL.

For example:

TAN(3)
Result: -0.142546543074278

TAN(5.2)
Result: -1.88564187751976

TAN(-5.2)
Result: 1.88564187751976