CS510 Homework 1 - Solutions
October 5, 2010
Note: Problems graded are I,II,III,VI,VII I. f (x) = x1/2 ,
f (x) = 1 x1/2 2 , f = 1 x3/2 4 ,
3 f (x) = 8 x5/2
(i) P (x) = f (4) + f (4)(x 4) + f (4)(x 4)2
CS 510 Homework - due 10/12/10
I. Using Gaussian elimination with partial pivoting, obtain a P A = LU decomposition of 1 1 2 A = 2 2 1 1 0 2 and use it to solve 1 5. Ax = 4
[You can check your results
Brief review of linear algebra, plus some additional facts x1 . x= . . xn xi real .
1. Rn
2. A linear combination of vectors x1 , xk in Rn is a vector of the form x = c1 x1 + + ck xk where c1 , ., ck
import java.util.*;
public class test cfw_
public static void main(String[] args) cfw_
maze x = new maze(101);
for (int i = 0; i < 101; i+) cfw_
for (int j = 0; j < 101; j+) cfw_
/System.out.println(j
public class cord cfw_
int x;
int y;
public cord(int x,int y)cfw_
this.x=x;
this.y=y;
public void setCoordinates(int x, int y)
cfw_
this.x=x;
this.y=y;
public int getx()cfw_
return this.x;
public i
import java.util.*;
public class test2 cfw_
public static void main(String[] args) cfw_
maze x = new maze(101);
for (int i = 0; i < 101; i+) cfw_
for (int j = 0; j < 101; j+) cfw_
/System.out.println(
Allison Nelson
[email protected]
(336) 225-6839
http:/themusegarden.wordpress.com
Education
B.S. Computer Science, Magna Cum Laude
Appalachian State University, Boone, NC
University and Department
CS 510 Computer Problem: Computation of the roots of a polynomial due 10/5/10
Your objective is to compute the roots (real and complex) of the polynomial p(x) = 18x6 30x5 + 5x4 23x3 + 26x2 9x + 1 to w
CS 510 Homework - due 9/28/10 I. (i) Find the Taylor polynomial which matches f (x) = x and its rst two derivatives at x = 4. (ii) Suppose the polynomial in (i) is used to approximate 5. What is the r
import java.util.*;
public class maze cfw_
private int len;
private int sx;
private int sy;
private int tx;
private int ty;
private int size;
private int counter = 0;
private LinkedList<cord> visitsta