MySQL TAN() function
TAN() function
MySQL TAN() returns the tangent of the argument. The argument is given in radians.
Syntax:
TAN(X);
Where X is a number
Syntax Diagram:
MySQL Version: 5.6
Pictorial presentation of MySQL TAN() function
Example of MySQL TAN() function
Code:
SELECT TAN(2.465);
Explanation:
The above statement will return the tangent of the given number 2.465.
Sample Output:
mysql> SELECT TAN(2.465); +--------------------+ | TAN(2.465) | +--------------------+ | -0.803041315427368 | +--------------------+ 1 row in set (0.00 sec)
All Mathematical Functions
Previous: SQRT()
Next: TRUNCATE()
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework