21 lines
265 B
C
21 lines
265 B
C
|
#include <stdio.h>
|
||
|
#include <GL/glut.h>
|
||
|
|
||
|
int main() {
|
||
|
GLfloat a, t;
|
||
|
|
||
|
a = 1.0;
|
||
|
|
||
|
do {
|
||
|
printf("a = %.10f\n", a);
|
||
|
a = a / 2.0;
|
||
|
t = 1.0 + a;
|
||
|
} while ( t > 1.0 );
|
||
|
|
||
|
a = a + a;
|
||
|
|
||
|
printf("Estimated GLfloat epsilon = %.10f\n", a);
|
||
|
|
||
|
return(0);
|
||
|
}
|