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, 1077🔥, 0💬
Popular Posts:
What Is an Oracle Tablespace in Oracle? An Oracle tablespace is a big unit of logical storage in an ...
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...
How To Provide Default Values to Function Parameters in SQL Server Transact-SQL? If you add a parame...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
How To Change the Password for Your Own User Account in MySQL? If you want to change the password of...