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, 1228🔥, 0💬
Popular Posts:
What Are Out-of-Range Errors with DATETIME values in SQL Server Transact-SQL? When you enter DATETIM...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
How To Install PHP on Windows in MySQL? The best way to download and install PHP on Windows systems ...
How To Get Year, Month and Day Out of DATETIME Values in SQL Server Transact-SQL? You can use DATEPA...
How To Generate Random Numbers with the RAND() Function in SQL Server Transact-SQL? Random numbers a...