개발자 뺚
[Cody] Problem 2017. Side of an equilateral triangle 본문
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
'Solution > MATLAB' 카테고리의 다른 글
[Cody] Problem 2166. Concatenate a successive power matrix in a column matrix (0) | 2023.11.21 |
---|---|
[Cody] Problem 55220. Matrix Quadrants (0) | 2023.11.18 |
[Cody] Problem 790. Cody Computer Part 5 - Guess the Name of Cody Computer (0) | 2023.10.13 |
[Cody] Problem 44946. Solve a System of Linear Equations (0) | 2023.08.23 |
[Cody]Problem 44947. Find the Oldest Person in a Room (0) | 2023.08.23 |