subject
Engineering, 10.11.2020 22:10 briana21092005

The Taylor series expansion for a^x is: a^x = sum n = 0 to infinity [(ln(a))^n]*x^n/n! Write a MATLAB program that determines a^x using the Taylor series expansion. The program asks the user to type a value for x. Use a loop for adding the terms of the Taylor series. If Cn is the nth term in the series, then the sum Sn of the n terms is Sn = S(n-1) + Cn. In each pass calculate the estimated error E given by E = abs((Sn-S(n-1))/(S(n-1))). Stop adding terms when E < .000001. The program displays the value of a^x. Use the program to calculate: (a) 2^(3.5) (b) 6.3^(1.7) Compare the values with those obtained by using a calculator.

ansver
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, genyjoannerubiera
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
image
Engineering, 04.07.2019 18:20, kendrawalraven
The characteristic roots of a dynamic system are: 1.7920 1.8160 i, -1.7920 1.8160 i, -0.4160 what is the order of this system? what are the settling time and damping ratio of the system?
Answers: 3
image
Engineering, 06.07.2019 03:10, serenad2
Different between boring and turning?
Answers: 1
image
Engineering, 06.07.2019 03:20, mpete1234567890
Asimply supported beam abc of length l has ab of length hl and second moment of area / and bc of length hl and second moment of area i2. determine the strain energy stored in the beam when it is subject to a vertical load f at its midpoint and the consequential central deflection.
Answers: 2
You know the right answer?
The Taylor series expansion for a^x is: a^x = sum n = 0 to infinity [(ln(a))^n]*x^n/n! Write a MATLA...

Questions in other subjects: