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:
Use of polyval and regexp is prohibited
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers68
Suggested Problems
-
1182 Solvers
-
Find the maximum number of decimal places in a set of numbers
3389 Solvers
-
Calculate distance travelled when given radius and rotations
242 Solvers
-
Sum the 'edge' values of a matrix
402 Solvers
-
Matlab Basics - Absolute Value
671 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
seems like a really fun and challenging problem!
Maybe the author should prohibit the use of polyval, str2num and regexp for this problem.
Challenging Problem