문제 ]
The series expansion of is given by:
Evaluate for given values of by using the above expansion for the first terms.
Input Format
The first line contains an integer , the number of test cases.
lines follow. Each line contains a value of for which you need to output the value of using the above series expansion. These input values have exactly decimal places each.
Output Format
Output lines, each containing the value of , computed by your program.
Constraints
Var, Val in Scala and def and defn in Clojure are blocked keywords. The challenge is to accomplish this without either mutable state or direct declaration of local variables.
Sample Input
4
20.0000
5.0000
0.5000
-0.5000
Sample Output
2423600.1887
143.6895
1.6487
0.6065
제출 ]
Builds a new list by applying a function to all elements of this list.
the element type of the returned list.
the function to apply to each element.
a new list resulting from applying the given function
f
to each element of this list and collecting the results.