Problem 46873. Sum of terms in a series 2 (★★★)
Solution Stats
Problem Comments
-
2 Comments
Rafael S.T. Vieira
on 18 Oct 2020
Please, do not use isqual with floats, instead use abs(x1-x2) < 1e-10 for instance. A number like 0.1 is infinite and periodic in base 2.
goc3
on 27 Oct 2020
The test suite is updated to use a tolerance check.
Solution Comments
Show commentsProblem Recent Solvers32
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
5293 Solvers
-
5710 Solvers
-
Find out sum of prime number till given number
190 Solvers
-
304 Solvers
-
Find the sum of the largest two elements in a vector
100 Solvers
More from this Author52
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!