OSDN Git Service
(root)
/
uclinux-h8
/
uClinux-dist.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2013.10.24
[uclinux-h8/uClinux-dist.git]
/
user
/
mathtest
/
j0tst.c
1
float z[20] = {
2
2.4048254489898681641,
3
5.5200781822204589844,
4
8.6537275314331054687,
5
11.791533470153808594,
6
14.930917739868164062,
7
18.071063995361328125,
8
21.211637496948242188,
9
24.352472305297851563,
10
27.493478775024414062,
11
30.634607315063476562,
12
33.775821685791015625,
13
36.9170989990234375,
14
40.0584259033203125,
15
43.19979095458984375,
16
46.3411865234375,
17
49.482608795166015625,
18
52.624050140380859375,
19
55.76551055908203125,
20
58.906982421875,
21
62.04846954345703125,
22
};
23
24
/* #if ANSIC */
25
#if __STDC__
26
float j0f(float);
27
#else
28
float j0f();
29
#endif
30
31
int main()
32
{
33
float y;
34
int i;
35
36
for (i = 0; i< 20; i++)
37
{
38
y = j0f(z[i]);
39
printf("%.9e\n", y);
40
}
41
exit(0);
42
}
43