{"id":25390,"date":"2021-11-10T09:38:50","date_gmt":"2021-11-10T04:08:50","guid":{"rendered":"https:\/\/python-programs.com\/?p=25390"},"modified":"2021-11-10T09:38:50","modified_gmt":"2021-11-10T04:08:50","slug":"python-cmath-acos-method-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-cmath-acos-method-with-examples\/","title":{"rendered":"Python cmath.acos() Method with Examples"},"content":{"rendered":"

cmath.acos() Method in Python:<\/strong><\/p>\n

The cmath.acos() method returns the complex number’s arc cosine.<\/p>\n

There are two types of branch cuts:<\/p>\n

    \n
  1. Extends to the right from 1 to \u221e along the real axis.<\/li>\n
  2. Extends to the left from -1 to -\u221e along the real axis.<\/li>\n<\/ol>\n

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

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

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

    x:<\/strong> This is Required. It is a number that can be used to calculate the arc cosine of<\/p>\n

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

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

    If the return value is expressed as a real number, it has an imaginary part of 0.<\/p>\n

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

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

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

    Given Complex Number = 3+4j<\/pre>\n

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

    The given complex number's (3+4j)  arc cosine value = \r\n(0.9368124611557198-2.305509031243477j)<\/pre>\n

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

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

    Given realpart = 5\r\nGiven imaginary part = 2<\/pre>\n

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

    The given complex number's (5+2j)  arc cosine value = \r\n(0.38656464251987466-2.37054853731792j)<\/pre>\n

    Note:<\/strong> The above input format is for dynamic input.<\/p>\n

    cmath.acos() Method with Examples in Python<\/h2>\n