Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0.
p(x)=1+x+x^2+...+x^n
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers104
Suggested Problems
-
Project Euler: Problem 1, Multiples of 3 and 5
3743 Solvers
-
5268 Solvers
-
Let's get back to school, and create multiplication tables
249 Solvers
-
Determine the length of a string of characters
268 Solvers
-
630 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!