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, 1505🔥, 0💬
Popular Posts:
How To Replace Given Values with NULL using NULLIF() in SQL Server Transact-SQL? Sometime you want t...
How To Divide Query Output into Multiple Groups with the GROUP BY Clause in SQL Server? Sometimes, y...
How To Locate and Take Substrings with CHARINDEX() and SUBSTRING() Functions in SQL Server Transact-...
What Is Program Global Area (PGA) in Oracle? A Program Global Area (PGA) is a memory buffer that is ...
How To Escape Special Characters in SQL statements in MySQL? There are a number of special character...