SELECT ATAN(0);// Output 0 SELECT ATAN(1); // Output is 0.785398163397448 SELECT ATAN(-2); // Output is -1.10714871779409
SELECT ROUND(ATAN(-2),2);// Output is 1.11We are getting outputs in radian, so to change the value to degree we will use DEGREES()
SELECT DEGREES(ATAN(0)); // Output is 0 SELECT DEGREES(ATAN(1)); // Output is 45 SELECT DEGREES(ATAN(-1)); // Output is -45Syntax
SELECT ATAN( X )
The output is arc tangent cos of X. This is the value for which tangent is X
Author
🎥 Join me live on YouTubePassionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.