{"id":24347,"date":"2021-10-14T09:46:28","date_gmt":"2021-10-14T04:16:28","guid":{"rendered":"https:\/\/python-programs.com\/?p=24347"},"modified":"2021-11-05T21:06:25","modified_gmt":"2021-11-05T15:36:25","slug":"python-program-for-tan-function","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-tan-function\/","title":{"rendered":"Python Program for tan() Function"},"content":{"rendered":"

In the previous article, we have discussed Python Program for sin() Function<\/a>
\ntan() Function in Python:<\/strong><\/p>\n

The tangent of a number is returned by the math.tan() method.<\/p>\n

The tangent function’s mathematical formula is:<\/p>\n

tan(A) = length of opposite side\/length of adjacent side<\/p>\n

Syntax:<\/strong><\/p>\n

math.tan(x)<\/pre>\n

Parameters:<\/strong><\/p>\n

x:<\/strong> This is Required. It is the number to calculate the tangent of. If the value is not a number, a TypeError is returned.<\/p>\n

Return Value: <\/strong><\/p>\n

Returns a float value representing a number’s tangent.<\/p>\n