Question: Write the java code using Recursion for the following problem in the attachment Task 2 The constant e (Euler's number) is approximated by the following
Task 2 The constant e (Euler's number) is approximated by the following sequence: 1+-+-+ 1! 2! + n! where the number of terms in the sequence is sufficient to generate the required precision in decimal places We say that there is some value epsilon (e) such that, when the change in the approximation from one term to the next is less than said epsilon, we have reached sufficient precision. That is, when the term you're proposing to add is less than epsilon, you don't add it -you're already there. Write a recursive program to computer Euler's Number to an epsilon of 0.0000001 Check your results using an online tool like Wolfram Alpha. You will also need a helper method to compute the factorial of a number -this should also be done recursively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
