w3resource

Oracle TAN() function

Description

This function returns the tangent of n (an angle expressed in radians).
The function takes any numeric or nonnumeric data type (can be implicitly converted to a numeric data type) as an argument.
If the argument is BINARY_FLOAT, then the function returns BINARY_DOUBLE. Otherwise, the function returns the same numeric data type as the argument

Uses of Oracle TAN() Function
  • Trigonometric calculations: Compute the tangent of angles in various mathematical and engineering applications.

  • Scientific research: Perform calculations involving trigonometric functions in scientific studies.

  • Graphing and plotting: Generate graphs and plots that require tangent values.

  • Geometric computations: Use the tangent function in geometry for solving problems involving right-angled triangles.

  • Data analysis: Analyze data sets that require trigonometric transformations or calculations.

Syntax:

TAN(n)

Where n is a number

Pictorial Presentation of TAN() function

Pictorial Presentation of Oracle TAN() function

Example - 1

SELECT TAN(2.465)FROM dual;

Here is the result.

TAN(2.465)
----------
-.80304132

The above statement will return the tangent of the given number 2.465.

Example - 2

SELECT TAN(110 * 3.14159265359/180)
"Tangent of 110 degrees"  FROM DUAL;

Here is the result.

Tangent of 110 degrees
----------------------
            -2.7474774

The above statement will return the tangent of the given expression in radians.

Previous: SQRT
Next: TANH



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/oracle/oracle-numeric-functions/oracle-tan-function.php