Problem 43886. Degrees to Radian
80.81% Correct | 19.19% Incorrect
Last Solution submitted on May 19, 2023
Ned Gulley on 20 Dec 2016
Hi Jared. If you're going to make problems that have approximate floating point answers (often the case with conversions), you need to allow for some variation in your test suite. ISEQUAL is not a good test in these cases. Instead, maybe use ABS(answer-correct) < tolerance.
Solution CommentsShow comments
Problem Recent Solvers156
Project Euler: Problem 2, Sum of even Fibonacci
More from this Author7
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!