eolymp
bolt
Try our new interface for solving problems
Problems

Function - 1

Function - 1

Implement the function $f(x) = x^3 + 2 \cdot x^2 - 3$. \InputFile Each line contains one real number $x$. \OutputFile For each value of $x$, print the value of the function $f(x)$ on a separate line with four decimal places.
Time limit 1 second
Memory limit 128 MiB
Input example #1
2.234
1
56
23.2
Output example #1
18.1309
0.0000
181885.0000
13560.6480
Author Mykhailo Medvediev
Source Programming language C