You want to use your computer to easily compute a polynomial with the following form:
y=ax6+bx2+c. We give you the coefficients (stored in a
, b
and c
)
and the variable x
and ask you to put the value of the polynomial at abscissa x inside a variable named y
.
Note: there is a way to make this shortly in only one line of code.