The correct answer is not really defined for x = 1, that is a one-sided polygon.
The test cases are insufficient.
420 Solvers
Rounding off numbers to n decimals
1050 Solvers
Change the first and last diagonal element of the identity matrix to zero
117 Solvers
445 Solvers
251 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!