smallest square enclosing a triangle

Topic:
Square
Method for creating the smallest square enclosing a triangle You can analyze the procedure: 1) sort the side lengths 2) if the third vertex is in the square with the greatest side as diagonal then this is the required square 3) otherwise you must solve a trigonometric equation