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
Creating a cell array: The other method of creating a cell array is easy to assign values to particular array elements and build it up element by element. Though, as explained

Use of While loop: Here is an illustration of calling the function, passing 5000 for the value of the input argument high. >> factgthigh(5000) ans = 5040 The itera

Execute a exponential function program: Running the script will take up the menu as shown in the figure: Then, what happens will totally depend on which button(s) the

Algorithm for appex subfunction: The algorithm for appex subfunction is as shown:  Receives x & n as the input arguments.  Initializes a variable for running sum of t

Sort algorithm for Sorting vectors of structures: Note that only the price field is compared in the sort algorithm, but the whole structure is replaced. That is therefore each

Illustration of Sound files: For illustration, the following script generates a subplot which shows the signals from chirp and from train, which is as shown in figure:

Example to change the line width from the default: For illustration, to change the line width from the default of 0.5 to 1.5: >> set(hl,'LineWidth',1.5) As long as the

Replacing a string - function strrep: The function strrep finds all the occurrences of a substring within the string, and substitutes them with a new substring. The order of a

Preallocating a Vector: There are necessarily two programming techniques that can be used to simulate the cumsum function. One technique is to begin with an empty vector and c

Illustration of Set operations: For illustration, given the vectors as shown below: >> v1 = 2:6 v1 = 2  3  4  5  6 >> v2 = 1:2:7 v2 = 1  3  5  7