Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 404 pages
Exam (elaborations)

Solutions Manual for Numerical and Analytical Methods with MATLAB 1st Edition by Bober

Document preview thumbnail
Preview 4 out of 404 pages

Solutions Manual for Numerical and Analytical Methods with MATLAB 1st Edition by Bober Solutions Manual for Numerical and Analytical Methods with MATLAB 1st Edition by Bober Solutions Manual for Numerical and Analytical Methods with MATLAB 1st Edition by Bober Solutions Manual for Numerical and Analytical Methods with MATLAB 1st Edition by Bober Solutions Manual for Numerical and Analytical Methods with MATLAB 1st Edition by Bober

Content preview

Chapters 2 – 14 Covered
ks ks ks ks




SOLUTIONS

, SOLUTION MANUAL ks




NUMERICALANDANALYTICALMETHODS WITH
ks ks ks ks




MATLAB

Table of Contents
ks ks




Page

Chapter 2
ks 1

Chapter 3
ks 46

Chapter 4
ks 58

Chapter 5
ks 98

Chapter 6
ks 107

Chapter 7
ks 176

Chapter 8
ks 180

Chapter 9
ks 188

Chapter 10
ks 214

Chapter 11
ks 271

Chapter 12
ks 303

Chapter 13
ks 309

Chapter 14
ks 339




@
@SSeeisismm
ici icsisoolalati toi on n

, CHAPTER 2 ks




P2.1. Taylor series expansion of
ks ks ks ks k s f (x) about x = 0 is:
ks ks k s ks ks ks ks




f 1V 4
f (x) = f (0) + f '(0) x+ f' '(0) x2 + f' ''(0) x3 + x +... ks ks ks ks ks ks ks ks


ks ks ks k s ks ks k s ks ks ks ks k s ks ks ks



2! 3! 4! ks ks




For f ( x) =cos(x) , ks ks ks ks ks ks ks f (0) = 1,
ks ks ks




f ( x) = − sin(x),
ks ks ks ks ks ks k s f '(0) =0,
ks ks ks ks




f ''( x) = −cos(x),
ks ks ks ks ks k s ks k s f ''(0)=−1,
ks ks ks ks ks ks




f '''(x) = +sin(x),
ks ks ks ks ks ks k s ks ks k s f '''(0) =0,
ks ks ks ks ks ks




f1V(x) = + cos(x),
ks ks ks ks ks ks ks k s f1V(0) =1
ks ks ks ks




We can see that ks ks ks




x2 x4 x6 8
cos( x) =1− − +x
k s ks




6! 8! − + − +...
ks ks ks k s k s




4! ks ks ks




+
k s

ks




2!

and that ks




x2
term (k) = −term (k −1) 
ks




2k(2 k −1)
ks ks ks ks ks ks ks ks



ks ks ks ks




The following program evaluates cos(x) by both an arithmetic statement and by t he above
ks ks ks k s ks ks ks ks ks ks ks ks ks ks




series for -π ≤ x ≤ π in step of 0.1  .
ks ks ks ks ks ks ks ks ks ks ks ks ks




% cosf.m
ks




% This program evaluates cos(x) by both arithmetic statement and by
ks ks ks ks ks ks ks ks ks ks




% series for
ks ks ks -π ≤ x ≤ π ks ks ks ks k s in steps of 0.1 ks ks ks ks π

clear; clc; ks




xi=-pi;dx=0.1*pi; s
k




ks for j=1:21ks




x(j)=xi+(j-1)*dx;

cos_arith(j)= cos(x(j)); ks




@
@ 1i ci icsiso olalati toionn
SSeeisismm

, sum=1.0;term=1.0; s
k




ks for k=1:50
ks




den=2*k*(2*k-1);

term=-term*x(j)^2/den;

ks sum=sum+term;

ks test=abs(sum*1.0e-6);

ks if abs(term) <= test;
ks ks ks




break;

end

end

ks cos_ser(j)=sum;

ks nterms(j)=k;

end

ks fo=fopen('output.dat','w');

fprintf(fo,'x cos(x) cos (x) ks terms in ks k s \n');

ks fprintf(fo,' by arith stm
ks ks by series
ks the series
ks k s \n');

ks fprintf(fo,'===================================================== \n');

for j=1:21
ks




fprintf(fo,'%10.5f %10.5f %10.5f %3i\n',...
s
k




ks x(j),cos_arith(j),cos_ser(j),nterms(j));

fprintf(fo,' \n');

end

ks fclose(fo);

plot(x,cos_arith),xlabel('x'),ylabel('cos(x)'),

ks title('cos(x) vs. x'),grid; ks ks




@
@ 2i ci icsiso olalati toionn
SSeeisismm

Connected book
 image
William Bober, Chi-Tay Tsai, Oren Masory Numerical and Analytical Methods with MATLAB
Edition: 2009 ISBN: 9781420093568 Edition: Unknown

Document information

Uploaded on
October 18, 2025
Number of pages
404
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$21.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
1
Followers
0
Items
877
Last sold
4 months ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions