Guess the Coefficients! - MATLAB Cody - MATLAB Central

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

21.99% Correct | 78.01% Incorrect
Last Solution submitted on Sep 02, 2023

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
3
5

Problem Recent Solvers34

Suggested Problems

More from this Author56

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page