PostgreSQL TAN() function
TAN() function
The PostgreSQL tan() function is used to return the tangent of a given argument.
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
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join
We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook