Program to examine exponential function, MATLAB in Engineering

Write a program to examine exponential function:

We will write a program to examine the value of e and the exponential function. It will be a menu-driven. The menu options will be:

 Print a description of e.

 Prompt the user for a value of n, and then find an estimated value for e by using the expression (1 + 1/n) n

 Prompt the user for value for x. Now print the value of exp(x) by using the built-in function. Find an approximate value for ex by using the Maclaurin series just given.

 Exit the program.


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

Related Discussions:- Program to examine exponential function, Assignment Help, Ask Question on Program to examine exponential function, Get Answer, Expert's Help, Program to examine exponential function Discussions

Write discussion on Program to examine exponential function
Your posts are moderated
Related Questions
Gauss, Gauss-Jordan elimination: For 2 × 2 systems of equations, there are well-defined, easy solution techniques. Though, for the larger systems of equations, finding solutio

Patch function - graphics objects: The patch function is used to generate a patch graphics object, which is made from 2-dimensional polygons. The patch is defined by its verti

Forward elimination: In forward elimination, we want to obtain a 0 in the a 21 position. To accomplish this, we can alter the second line in the matrix by subtracting from it

Example of Gauss-jordan: For a 2×2 system, this would results and for a 3 × 3 system, Note that the resulting diagonal form does not involve the right-most col

Symbolic Variables and expressions: The MATLAB has a type known as sym for the symbolic variables and expressions; these work with strings. The illustration, to generate a sym

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

Example of file ploting data: As the other example, a data file called 'compsales.dat' stores the sales figures (in millions) for divisions in a company. Each line in the f

Vectors of Structures: In numerous applications, involving database applications, information generally would be stored in the vector of structures, instead of in individual s

analyzing traffic; determine motion of flow; calculate tracklets; detect abnormalities;

Illustration sorting vectors of structures: This function sorts the structures depend only on the price field. A more common function is shown next, that receives a string whi