My solution passes first and last tests, but fails others, could you take a look, please?
No problem, Svyatoslav, I will take a look tomorrow.
Hi, Svyatoslav, I've figured out what the problem was. It appears there is a small error < 1e-10 between our interpolation methods. This error wouldn't matter regularly, but since we are doing gamma correction, that error gets magnified. To fix this, I've changed the problem description to request that all interpolations be rounded to 4 decimal places. This seems to resolve the issue (since there will be no error to be magnified by the gamma correction).
If you round both results from linspace to 4 decimal places, this solution will pass the test suite.
Helped, thank you!
No problem. And congratulations :)
Sum all integers from 1 to 2^n
8990 Solvers
2600 Solvers
Is this triangle right-angled?
3102 Solvers
254 Solvers
99 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!