Collections:
COS() - Cosine Trigonometric Value
How to calculate the cosine trigonometric value of a given angle using the COS() function?
✍: FYIcenter.com
COS(X) is a MySQL built-in function that
calculates the cosine trigonometric value of a given angle in radians.
For example:
SELECT COS(0), COS(1.57), COS(3.14); -- +--------+-----------------------+---------------------+ -- | COS(0) | COS(1.57) | COS(3.14) | -- +--------+-----------------------+---------------------+ -- | 1 | 0.0007963267107332633 | -0.9999987317275395 | -- +--------+-----------------------+---------------------+
Reference information of the COS() function:
COS(X): val Returns the cosine of X, where X is given in radians. Arguments, return value and availability: X: Required. The input angle in radians. val: Return value. The cosine of X. Available since MySQL 4.0.
Related MySQL functions:
⇒ COT() - Cotangent Trigonometric Value
⇐ CONV() - Number Base Conversion
2023-11-15, 1053🔥, 0💬
Popular Posts:
How To Round a Numeric Value To a Specific Precision in SQL Server Transact-SQL? Sometimes you need ...
Where to find answers to frequently asked questions on PHP Connections and Query Execution for MySQL...
How to download and install SQL Server 2005 Sample Scripts in SQL Server? If you want to learn from ...
How To Break Query Output into Pages in MySQL? If you have a query that returns hundreds of rows, an...
How To Use DATEADD() Function in SQL Server Transact-SQL? DATEADD() is a very useful function for ma...