]> git.mxchange.org Git - flightgear.git/blob - tests/est-epsilon.c
Modified Files:
[flightgear.git] / tests / est-epsilon.c
1 #ifdef HAVE_CONFIG_H
2 #  include <config.h>
3 #endif
4
5 #ifdef HAVE_WINDOWS_H
6 #  include <windows.h>
7 #endif
8
9 #include <stdio.h>
10
11 #include <simgear/compiler.h>
12
13 #include SG_GLUT_H
14
15
16 int main() {
17     GLfloat a, t;
18
19     a = 1.0;
20
21     do {
22         printf("a = %.10f\n", a);
23         a = a / 2.0;
24         t = 1.0 + a;
25     } while ( t > 1.0 );
26
27     a = a + a;
28
29     printf("Estimated GLfloat epsilon = %.10f\n", a);
30
31     return(0);
32 }