Question 5 (10 pts) Inverse of the mathematical constant e can be approximated as follows: - (1-7)" Write a script 'appr
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Question 5 (10 pts) Inverse of the mathematical constant e can be approximated as follows: - (1-7)" Write a script 'appr
Question 5 (10 pts) Inverse of the mathematical constant e can be approximated as follows: - (1-7)" Write a script 'approxe' that will loop through values of n until the difference between the approximation and the actual value is less than 0.00000001. The script should then print out the built-in values of e- and the approximation to 4 decimal places and also print the value of n required for such accuracy as follows: >> approxe The built-in value of inverse of e = 0.3678794 The Approximate value of 0.3678794 was reached in XXXXXXX loops [Note: The Xs are the numbers in your answer]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!