Monday, March 5, 2018

Number tan() Method


Number tan() Method in Python 3


The tan() method returns the tangent of x radians.

Syntax
import math
tan(x)

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

Parameters
x - This must be a numeric value.
Return Value
This method returns a numeric value between -1 and 1, which represents the tangent of the parameter x.
Example

and the output is :