Given a polynomial p known to have positive integer coefficients, deduce the values of the coefficients.
For example:
p = @(x) x^2 + 2*x + 15;
c = guess_the_coefficients(p);
outputs
c = [1 2 15]
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers35
Suggested Problems
-
Select every other element of a vector
36278 Solvers
-
10714 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
583 Solvers
-
Matrix with different incremental runs
581 Solvers
-
Sum the elements in either diagonal of a square matrix
221 Solvers
More from this Author56
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Test cases are added to the problem.