Problem 1794. 02 - Vector Variables 4
45.56% Correct | 54.44% Incorrect
Last Solution submitted on Mar 20, 2023
Gergely Patay on 9 Jan 2015
why, oh, why is the test suite exactly the same as the expected solution?
Jeremy Perez on 16 Sep 2020
Isn't 10.^(0:0.01:1) more precise?
Matthew Eicholtz on 7 Nov 2013
This approach should work as well, but the results are not exactly equal (<1e-14 error). I suggest adding a tolerance to the test suite.
Evan on 13 Aug 2013
Perhaps, in the test-suite, you could account for small imprecisions? This would allow for answers that don't use the logspace command.
Andrew Newell on 6 Dec 2014
I agree; not accounting for imprecision is bad numerical practice.
Problem Recent Solvers503
The Goldbach Conjecture, Part 2
Create a vector whose elements depend on the previous element
More from this Author26
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!