e-olymp
Competitions

Quick Start C: Loops, Arrays, Functions

Function - 2

Implement a function f(x) = sqrt(x) + 2 * x + sin(x), where sqrt is a square root function.

Input

Each line contains one real number x.

Output

For each value x print in a separate line the value of the function f(x) with four digits after the decimal point.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2.234
10.23
56.1
23.2651
Output example #1
6.7507
22.9375
119.2562
50.3973
Author Mykhailo Medvediev
Source Programming language C