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
Expanding a function: The expand function will multiply out terms, and factor will do the opposite: >> expand((x+2)*(x-1)) ans = x^2 x-2 >> factor(ans)

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

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:

Finding products by for loop: an illustration, when 5 is passed to be the value of the input argument n, the function will compute and return 1 + 2 + 3 + 4 + 5, or 15: >> s

Vector operations: As vectors are special cases of matrices, the matrix operations elaborated (addition, subtraction, multiplication, scalar multiplication, transpose) work on

Matrix definitions: As we know the matrix can be thought of as a table of values in which there are both rows and columns. The most common form of a matrix A (that is sometime

Finding a sting - function findstr: The function findstr receives two strings as input arguments. It finds all the occurrences of shorter string contained by the longer, and r

I have a frequency response data. How do I convert that to state space? I am given a 6 row and 3 column data (steady state). How do i convert that to state space model?

Illustration of Gauss elimination: For illustration, for a 2 × 2 system, an augmented matrix be: Then, the EROs is applied to obtain the augmented matrix into an upper

Scaling:   change a row by multiplying it by a non-zero scalar sri →  ri For illustration, for the matrix: