ATAN() function

SELECT ATAN(0);// Output 0
SELECT ATAN(1); // Output is 0.785398163397448
SELECT ATAN(-2); // Output is -1.10714871779409

Using ROUND() with ATAN()

SELECT ROUND(ATAN(-2),2);// Output is 1.11
We are getting outputs in radian, so to change the value to degree we will use DEGREES()

ATAN() with DEGREES()

SELECT DEGREES(ATAN(0)); // Output is 0
SELECT DEGREES(ATAN(1)); // Output is 45 
SELECT DEGREES(ATAN(-1)); // Output is -45
Syntax
SELECT ATAN( X )
The output is arc tangent cos of X. This is the value for which tangent is X

SQL Math References SIN() function COS()
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