
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Spring 2008 David M. Rocke
April 3, 2008
Homework Assignment 1 Due April 10, 2008
Option Explicit Function MachEps() Dim eps As Single, eps1 As Single, eps2 As Single 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.