Mercurial > octave-nkf
view libcruft/misc/d1mach.f @ 14204:704f7895eef0 stable release-3-6-0 release-3.6.0
Version 3.6.0 released.
* configure.ac (AC_INIT): Version is now 3.6.0.
(OCTAVE_API_VERSION_NUMBER): Now 48.
(OCTAVE_RELEASE_DATE): Now 2012-01-15.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 15 Jan 2012 13:02:42 -0500 |
parents | 32b15d5c3147 |
children |
line wrap: on
line source
double precision function d1mach (i) integer i logical init double precision dmach(5) double precision dlamch external dlamch save init, dmach data init /.false./ if (.not. init) then dmach(1) = dlamch ('u') dmach(2) = dlamch ('o') dmach(3) = dlamch ('e') dmach(4) = dlamch ('p') dmach(5) = log10 (dlamch ('b')) init = .true. endif if (i .lt. 1 .or. i .gt. 5) goto 999 d1mach = dmach(i) return 999 write (*, 1999) i 1999 format (' d1mach - i out of bounds', i10) call xstopx (' ') d1mach = 0 end