Please fix the test suite.
The arguments need to be supplied to the function, as in:
assert(isequal(your_fcn_name(b, n),y_correct))
Test suite has been fixed. Thanks for the comments!!
There is still a problem with the test suite. The quantity ff is not defined in test suite problems 2 and 3.
The test suite has been fixed and improved.
Also, note that the input n (polynomial order) refers to the highest-powered term in the series, NOT the number of series terms.
Project Euler: Problem 1, Multiples of 3 and 5
1492 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
1018 Solvers
579 Solvers
123 Solvers
Square wave average calculation
94 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!