Skip to main content

agentchat.contrib.captainagent.tools.math.complex_numbers_product

complex_numbers_product

@with_requirements(["sympy"])
def complex_numbers_product(complex_numbers)

Calculates the product of a list of complex numbers.

Arguments:

  • complex_numbers list - A list of dictionaries representing complex numbers. Each dictionary should have 'real' and 'imag' keys representing the real and imaginary parts of the complex number.

Returns:

  • complex - The simplified product of the complex numbers.