Examine exponential function - algorithm, MATLAB in Engineering

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.


Posted Date: 10/19/2012 8:29:11 AM | Location : United States

Related Discussions:- Examine exponential function - algorithm, Assignment Help, Ask Question on Examine exponential function - algorithm, Get Answer, Expert's Help, Examine exponential function - algorithm Discussions

Write discussion on Examine exponential function - algorithm
Your posts are moderated
Related Questions
num2str function: The num2str function, that converts real numbers, can be called in many ways. If only the real number is passed to the num2str function, it will generate a s

Graphics Properties: The MATLAB uses the Handle Graphics in all its figures. All figures consist of various objects, each of which is assigned a handle. The object handle is a

Function used in binary search: The function below implements this binary search algorithm. It receives two arguments: the sorted vector and a key (on the other hand, the func

IS Functions in Matlab: There are many functions which are built into MATLAB which test whether or not something is true; these function names start with the word is. As these

str2num function - String: The function str2num does the opposite; it takes the string in which a number is stored and converts it to the type double: >> num = str2num('123.

Sorting Vectors of structures: Whenever working with vector of structures, it is very common to sort based on a particular field within the structures. For illustration, recal

Illustration of Image processing: This displays that there are 64 rows, or in another word, 64 colors, in this specific colormap. It also displays that the first five colors a

Example of Exponential function modular program: In order to view the distinction in the approximate value for e as n increases, the user kept choosing Limit & entering larger

Function issorted - set operations: The function issorted will return 1 for logical true when the argument is sorted in ascending order (minimum to maximum), or 0 for false wh

Subfunctions: Though, it is possible to have more than one function in a given M-file. For illustration, if one function calls the other, the first function would be the prima