MySQL COS() function
COS() function
MySQL COS() returns the cosine of a number where the number is given in radians.
Syntax:
COS(N);
Argument:
Name | Description |
---|---|
N | A number whose cosine value is to be retrieved. |
Syntax Diagram:

MySQL Version: 5.6
Example
Code:
SELECT COS(1);
Explanation:
The above MySQL statement will return the cosine of the number specified as an argument.
Sample Output:
mysql> SELECT COS(1); +------------------+ | COS(1) | +------------------+ | 0.54030230586814 | +------------------+ 1 row in set (0.01 sec)
All Mathematical Functions
- Weekly Trends
- 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
- JavaScript functions Exercises
- Python Tutorial
- Python Array Exercises
- SQL Cross Join
- C# Sharp Array Exercises
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