Mar-17-2019, 12:23 AM
I am new at Python and I found that the best way to learn is to practice. So I decided to write a program that involves generating a polynomial equation from inputting the degree of the polynomial and the corresponding coefficients. For example:
degree = 4
coefficients = 3, 8, 6, 9, and 2
These values should afford the following polynomial equation:
y = 2x^4 + 9x^3 + 6x^2 + 8x^1 + 3x^0
At first, this seemed like an easy task, but I came to a dead end. Any ideas?
degree = 4
coefficients = 3, 8, 6, 9, and 2
These values should afford the following polynomial equation:
y = 2x^4 + 9x^3 + 6x^2 + 8x^1 + 3x^0
At first, this seemed like an easy task, but I came to a dead end. Any ideas?