Examine exponential function:
The algorithm for the main script program is shown below:
- Call a function eoption to show the menu and return the user's choice.
- Loop until the user selects to exit the program. If the user has not selected to exit, the action of the loop, based on the user's preference, either is to:
- Call the function explaine to print a description of e
- Call the function limite which will prompt the user for n and compute an approximate value for e
- Prompt the user for x and call the function expfn which will print both an approximate value for ex and the value of the built-in exp(x). (Note: Any value for x is satisfactory; therefore the program does not require to error-check this value.)
- Call the function eoption to show the menu and return the user's choice again.