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
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

Example of Menu driven modular program: As an illustration of such a menu-driven program, we will write a program to discover the constant e. The constant e, known as the n

Sound Files: The sound signal is an illustration of a continuous signal which is sampled to result in a discrete signal. In this situation, sound waves traveling through the a

Simplification Functions: There are numerous functions which work with expressions, and simplify the terms. Not all the expressions can be simplified, but the simplify functio

Plotting File data: It is frequently essential to read data from a file and plot it. Generally, this entails knowing the format of the file. For illustration, let us suppose t

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

Gauss Elimination: The Gauss elimination technique consists of:    Generating the augmented matrix [A b]    Applying EROs to augmented matrix to obtain an upper trian

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

calcrectarea subfunction: function call: area = calcrectarea(len,wid); function header: function area = calcrectarea(len, wid)   In the function call, the two arg

Application: Menu driven Modular Program Numerous longer, more involved programs which have interaction with the user are menu-driven, that means that the program prints a men