In this article, we are going to cover the ATN2()function in which we will see how we can get the arc tangent of two given numbers. Let’s discuss one by one.
// here val1 and val2 are input. Input : ATN2(val1, val2) Output : Arc tangent result.
It is the function that returns the arc tangent of two numbers.
This method accepts two-parameters as mentioned above and described below.
- val1, val2:
It is the two numeric values to calculate the arc tangent.
It returns the arc tangent of two numbers.
When the arguments hold the positive number.
SELECT ATN2(2.53, 5.6);
When the arguments hold the negative number.
SELECT ATN2(-2.53, -5.6);
When the PI() function passing one of the arguments.
SELECT ATN2(PI(), 4);
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.