Lecture3

# Lecture3 - Lecture 3 Manipulating Arrays Cinna(see-na Wu...

This preview shows pages 1–4. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Lecture 3: Manipulating Arrays Cinna (see-na) Wu [email protected] Modified from slides by Ryan Hynd Department of Mathematics University of California, Berkeley Math 98 Introduction to MATLAB programming Arrays are important! Three fundamental contexts in which arrays arise... Saving a sequence of values of a runtime variable for subsequent retrieval and analysis Representing mathematical functions (scalar and vector-valued) Matrix algebra ...respective examples Using Newton’s method to compute √ 5 Numerical solution of ODE/PDE Solving linear systems, finding eigenvalues, etc. Computing √ 5 with Newton’s method Last time We approximated the √ 5 by computing the n th iterate of the Newton’s method: x n +1 = x n 2 + 5 2 x n ,x given. However we didn’t save the iterates as we calculated. (SEE http://math.berkeley.edu/ ryanhynd/NewtonAlg2.m) This time We want to save the iterates x 1 ,x 2 ,...,x n so we can analyze | x 1- x | , | x 2- x 1 | ,..., | x n- x n- 1 | and | x 2 1- 5 | , | x 2 2- 5 |...
View Full Document

## This note was uploaded on 01/21/2012 for the course MATH 98 taught by Professor Instuctor during the Spring '08 term at Berkeley.

### Page1 / 11

Lecture3 - Lecture 3 Manipulating Arrays Cinna(see-na Wu...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online