"""
This module provides utility functions for complex numbers.
"""

import math


def modulus(re, im):
    """
    Compute the modulus of a complex number.

    :param re: real part of the complex number
    :param im: imaginary part of the complex number
    :rtype: modulus of complex number
    """
    return math.sqrt(re * re + im * im)


def phase(re, im):
    """
    Compute the phase of a complex number.

    :param re: real part of the complex number
    :param im: imaginary part of the complex number
    :rtype: phase of complex number
    """
    return math.atan2(im, re)

"""
This module provides utility functions for complex numbers.
"""

import math


def modulus(real, imag):
    """
    Compute the modulus of a complex number.

    :param real: real part of the complex number
    :param imag: imaginary part of the complex number
    :rtype: modulus of complex number
    """
    return math.sqrt(real * real + imag * imag)


def phase(real, imag):
    """
    Compute the phase of a complex number.

    :param real: real part of the complex number
    :param imag: imaginary part of the complex number
    :rtype: phase of complex number
    """
    return math.atan2(imag, real)

Fix variable naming convention for complex module