]> git.mxchange.org Git - flightgear.git/blob - tests/est-epsilon.c
Add elevator trim tab position logging.
[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 FG_GLUT_H
12
13
14 int main() {
15     GLfloat a, t;
16
17     a = 1.0;
18
19     do {
20         printf("a = %.10f\n", a);
21         a = a / 2.0;
22         t = 1.0 + a;
23     } while ( t > 1.0 );
24
25     a = a + a;
26
27     printf("Estimated GLfloat epsilon = %.10f\n", a);
28
29     return(0);
30 }