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

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

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

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

    \n
  1. Extend from 1j along the imaginary axis to \u221e j to the right.<\/li>\n
  2. Extending from -1j to -\u221e j to the left along the imaginary axis<\/li>\n<\/ol>\n

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

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

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

    x:<\/strong> This is Required. A number used to calculate the arc tangent of<\/p>\n

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

    Returns a complex value that represents the complex number’s arc 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) arc tangent value = \r\n(1.4483069952314644+0.15899719167999918j)<\/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 tangent value = \r\n(1.399284356584545+0.06706599664866984j)<\/pre>\n

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

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