Monday, March 5, 2018

Number atan2() Method


Number atan2() Method in Python 3:


The atan2() method returns atan(y / x), in radians.
Syntax
import math
atan2(y, x)

Note: This function is not accessible directly, so we need to import the math module and then we need to call this function using the math static object.

Parameters
· y - This must be a numeric value.
· x - This must be a numeric value.
Return Value
This method returns atan(y / x), in radians.
Example

and the output is :