Experimental analysis. Run experiments to determine the relative costs of Math. exp() and the methods from Exercise 1.3.38 for computing e x : the direct method with nested for loops, the improvement with a single for loop, and the latter with the loop-continuation condition (term > 0). Use trial-and-error with a command-line argument to determine how many times your computer can perform each computation in 10 seconds.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here