Write a program that reads a number and a polynomial , and computes .
Input consists of a real number followed by the description of the polynomial : the real coefficients , , …, in this order. (The first sample input/output corresponds to the evaluation of at .)
Print with 4 digits after the decimal point.
The expected solution uses Horner’s rule.
Author: Unknown
Translator: Salvador Roura
Generation: 2026-01-25T11:43:41.625Z
© Jutge.org, 2006–2026.
https://jutge.org