Skip to main content

agentchat.contrib.captainagent.tools.math.calculate_circle_area_from_diameter

calculate_circle_area_from_diameter

@with_requirements(["sympy"])
def calculate_circle_area_from_diameter(diameter)

Calculate the area of a circle given its diameter.

Arguments:

  • diameter float - The diameter of the circle.

Returns:

  • float - The area of the circle.