115-05HW1 - eps = 1 Do eps1 = 1 + eps eps2 = eps1 - 1 If...

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

View Full Document Right Arrow Icon
University of California, Davis Department of Applied Science Fall 2005 David M. Rocke Numerical Methods EAD 115 October 5, 2005 Homework Assignment 1 Due October 12, 2005 1. Determine machine epsilon in both double and single precision for Excel Visual Basic. Here is a program to do this in single precision: Option Explicit Function MachEps() Dim eps As Single, eps1 As Single, eps2 As Single
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: eps = 1 Do eps1 = 1 + eps eps2 = eps1 - 1 If (eps2 <= 0) Then Exit Do End If eps = eps / 2 Loop MachEps = eps End Function Please provide a copy of the double precision code, and the two machine epsilon values for single and double precision. 2. Do the following problems from the text: 4.2, 4.4, 4.64.9....
View Full Document

This note was uploaded on 01/20/2011 for the course ENG EAD 115 taught by Professor Rocke during the Spring '10 term at UC Davis.

Ask a homework question - tutors are online