-
Notifications
You must be signed in to change notification settings - Fork 1
/
trig_output.intel_i7_6700k.txt
139 lines (125 loc) · 8.34 KB
/
trig_output.intel_i7_6700k.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[H[2J[3J
=========================================
Tests the trigonometric functions using long doubles
=========================================
K scaling factor for Cordic: 0.60725293500888125617157009550339807902
Angle is: 3.141593 rad (180.000000 °)
Using 32 Cordic loops:
clib sinl( 3.141593) = -0.00000000000000000005016557612668332023
my sin1( 3.141593) = 0.00000000012957651862305543835078344173 (delta: 1.296E-10)
my sin2( 3.141593) = 0.00000000012957651862440148582450592676 (delta: 1.296E-10)
clib cosl( 3.141593) = -1.00000000000000000000000000000000000000
my cos1( 3.141593) = -0.99999999999999999989157978275144955660 (delta: 1.084E-19)
my cos2( 3.141593) = -1.00000000000000000000000000000000000000 (delta: 0.000E+00)
Angle is: 2.617994 rad (150.000000 °)
Using 32 Cordic loops:
clib sinl( 2.617994) = 0.50000000000000000000000000000000000000
my sin1( 2.617994) = 0.49999999995385717603611601400626085479 (delta: 4.614E-11)
my sin2( 2.617994) = 0.49999999995385717592769579675771041138 (delta: 4.614E-11)
clib cosl( 2.617994) = -0.86602540378443864678686264779727821406
my cos1( 2.617994) = -0.86602540381107921853417672131136839653 (delta: 2.664E-11)
my cos2( 2.617994) = -0.86602540381107921858838682993564361823 (delta: 2.664E-11)
Angle is: 2.356194 rad (135.000000 °)
Using 32 Cordic loops:
clib sinl( 2.356194) = 0.70710678118654752432768392789164124679
my sin1( 2.356194) = 0.70710678111829879631533568584700333304 (delta: 6.825E-11)
my sin2( 2.356194) = 0.70710678111829879647796601171982899814 (delta: 6.825E-11)
clib cosl( 2.356194) = -0.70710678118654752449031425376446691189
my cos1( 2.356194) = -0.70710678125479625234003216993627916054 (delta: 6.825E-11)
my cos2( 2.356194) = -0.70710678125479625234003216993627916054 (delta: 6.825E-11)
Angle is: 2.094395 rad (120.000000 °)
Using 32 Cordic loops:
clib sinl( 2.094395) = 0.86602540378443864667844243054872777066
my sin1( 2.094395) = 0.86602540381107921853417672131136839653 (delta: 2.664E-11)
my sin2( 2.094395) = 0.86602540381107921858838682993564361823 (delta: 2.664E-11)
clib cosl( 2.094395) = -0.50000000000000000016263032587282566510
my cos1( 2.094395) = -0.49999999995385717603611601400626085479 (delta: 4.614E-11)
my cos2( 2.094395) = -0.49999999995385717592769579675771041138 (delta: 4.614E-11)
Angle is: 1.570796 rad (90.000000 °)
Using 32 Cordic loops:
clib sinl( 1.570796) = 1.00000000000000000000000000000000000000
my sin1( 1.570796) = 0.99999999999999999989157978275144955660 (delta: 1.084E-19)
my sin2( 1.570796) = 1.00000000000000000000000000000000000000 (delta: 0.000E+00)
clib cosl( 1.570796) = -0.00000000000000000002508278806334166012
my cos1( 1.570796) = 0.00000000012957651862305543835078344173 (delta: 1.296E-10)
my cos2( 1.570796) = 0.00000000012957651862440148582450592676 (delta: 1.296E-10)
Angle is: 1.047198 rad (60.000000 °)
Using 32 Cordic loops:
clib sinl( 1.047198) = 0.86602540378443864678686264779727821406
my sin1( 1.047198) = 0.86602540381107921853417672131136839653 (delta: 2.664E-11)
my sin2( 1.047198) = 0.86602540381107921858838682993564361823 (delta: 2.664E-11)
clib cosl( 1.047198) = 0.49999999999999999991868483706358716745
my cos1( 1.047198) = 0.49999999995385717603611601400626085479 (delta: 4.614E-11)
my cos2( 1.047198) = 0.49999999995385717592769579675771041138 (delta: 4.614E-11)
Angle is: 0.785398 rad (45.000000 °)
Using 32 Cordic loops:
clib sinl( 0.785398) = 0.70710678118654752443610414514019169019
my sin1( 0.785398) = 0.70710678111829879631533568584700333304 (delta: 6.825E-11)
my sin2( 0.785398) = 0.70710678111829879647796601171982899814 (delta: 6.825E-11)
clib cosl( 0.785398) = 0.70710678118654752438189403651591646849
my cos1( 0.785398) = 0.70710678125479625234003216993627916054 (delta: 6.825E-11)
my cos2( 0.785398) = 0.70710678125479625234003216993627916054 (delta: 6.825E-11)
Angle is: 0.523599 rad (30.000000 °)
Using 32 Cordic loops:
clib sinl( 0.523599) = 0.50000000000000000005421010862427522170
my sin1( 0.523599) = 0.49999999995385717603611601400626085479 (delta: 4.614E-11)
my sin2( 0.523599) = 0.49999999995385717592769579675771041138 (delta: 4.614E-11)
clib cosl( 0.523599) = 0.86602540378443864673265253917300299236
my cos1( 0.523599) = 0.86602540381107921853417672131136839653 (delta: 2.664E-11)
my cos2( 0.523599) = 0.86602540381107921858838682993564361823 (delta: 2.664E-11)
Angle is: 0.000000 rad ( 0.000000 °)
Using 32 Cordic loops:
clib sinl( 0.000000) = 0.00000000000000000000000000000000000000
my sin1( 0.000000) = -0.00000000012957651862305543835078344173 (delta: 1.296E-10)
my sin2( 0.000000) = -0.00000000012957651862440148582450592676 (delta: 1.296E-10)
clib cosl( 0.000000) = 1.00000000000000000000000000000000000000
my cos1( 0.000000) = 0.99999999999999999989157978275144955660 (delta: 1.084E-19)
my cos2( 0.000000) = 1.00000000000000000000000000000000000000 (delta: 0.000E+00)
Angle is: 2.064982 rad (118.314727 °)
Using 32 Cordic loops:
clib sinl( 2.064982) = 0.88035546637679611863599310472849879261
my sin1( 2.064982) = 0.88035546646898164726939561841589920732 (delta: 9.219E-11)
my sin2( 2.064982) = 0.88035546646898164737781583566444965072 (delta: 9.219E-11)
clib cosl( 2.064982) = -0.47431450833860627189263528546980808187
my cos1( 2.064982) = -0.47431450816750453925688298106866369608 (delta: 1.711E-10)
my cos2( 2.064982) = -0.47431450816750453925688298106866369608 (delta: 1.711E-10)
Angle is: -2.349312 rad (-134.605673 °)
Using 32 Cordic loops:
clib sinl(-2.349312) = -0.71195651633377470685060117716602690052
my sin1(-2.349312) = -0.71195651645911535882480306036690365090 (delta: 1.253E-10)
my sin2(-2.349312) = -0.71195651645911535887901316899117887260 (delta: 1.253E-10)
clib cosl(-2.349312) = -0.70222355332890649845479710822182539687
my cos1(-2.349312) = -0.70222355320182859914459119754504001776 (delta: 1.271E-10)
my cos2(-2.349312) = -0.70222355320182859919880130616931523946 (delta: 1.271E-10)
Angle is: -1.205844 rad (-69.089749 °)
Using 32 Cordic loops:
clib sinl(-1.205844) = -0.93414063459631488443813893129963332740
my sin1(-1.205844) = -0.93414063459792898185722956339027689410 (delta: 1.614E-12)
my sin2(-1.205844) = -0.93414063459792898185722956339027689410 (delta: 1.614E-12)
clib cosl(-1.205844) = 0.35690513416872292901528378183950707125
my cos1(-1.205844) = 0.35690513416449829396919629642681570658 (delta: 4.225E-12)
my cos2(-1.205844) = 0.35690513416449829405051145936322853913 (delta: 4.225E-12)
Angle is: -2.541848 rad (-145.637156 °)
Using 32 Cordic loops:
clib sinl(-2.541848) = -0.56443180968169395930007434247777098335
my sin1(-2.541848) = -0.56443180939872335071232772873983662976 (delta: 2.830E-10)
my sin2(-2.541848) = -0.56443180939872335049548729424273574296 (delta: 2.830E-10)
clib cosl(-2.541848) = -0.82547969824790240521775186444131122698
my cos1(-2.541848) = -0.82547969844138700931581581476947917508 (delta: 1.935E-10)
my cos2(-2.541848) = -0.82547969844138700947844614064230484018 (delta: 1.935E-10)
Angle is: 2.096512 rad (120.121292 °)
Using 32 Cordic loops:
clib sinl( 2.096512) = 0.86496499577571104086645345510042659498
my sin1( 2.096512) = 0.86496499580586782489170782906029444348 (delta: 3.016E-11)
my sin2( 2.096512) = 0.86496499580586782489170782906029444348 (delta: 3.016E-11)
clib cosl( 2.096512) = -0.50183219912907559592763970246487303939
my cos1( 2.096512) = -0.50183219907709694141990236504469180545 (delta: 5.198E-11)
my cos2( 2.096512) = -0.50183219907709694131148214779614136205 (delta: 5.198E-11)
For 8 Cordic loops, max error: 7.590E-03 -> Dec. Prec: 2.12, Bits of precision: 7.04
For 16 Cordic loops, max error: 3.019E-05 -> Dec. Prec: 4.52, Bits of precision: 15.02
For 24 Cordic loops, max error: 1.173E-07 -> Dec. Prec: 6.93, Bits of precision: 23.02
For 32 Cordic loops, max error: 4.651E-10 -> Dec. Prec: 9.33, Bits of precision: 31.00
For 40 Cordic loops, max error: 1.789E-12 -> Dec. Prec: 11.75, Bits of precision: 39.02
For 48 Cordic loops, max error: 7.022E-15 -> Dec. Prec: 14.15, Bits of precision: 47.02
For 56 Cordic loops, max error: 2.697E-17 -> Dec. Prec: 16.57, Bits of precision: 55.04
For 64 Cordic loops, max error: 4.879E-19 -> Dec. Prec: 18.31, Bits of precision: 60.83