NEURON
dmacheps.c
Go to the documentation of this file.
1
#include <../../nrnconf.h>
2
3
/**************************************************************************
4
**
5
** Copyright (C) 1993 David E. Steward & Zbigniew Leyk, all rights reserved.
6
**
7
** Meschach Library
8
**
9
** This Meschach Library is provided "as is" without any express
10
** or implied warranty of any kind with respect to this software.
11
** In particular the authors shall not be liable for any direct,
12
** indirect, special, incidental or consequential damages arising
13
** in any way from use of the software.
14
**
15
** Everyone is granted permission to copy, modify and redistribute this
16
** Meschach Library, provided:
17
** 1. All copies contain this copyright notice.
18
** 2. All modified copies shall carry a notice stating who
19
** made the last modification and the date of such modification.
20
** 3. No charge is made for this software or works derived from it.
21
** This clause shall not be construed as constraining other software
22
** distributed on the same medium as this software, nor is a
23
** distribution fee considered a charge.
24
**
25
***************************************************************************/
26
27
28
#include <stdio.h>
29
30
double
dclean
(x)
31
double
x;
32
{
33
static
double
y;
34
y = x;
35
return
y;
/* prevents optimisation */
36
}
37
38
int
main
()
39
{
40
static
double
deps, deps1, dtmp;
41
42
deps = 1.0;
43
while
(
dclean
(1.0+deps) > 1.0 )
44
deps = 0.5*deps;
45
46
printf
(
"%g\n"
, 2.0*deps);
47
return
0;
48
}
dclean
double dclean(double x)
Definition:
dmacheps.c:30
main
int main()
Definition:
dmacheps.c:38
printf
#define printf
Definition:
mwprefix.h:26
src
mesch
dmacheps.c