Algorithms | Misc | Question 7
Consider the following C function.
For large values of y, the return value of the function f best approximates (GATE CS 2003)
(C) ln(1 + x)
Explanation: The function f() is implementation of Taylor’s Series to calculates e^x
e^x = 1 + x + x^2/2! + x^3/3! + ---
More is the value of y more precise value of e^x will be returned by f()
Quiz of this Question