Mercurial > octave
view liboctave/cruft/misc/r1mach.f @ 18565:c08776badd3d stable
* r1mach.f: Fix cut and paste errors (bug #32120).
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 17 Mar 2014 18:35:54 -0400 |
parents | 648dabbb4c6b |
children |
line wrap: on
line source
real function r1mach (i) integer i logical init real rmach(5) real slamch external slamch save init, rmach data init /.false./ if (.not. init) then rmach(1) = slamch ('u') rmach(2) = slamch ('o') rmach(3) = slamch ('e') rmach(4) = slamch ('p') rmach(5) = log10 (slamch ('b')) init = .true. endif if (i .lt. 1 .or. i .gt. 5) goto 999 r1mach = rmach(i) return 999 write (*, 1999) i 1999 format (' r1mach - i out of bounds', i10) call xstopx (' ') r1mach = 0 end