-
3 Comments
Basil Imoberdorf
on 4 Oct 2022
I had to trick the test suite, i think in the solution "c-exp(1)" is wrong, shouldn't it be pi?
Neha Shaah
on 22 Oct 2022
test suite for exp(1) is incorrect
Matt Tearle
on 24 Oct 2022
I don't understand the comments about exp(1). "e" (exp(1)) is listed as one of the constants in the problem statement. Its value is 2.7183... So an input of 2.5 should return e, as shown in the examples (being closer to 2.5 than sqrt(2) = 1.414...)
Suggested Problems
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
1888 Solvers
-
376 Solvers
-
5482 Solvers
-
797 Solvers
-
100 Solvers
More from this Author10
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!