COT() function

SELECT COT( X )
X is in Radian

COT() with PI()

mathematical constant PI() (π) value is 3.141593
SELECT COT(PI()); // Ouput is -8.16561967659769e+015 or Ifninity 
SELECT ROUND(COT(PI()/2),2); // Ouput is 0.00 
SELECT ROUND(COT(PI()/3),2); // Ouput is 0.58 
We used ROUND() to show only two decimal places.

COT() with RADIANS

Radians function convert degree value to radian.

SELECT COT(RADIANS(0)); // Ouput 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 
Your Rating




Post your comments , suggestion , error , requirements etc here .








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