This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Anand Venugopal
on 11 Jan 2022
The tolerance in assert is very high. Its not worthwhile to tune the decimal places to get that tolerance.
Reconsider the problem and reduce the tolerance.
Dyuman Joshi
on 11 Jan 2022
This is the standard tolerance used in Cody. You'll encounter that frequently with many problems involving floating point numbers. There is nothing unsolvable/hard specifically about it.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!