Solution/MATLAB
[Cody] Problem 2017. Side of an equilateral triangle
뺚
2023. 11. 19. 15:00
If an equilateral triangle has area A, then what is the length of each of its sides, x?

Image courtesy of Wikipedia.
function x = side_length(A)
x = sqrt(2 * A / sin(pi / 3))
end