OPTION 2: In this option,
choose any two languages for the following problem.
Evaluate a given polynomial at a given value of x,
using Horner's method. You may assume that the user
inputs the polynomial by adding an assignment statement (or binding construct)
to your program that binds a list of real numbers to a variable.
The value of x is also input by assignment or binding.
Horner's method for polynomial evaluation, where the
polynomial is assumed to have real coefficients works as follows.
To evaluate the polynomial
n n-1
a x + a x + ... + a x + a
n n-1 1 0
perform the operations given by
(... ((a x + a )x + ... + a )x + a
n n-1 1 0
That is, start with an, multiply it by x, add an-1, multiply it by x,
etc., until you finally add a0.