Skip to content

Commit 742a1e8

Browse files
committed
+ version 0.1.07 (attachment)
+ refactored to decrease footprint + added example folder + added referenceOutput.txt to the example sketches
1 parent bb3198d commit 742a1e8

File tree

4 files changed

+174
-0
lines changed

4 files changed

+174
-0
lines changed
File renamed without changes.
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
2+
Complex numbers test for Arduino: 0.1.06
3+
4+
1. Print Complex, set, real, imag
5+
1.000 0.000i
6+
10.000 -2.000i
7+
3.000 0.000i
8+
-10.000 4.000i
9+
-5.000 -5.000i
10+
0.000 0.000i
11+
0.00
12+
0.00
13+
14+
2. == !=
15+
ok :)
16+
ok :)
17+
ok :)
18+
19+
3. negation -
20+
-10.000 2.000i
21+
10.000 -2.000i
22+
ok :)
23+
24+
4. + -
25+
13.000 -2.000i
26+
13.000 -2.000i
27+
7.000 -2.000i
28+
7.000 -2.000i
29+
30+
5. * /
31+
30.000 -6.000i
32+
90.000 -18.000i
33+
30.000 -6.000i
34+
10.000 -2.000i
35+
10.000 -2.000i
36+
10.000 -2.000i
37+
38+
6. assign += -= *= /=
39+
20.000 -4.000i
40+
23.000 -4.000i
41+
13.000 -2.000i
42+
10.000 -2.000i
43+
96.000 -40.000i
44+
288.000 -120.000i
45+
30.000 -6.000i
46+
10.000 -2.000i
47+
48+
7. phase modulus polar
49+
10.000 -2.000i
50+
10.20
51+
-0.20
52+
10.000 -2.000i
53+
54+
8. conjugate reciprocal
55+
10.000 2.000i
56+
10.000 -2.000i
57+
0.096 0.019i
58+
10.000 -2.000i
59+
60+
9. power: exp log pow sqrt sqr logn log10
61+
96.000 -40.000i
62+
-9166.239 -20028.597i
63+
10.000 -2.000i
64+
96.000 -40.000i
65+
10.000 -2.000i
66+
96.000 -40.000i
67+
880.000 -592.000i
68+
10.000 -2.000i
69+
0.534 0.542i
70+
10.000 -2.000i
71+
1.009 -0.086i
72+
73+
10. gonio: sin cos tan asin acos atan
74+
0.541 0.457i
75+
0.500 0.500i
76+
0.990 -0.250i
77+
0.500 0.500i
78+
0.404 0.564i
79+
0.500 0.500i
80+
81+
11. gonio csc sec cot acsc asec acot
82+
1.078 -0.912i
83+
0.500 0.500i
84+
0.950 0.240i
85+
0.500 0.500i
86+
0.839 -1.172i
87+
0.500 0.500i
88+
89+
12. gonio hyperbolicus I
90+
0.457 0.541i
91+
0.500 0.500i
92+
0.990 0.250i
93+
0.500 0.500i
94+
0.564 0.404i
95+
0.500 0.500i
96+
97+
13. gonio hyperbolicus II
98+
0.912 -1.078i
99+
0.500 0.500i
100+
0.950 -0.240i
101+
0.500 0.500i
102+
1.172 -0.839i
103+
0.500 0.500i
104+
105+
.. Complex done
106+
465072
107+
1.000 0.000i
File renamed without changes.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
2+
Complex numbers performance test for Arduino: 0.1.07
3+
4+
5 constructors 8
5+
set(0,0) 4
6+
c1 + 1 2580
7+
c1 + c2 2392
8+
+= c2 2104
9+
c5 = -c1 760
10+
c1 - 3 2464
11+
c1 - c2 2296
12+
c5 -= c2 1976
13+
c1 * 3 5700
14+
c1 * c2 5560
15+
c5 *= c2 5152
16+
c1 / 3 13864
17+
c1 / c2 13724
18+
c5 /= c2 12248
19+
20+
real() 4
21+
imag() 4
22+
modulus() 68
23+
phase 204
24+
polar() 24476
25+
conjugate() 4
26+
reciprocal(); 8572
27+
28+
c_sqr() 5092
29+
c_exp() 43100
30+
c_log() 40144
31+
c_pow(2) 89248
32+
c_sqrt() 8616
33+
c_logn(c4) 70780
34+
c_pow(c5) 62192
35+
c_log10() 38220
36+
37+
c_sin() 51772
38+
c_asin() 76844
39+
c_cos() 51860
40+
c_acos() 75248
41+
c_tan() 118520
42+
c_atan() 69332
43+
44+
c_csc() 66048
45+
c_acsc() 85060
46+
c_sec() 66292
47+
c_asec() 90756
48+
c_cot() 132736
49+
c_acot() 77304
50+
51+
c_sinh() 51764
52+
c_asinh() 66212
53+
c_cosh() 51860
54+
c_acosh() 64388
55+
c_tanh() 118524
56+
c_atanh() 92468
57+
58+
c_csch() 66140
59+
c_acsch() 70128
60+
c_sech() 66292
61+
c_asech() 81692
62+
c_coth() 132664
63+
c_acoth() 100032
64+
65+
2308648
66+
67+
.. Complex done

0 commit comments

Comments
 (0)