-->
当前位置:首页 > 题库

PROGRAMMING:Calculating the value of a polynomial

Luz5年前 (2021-05-10)题库475
###Task description
For the polynomial f (x) = ax ^ 3 + BX ^ 2 + CX + D $$and given a, B, C, D, x, calculate the value of F (x).
###Input format:
Input only one line, including five real numbers, namely x, and the values of parameters a, B, C, D. each number is a double precision floating-point number with absolute value not exceeding 100. Numbers are separated by a space.
###Output format:
Output a real number, that is, the value of F (x), to 7 decimal places.
###Input example:
```in
2.31 1.2 2 2 3
```
###Output example:
```out
thirty-three point zero eight three eight six nine two
```
###Tips
###Title Source
This topic is selected from openjudge website http://noi.openjudge.cn/ch0103/07/ .







answer:If there is no answer, please comment