{"id":24260,"date":"2021-10-14T09:19:12","date_gmt":"2021-10-14T03:49:12","guid":{"rendered":"https:\/\/python-programs.com\/?p=24260"},"modified":"2021-11-05T21:02:55","modified_gmt":"2021-11-05T15:32:55","slug":"python-program-for-acos-function","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-acos-function\/","title":{"rendered":"Python Program for acos() Function"},"content":{"rendered":"

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

The math.acos() method returns a number’s arc cosine value. Python acos, also known as Arc cosine, is the inverse of a cosine.<\/p>\n

Note:<\/strong> It should be noted that the parameter passed to math.acos() must be between -1 and 1.<\/p>\n

Tip:<\/strong> The value of PI will be returned by math.acos(-1).<\/p>\n

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

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

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

x: <\/strong>This is required. It is a number between -1 and 1. If x is not a number, a TypeError is returned.<\/p>\n

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

Returns a float value which represents a number’s arc cosine.<\/p>\n