Polynomial Evaluation - MATLAB Cody - MATLAB Central

Problem 42692. Polynomial Evaluation

Difficulty:Rate
Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of x to compute its value at, and return the value of the polynomial at that value using Horner's Rule.
For example: A fast scheme for evaluating a polynomial such as:
when
is to arrange the computation as follows:
N.B. Problem has been taken from Rosetta Code
Use of polyval and regexp is prohibited

Solution Stats

56.91% Correct | 43.09% Incorrect
Last Solution submitted on Nov 30, 2024

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...
🚀 MATLAB EXPO 2025 – Day 2 Starts Tomorrow, November 13!
Don’t miss out on two incredible keynotes that will shape the future...
0

Problem Recent Solvers59

Suggested Problems

Community Treasure Hunt

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

Start Hunting!