Javatpoint Logo
Javatpoint Logo

Numpy tan() method

This function is used to calculate the trigonometric tangent for all the elements of the array passed as the argument.

Syntax

Parameters

  1. array: Array elements whose tangent values are to be calculated.
  2. out: shape of the output array.

Return

An array with trigonometric tangent sins are returned.

Example

Output:

Input Array: [0.         0.78539816 4.71238898 0.52359878]
tan Array: [0.00000000e+00 1.00000000e+00 5.44374645e+15 5.77350269e-01]

Next TopicNumpy deg2rad()





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA