Math 340 Spring 99
Homework Assignments
Homework 02: due Monday, 09/13/99
1.5.4, 1.5.6, 1.5.7
Homework 03: due Monday, 09/20/99
#1: 1.5.9,
#2: 1.5.12
#3: Supplementary Exercise: RMS problem
#4: Write a program that, for input a, b, c, solves the quadratic
equation
a*x^2+b*x+c
= 0
Your program must have 3 nested levels of "if ... fi" statements:
1st level: check if a=0 or a<>0
2nd level: for a=0, check if b=0 or b<>0; for
a<>0, check the discriminant
3rd level: if there are two solutions, use subtraction
free quadratic formula
Homework 04: due Monday, 09/27/99
#1 (mandatory) 2.4.2: Programming the bisection
method.
#2 (optional, extra credit) Supplementary Exercises
1, Primitive Pythagorean triples
Homework 05: due Monday, 10/04/99
#1 2.4.5
#2 2.4.8
Homework 06: due Monday, 10/11/99
3.4.2, 3.5.5
Homework 07: due Wed. 10/20/99
3.4.1, 3.5.7
Homework 08: due Mon. 10/25/99
Find all "square-free numbers" up to n by sieving out multiples
of
2^2, 3^2, 4^2, ...
(For example, 3^2=9 and 27 mod 9 =0, therefore 27 is not a square-free
and must be taken out.)
Homework 09: due Mon. 11/01/99
Part I: 4.5.1, 4.5.2 write programs
and run them
PartII: pencil work: write the checking/counting
statements for 4.5.4, 4.5.5, 4.5.6
Homework 10: due Mon. 11/08/99
4.5.11, 5.4.6, 5.4.7
Homework 11: due Mon. 11/15/99
Problem 1: Project in Section 5.1.3 (do not use leastsqrs)
Problem 2: (Optional, extra credit) 5.4.3
Problem 3: 6.6.1
Problem 4: 6.6.2
Homework 12: due Mon. 11/22/99
Problem 1: project 6.2.4. DO NOT write a new program, use RKmxm instead
Problem 2: Using Runge-Kutta program RMmxm to solve the following IVP-ODE
x1' = x2
x2' = -x1 -2*exp(t)
x3' = -x1-exp(t)+1
t in [0,2]
x1(0) = 1
x2(0) = 0
x3(0) = -1
Plot the three functions in the same graph.
Homework 13: due Mon. 11/29/99
6.6.4, 6.6.5
Homework 14: due Mon. 12/06/99
#1: Project 2 in 6.4.2
#2: Set up the IVP of 3x3 ODE system for 6.6.3 (pencil
work).
Solving the problem is optional.