COT():

SELECT COT(PI()); // Output is -8.16561967659769e+015 or Infinity 
SELECT ROUND(COT(PI()/2),2); // Output is 0.00 
SELECT ROUND(COT(PI()/3),2); // Output is 0.58 
We used ROUND() to show only two decimal places.

Syntax
SELECT COT( X )
X is in Radian

COT() with PI()

mathematical constant PI() (π) value is 3.141593

COT() with RADIANS

Radians function convert degree value to radian.

SELECT COT(RADIANS(0)); // Output is NULL
SELECT COT(RADIANS(45)); // Output is 1 
SELECT  ROUND(COT(RADIANS(90)),2); // Output is0.00
SELECT ROUND(COT(RADIANS(180)),2); // Output is Infinity 
SQL Math References TAN() sin()
Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com

    Post your comments , suggestion , error , requirements etc here





    SQL Video Tutorials










    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer