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
Reduced Row Echelon Form: The Gauss Jordan technique results in a diagonal form; for illustration, for a 3 × 3 system: The Reduced Row Echelon Forms take this one step

Initializing the data structure - Function: Function is shown as:   >> printcylvols(cyls) Cylinder x has a volume of 169.6 Cylinder a has a volume of 100.5

deblank function: The deblank function eliminates only trailing blanks from the string, not leading the blanks. The strtrim function will eliminate both the leading and traili

Binary Search: The binary search supposes that the vector has been sorted first. The algorithm is just similar to the way it works whenever looking for a name in a phone direc

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

Illustration of finding a sting: Let's enlarge this, and write a script which creates a vector of strings which are phrases. The outcome is not suppressed so that the string

Illustration of gauss-jordan elimination: An illustration of interchanging rows would be r1 ¬→ r3, that would results: Now, beginning with this matrix, an illustration of sc

Removing Whitespace Characters: The MATLAB has functions which will eliminate trailing blanks from the end of a string and/or leading blanks from the starting of a string.

Converting between the String and Number types: The MATLAB has many functions which convert numbers to strings in which each character element is a separate digit, and vice ve