PostgreSQL TAN() function
TAN() function
The PostgreSQL tan() function is used to return the tangent of a given argument, where the argument is an angle in radians.
Uses of TAN() Function
- Trigonometric Calculations: To perform trigonometric operations involving tangent functions.
- Mathematical Operations: Useful in various mathematical formulas that require the tangent of an angle.
- Engineering Applications: Employed in engineering fields for calculations related to waves, oscillations, and circular motion.
- Scientific Research: Used in scientific research for modeling periodic phenomena and solving trigonometric equations.
- Data Analysis: Utilized in data analysis tasks where trigonometric transformations are necessary.
Syntax:
tan(a)
PostgreSQL Version: 9.3
Pictorial presentation of PostgreSQL TAN() function
Example 1: PostgreSQL TAN() function
Code:
SELECT TAN(0) AS "Tan (0)";
Sample Output:
Tan (0) --------- 0 (1 row)
Example 2: PostgreSQL TAN() function
Code:
SELECT TAN(1) AS "Tan (1)";
Sample Output:
Tan (1) ----------------- 1.5574077246549 (1 row)
Example 3: PostgreSQL TAN() function
Code:
SELECT TAN(-1) AS "Tan (-1)";
Sample Output:
Tan (-1) ------------------ -1.5574077246549 (1 row)
Previous: SQRT function
Next: TRUNC function
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://www.w3resource.com/PostgreSQL/tan-function.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics