problem4_4 - %This program attempets to find this realmin...

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

View Full Document Right Arrow Icon
function realmin=macheps %Problem 4.3 %REALMIN Smallest positive normalized floating point number. % x = realmin is the smallest positive normalized double precision floating % point number on this computer.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %This program attempets to find this realmin value. realmin(1)=1; i=2; realmin=zeros(100,1); while(1) realmin(i)=realmin(i-1)/2; i=i+1; if realmin(i-1)<=0 %disp(realmin(i-2)) break end end end...
View Full Document

This note was uploaded on 09/27/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.

Ask a homework question - tutors are online