ENGR300 Homework 3 on MATLAM Hi,There are 6 questions in the file. Must be solved on the MATLAB program. ENGR 300 Homework 3
Please upload a PDF of your homework including generated plots and any .m files you created.
Q1. The following infinite series can be used to approximate ex :
(a)
Prove that this Maclaurin series expansion is a special case of the Taylor series expansion
with xi = 0 and h = x.
(b)
Use the Taylor series to estimate f(x) = e−x at xi+1 = 1 for xi = 0.25. Employ the zero-,
first-, second-, and third-order versions and compute the εt for each case.
Q2. Use zero- through third-order Taylor series expansions to predict f(3) for
using a base point at x = 1. Compute the true percent relative error for each approximation.
Q3. Use a centered difference approximation of O(h2) to estimate the second derivative of the
function examined in problem 2. Perform the evaluation at x = 2 using step sizes of h = 0.2 and
0.1. Compare your estimates with the true value of the second derivative. Interpret your results
on the basis of the remainder term of the Taylor series expansion.
Q4. Consider the function f(x) = x3 − 2x + 4 on the interval [−2, 2] with h = 0.25. Use the
forward, backward, and centered finite difference approximations for the first and second
derivatives so as to graphically illustrate which approximation is most accurate. Graph all three
first-derivative finite difference approximations along with the theoretical, and do the same for
the second derivative as well.
Q5. Develop a well-structured MATLAB function to compute the Maclaurin series expansion
for the sine function as described below.
Pattern your function after the one for the exponential function below.
function [fx,ea,iter] = IterMeth(x,es,maxit)
% Maclaurin series of exponential function
% [fx,ea,iter] = IterMeth(x,es,maxit) %
input:
% x = value at which series evaluated
% es = stopping criterion (default = 0.0001) %
maxit = maximum iterations (default = 50) %
output:
% fx = estimated value
% ea = approximate relative error (%)
% iter = number of iterations
% defaults: if nargin < 2|isempty(es),es =
0.0001;end if nargin <
3|isempty(maxit),maxit = 50;end
% initialization
iter = 1; sol = 1; ea = 100;
% iterative calculation
while (1) solold = sol;
sol = sol + x ^ iter / factorial(iter); iter =
iter + 1; if sol~ = 0 ea = abs((sol −
solold)/sol)*100;
end
if ea< = es | iter> = maxit,break,end
end fx =
sol;
end
Test your program for θ = π/3 (60°) and θ = 2π + π/3 = 7π/3 (420°). Explain the difference in the
number of iterations required to obtain the correct result with the desired approximate absolute
error (εa).
Q6. Recall that the velocity of the falling parachutist can be computed by:
Use a first-order error analysis to estimate the error of v at t = 6, if g = 9.81 and m = 50 but c =
12.5 ± 1.5.
Purchase answer to see full
attachment
Why should I choose Homework Writings Pro as my essay writing service?
We Follow Instructions and Give Quality Papers
We are strict in following paper instructions. You are welcome to provide directions to your writer, who will follow it as a law in customizing your paper. Quality is guaranteed! Every paper is carefully checked before delivery. Our writers are professionals and always deliver the highest quality work.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Reasonable Prices and Free Unlimited Revisions
Typical student budget? No problem. Affordable rates, generous discounts - the more you order, the more you save. We reward loyalty and welcome new customers. Furthermore, if you think we missed something, please send your order for a free review. You can do this yourself by logging into your personal account or by contacting our support..
Essay Delivered On Time and 100% Money-Back-Guarantee
Your essay will arrive on time, or even before your deadline – even if you request your paper within hours. You won’t be kept waiting, so relax and work on other tasks.We also guatantee a refund in case you decide to cancel your order.
100% Original Essay and Confidentiality
Anti-plagiarism policy. The authenticity of each essay is carefully checked, resulting in truly unique works. Our collaboration is a secret kept safe with us. We only need your email address to send you a unique username and password. We never share personal customer information.
24/7 Customer Support
We recognize that people around the world use our services in different time zones, so we have a support team that is happy to help you use our service. Our writing service has a 24/7 support policy. Contact us and discover all the details that may interest you!
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
Our reputation for excellence in providing professional tailor-made essay writing services to students of different academic levels is the best proof of our reliability and quality of service we offer.
Essays
When using our academic writing services, you can get help with different types of work including college essays, research articles, writing, essay writing, various academic reports, book reports and so on. Whatever your task, homeworkwritingspro.com has experienced specialists qualified enough to handle it professionally.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our professional editor will check your grammar to make sure it is free from errors. You can rest assured that we will do our best to provide you with a piece of dignified academic writing. Homeworkwritingpro experts can manage any assignment in any academic field.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.