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
True color matrice: The true color matrices are the other way to represent images. The true color matrices are 3-dimensional matrices. The first two coordinates are the coordi

Algorithm for the function e: The algorithm for the function eoption is as shown: Use the menu function to show the 4 choices. Error-check (an error would take place

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

Referring to and Showing Cell Array Elements and Attributes: Just as with the other vectors, we can refer to individual elements of the cell arrays. The only difference is tha

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:

Changing Case: The MATLAB has two functions which convert strings to all uppercase letters, or all lowercase, known as the upper and lower. >> mystring = 'AbCDEfgh';

Finding a sting - function strfind: The function strfind does necessarily similar thing, except that the order of the arguments does make dissimilarity. The common form is str

Basic mathematical operations: All the basic mathematical operations can be executed on symbolic expressions and variables (example, add, raise to a power, multiply, subtract,

ischar function: The ischar function return the logical true if an array is a character array, or logical false if not. >> vec = 'EK127'; >> ischar(vec) ans =

Algorithm for subfunction: The algorithm for subfunction askforn is as shown:  Prompt the user for the positive integer n.  Loop to print an error message and reprom