COMPUTER SCIENCE 340 ASSIGNMENT #2
DUE MONDAY MAY 28, 2007 (in class) Use MATLAB to solve question 1 below. The Windows version of MATLAB 7.0.4 is installed, for example, on the machines in ECS 250, 258 and 266. To access the Windows version in these labs
CSc 340 Formula Sheet Taylors Theorem f ( x) = f (c) + ( x c) f (c) + + ( x c) 2 ( x c) 3 ( x c) n ( n ) f (c) + f (c) + L + f (c ) 2! 3! n!
( x c) n +1 ( n +1) f ( ) (n + 1)!
The following functions are expanded about c = 0 : x2 x3 x4 x5 ex = 1+ x + + +
CSc 340 Formula Sheet Taylors Theorem f ( x) = f (c) + ( x c) f (c) + + ( x c) 2 ( x c) 3 ( x c) n ( n ) f (c) + f (c) + L + f (c ) 2! 3! n!
( x c) n +1 ( n +1) f ( ) (n + 1)!
The following functions are expanded about c = 0 : x2 x3 x4 x5 ex = 1+ x + + +
COMPUTER SCIENCE 340
NOTES ON THE FINAL EXAM
AUGUST 2007
Students are allowed to use the CSc 340 Formula Sheet (a sample is posted on the course
web site). No other notes or books are allowed.
Students are allowed to use a Sharp EL-510R calculator. Please
SAMPLE CSc 340 EXAM QUESTIONS WITH SOLUTIONS: part 1
1.
For what values of the real variable x are the following expressions subject to
subtractive cancellation?
How should these functions be evaluated in order to avoid the subtractive
cancellation?
1 e x