Homework 5

# Homework 5 - Excel results 0.02 1.89835 1.907473 1.907617...

This preview shows page 1. Sign up to view the full content.

Imran Mandani Homework 5 1. ? = 2 sin( ? ) + 0.02 is the formulation to choose. If the other one were chosen, then the solution diverges. Also the second one has no sign changes and two variables of the same degree. This would cause problems. ? = 2 sin(0) + .02 = .02 ? = 2 sin(. 02) + .02 = .059 ? = 2 sin(. 059) + .02 = .139 Eventually, this converges to 1.9076 2. Function ss(xguess, x) x = xguess Do x = 2 sin(xguess) + 0.02 abserr = Abs(x) Loop While abserr > 0.00000001 xguess = x End Function
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Excel results 0.02 1.89835 1.907473 1.907617 0.059997 1.913665 1.907716 1.907621 0.139923 1.903588 1.907555 1.907618 0.298933 1.910268 1.907661 1.90762 0.609002 1.905862 1.907591 1.907619 1.164098 1.908778 1.907637 1.907619 1.856864 1.906852 1.907607 1.907619 1.938722 1.908126 1.907627 1.907619 1.886151 1.907284 1.907614 1.907619 1.921373 1.90784 1.907623 1.907619 3. Newton-Raphson? Couldn’t figure it out. 4. Newton-Raphson? Couldn’t figure it out....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online