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

Another question on Engineering

question
Engineering, 04.07.2019 18:10
The thermal expansion or contraction of a given metal is a function of the f a)-density b)-initial temperature c)- temperature difference d)- linear coefficient of thermal expansion e)- final temperature f)- original length
Answers: 2
question
Engineering, 04.07.2019 18:10
You are making beer. the first step is filling the glass carboy with the liquid wort. the internal diameter of the carboy is 15 in., and you wish to fill it up to a depth of 2 ft. if your wort is drawn from the kettle using a siphon process that flows at 3 gpm, how long will it take to fill?
Answers: 1
question
Engineering, 04.07.2019 18:10
The flow rate of air through a through a pipe is 0.02 m5/s. a pitot static tube is placed in the flow. the radius of the pitot static tube is 1 mm. assuming the flow to be steady and the air to be at 300k, calculate the difference in total and static pressure if the diameter of the pipe is: (a) d 0.1 m d 0.05 m (c) d 0.01 m
Answers: 2
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
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