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 Cell arrays: There are many ways to create cell arrays. For illustration, we will create a cell array in which one element will store an integer, one element store ch

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

Creating the structure Variables: Creating a structure variable can be accomplished by simply storing the values in fields by using assignment statements, or by using the stru

Calling of Function polyval: The curve does not appear very smooth on this plot, but that is as there are only five points in the x vector. To estimate the temperature

Use of built-in colormaps: MATLAB has built-in colormaps, it is also possible to generate others by using combinations of any colors. For illustration, the following generates

Data structures: The Data structures are variables which store more than one value. In order to made sense to store more than one value in a variable, the values must in some

Program to Counting in a while loop: The script initializes variable counter to 0. Then, in the while loop action, each and every time the user successfully enter a number, th

readlenwid function: function call: [length, width] = readlenwid; function header: function [l,w] = readlenwid In the function call, not any argument is passed; henc

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

Passing arguments to functions: In all these functions examples faraway, at least one of the arguments was passed in the function call to be the value(s) of the equivalent inp