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, 1162🔥, 0💬
Popular Posts:
What Happens If the UPDATE Subquery Returns Multiple Rows in MySQL? If a subquery is used in a UPDAT...
How To Drop a Stored Procedure in Oracle? If there is an existing stored procedure and you don't wan...
How To End a Stored Procedure Properly in SQL Server Transact-SQL? Where the end of the "CREATE PROC...
How To Connect the Oracle Server as SYSDBA in Oracle? This is Step 4. The best way to connect to the...
How To Generate CREATE VIEW Script on an Existing View in SQL Server? If you want to know how an exi...