def largest_triangle(a, b):
    import math
    # The largest triangle inscribed in an ellipse with semi-axes a and b
    # is an equilateral triangle. The area is (3*sqrt(3)/4) * a * b * ... 
    # 
    # For an ellipse x²/a² + y²/b² = 1, the largest inscribed triangle
    # has area = (3*sqrt(3)/4) * a * b * ... let me derive this properly.
    #
    # The largest triangle inscribed in an ellipse is obtained by applying
    # the affine transformation to the largest triangle inscribed in a circle.
    # For a circle of radius r, the largest inscribed triangle is equilateral
    # with area = (3*sqrt(3)/4) * r²
    # 
    # The ellipse is an affine transformation of a circle with radius a (or b).
    # Specifically, x' = x, y' = (b/a)*y transforms circle of radius a to ellipse.
    # The affine transformation scales areas by factor b/a.
    # So largest triangle area in ellipse = (3*sqrt(3)/4) * a² * (b/a) = (3*sqrt(3)/4) * a * b
    #
    # Wait, let me reconsider. Circle of radius a has largest inscribed triangle area:
    # = (3*sqrt(3)/4) * a²
    # Affine map (x,y) -> (x, b/a * y) maps circle to ellipse, scales area by b/a
    # So area = (3*sqrt(3)/4) * a² * (b/a) = (3*sqrt(3)/4) * a * b
    
    area = (3 * math.sqrt(3) / 4) * a * b
    return area