Problem 1068. Guess the Coefficients!
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
Dyuman Joshi
on 7 Jan 2023
Test cases are added to the problem.
Solution Comments
Show commentsProblem Recent Solvers35
Suggested Problems
-
Find relatively common elements in matrix rows
2149 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
877 Solvers
-
Detect a number and replace with two NaN's
199 Solvers
-
438 Solvers
-
Is this triangle right-angled?
6500 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!