COT() - Cotangent Trigonometric Value

Q

How to calculate the cotangent trigonometric value of a given angle using the COT() function?

✍: FYIcenter.com

A

COT(X) is a MySQL built-in function that calculates the cotangent trigonometric value of a given angle in radians. For example:

SELECT COT(0.1), COT(1.57), COT(3.14);
  -- +-------------------+-----------------------+--------------------+
  -- | COT(0.1)          | COT(1.57)             | COT(3.14)          |
  -- +-------------------+-----------------------+--------------------+
  -- | 9.966644423259238 | 0.0007963269632231926 | -627.8823975869132 |
  -- +-------------------+-----------------------+--------------------+

Reference information of the COT() function:

COT(X): val
  Returns the cotangent of X, where X is given in radians.

Arguments, return value and availability:
  X: Required. The input angle in radians.
  val: Return value. The cotangent of X.
  Available since MySQL 4.0.

Related MySQL functions:

 

DEGREES() - Radians to Degrees

COS() - Cosine Trigonometric Value

MySQL Functions on Numeric Values

⇑⇑ MySQL Function References

2023-11-15, 249🔥, 0💬