comparison test/float.c @ 79:82d0e30f61dd

*** empty log message ***
author kono
date Mon, 03 Mar 2003 04:56:51 +0900
parents
children f94ca1168520
comparison
equal deleted inserted replaced
78:8418d4b7caa7 79:82d0e30f61dd
1 #include "stdio.h"
2
3 void test2(double);
4 void test1();
5
6 int
7 main(int ac,char *av[]) {
8 test1();
9 return 0;
10 }
11
12 void
13 test1()
14 {
15 float f;
16 float f1;
17 double g;
18 double g1;
19
20 f = 1.3;
21
22 g = 1.0;
23 g = g+g;
24 g1 = g*g;
25 g = g/g1;
26 g = g-g1;
27 g = sin(g1);
28
29 f = f+f;
30 f1 = f*f;
31 f = f/f1;
32 f = f-f1;
33 f = sin(f1);
34
35 g = f+f;
36 f = g*g;
37 test2(f);
38
39 g = g*g+f*f-g1*g1;
40
41 printf("%g %g %g %g\n",g,f,g1,f1);
42 return;
43 }
44
45 void
46 test2(double i)
47 {
48 }