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

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

The cmath.atanh() method returns the complex number’s inverse hyperbolic tangent.<\/p>\n

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

    \n
  1. Extends along the real axis from 1 to \u221e, and is continuous from below.<\/li>\n
  2. Extends along the real axis from -1 to -\u221e, and is continuous from above.<\/li>\n<\/ol>\n

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

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

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

    x:<\/strong> This is Required. It is a\u00a0number used to calculate the inverse hyperbolic arctangent of<\/p>\n

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

    Returns a complex value that represents the complex number’s inverse hyperbolic tangent.<\/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) inverse hyperbolic tangent value = \r\n(0.1175009073114339-1.4099210495965755j)<\/pre>\n

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

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

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

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

    The given complex number's (5+3j) inverse hyperbolic tangent value = \r\n(0.14694666622552977+1.4808695768986575j)<\/pre>\n

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

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