|
38 | 38 | # It's atom, don't forget change `EOreal$EOasin`. |
39 | 39 | [] > asin ? |
40 | 40 |
|
41 | | - # Tests that negative float raised to negative infinity equals zero. |
42 | | - [] +> tests-negative-float-to-the-pow-of-negative-infinity-is-zero |
43 | | - eq. +> @ |
44 | | - pow -42.5 negative-infinity |
45 | | - 0 |
46 | | - |
47 | | - # Tests that positive infinity raised to negative infinity equals zero. |
48 | | - [] +> tests-positive-infinity-to-the-pow-of-negative-infinity-is-zero |
49 | | - eq. +> @ |
50 | | - pow positive-infinity negative-infinity |
51 | | - 0 |
52 | | - |
53 | | - # Tests that negative infinity raised to negative infinity equals zero. |
54 | | - [] +> tests-negative-infinity-to-the-pow-of-negative-infinity-is-zero |
55 | | - eq. +> @ |
56 | | - pow negative-infinity negative-infinity |
57 | | - 0 |
58 | | - |
59 | | - # Tests that positive infinity raised to finite negative power equals zero. |
60 | | - [] +> tests-positive-infinity-to-the-finite-negative-int-pow-is-zero |
61 | | - eq. +> @ |
62 | | - pow positive-infinity -42 |
63 | | - 0 |
64 | | - |
65 | | - # Tests that positive infinity raised to finite negative float power equals zero. |
66 | | - [] +> tests-positive-infinity-to-the-finite-negative-float-pow-is-zero |
67 | | - eq. +> @ |
68 | | - pow positive-infinity -42.2 |
69 | | - 0.0 |
70 | | - |
71 | | - # Tests that 2 raised to the power of -1 equals 0.5. |
72 | | - [] +> tests-two-to-the-pow-of-minus-one |
73 | | - eq. +> @ |
74 | | - pow 2 -1 |
75 | | - 0.5 |
76 | | - |
77 | | - # Tests that 2 raised to the power of -2 equals 0.25. |
78 | | - [] +> tests-two-to-the-pow-of-int-minus-two |
79 | | - eq. +> @ |
80 | | - pow 2 -2 |
81 | | - 0.25 |
82 | | - |
83 | | - # Tests mathematical operation functionality. |
84 | | - [] +> tests-two-to-the-pow-of-minus-three |
85 | | - eq. +> @ |
86 | | - pow 2 -3 |
87 | | - 0.125 |
88 | | - |
89 | | - # Tests mathematical operation functionality. |
90 | | - [] +> tests-four-to-the-pow-of-minus-three |
91 | | - eq. +> @ |
92 | | - pow 4 -3.0 |
93 | | - 0.015625 |
94 | | - |
95 | | - # Tests mathematical operation functionality. |
96 | | - # Check if pow more than zero. |
97 | | - [] +> tests-zero-to-the-pow-of-positive-int-is-zero |
98 | | - eq. +> @ |
99 | | - pow 0 4 |
100 | | - 0 |
101 | | - |
102 | | - # Tests mathematical operation functionality. |
103 | | - [] +> tests-zero-to-the-pow-of-positive-float-is-zero |
104 | | - eq. +> @ |
105 | | - pow 0 4.2 |
106 | | - 0 |
107 | | - |
108 | | - # Tests mathematical operation functionality. |
109 | | - [] +> tests-zero-to-the-pow-of-positive-infinity-is-zero |
110 | | - eq. +> @ |
111 | | - pow 0 positive-infinity |
112 | | - 0 |
113 | | - |
114 | | - # Tests mathematical operation functionality. |
115 | | - [] +> tests-negative-int-to-the-pow-of-positive-infinity-is-positive-infinity |
116 | | - eq. +> @ |
117 | | - pow -10 positive-infinity |
118 | | - positive-infinity |
119 | | - |
120 | | - # Tests mathematical operation functionality. |
121 | | - [] +> tests-negative-float-to-the-pow-of-positive-infinity-is-infinity |
122 | | - eq. +> @ |
123 | | - pow -4.2 positive-infinity |
124 | | - positive-infinity |
125 | | - |
126 | | - # Tests mathematical operation functionality. |
127 | | - [] +> tests-positive-int-to-the-pow-of-positive-infinity-is-positive-infinity |
128 | | - eq. +> @ |
129 | | - pow 42 positive-infinity |
130 | | - positive-infinity |
131 | | - |
132 | 41 | # Tests mathematical operation functionality. |
133 | 42 | [] +> tests-positive-float-to-the-pow-of-positive-infinity-is-positive-infinity |
134 | 43 | eq. +> @ |
|
0 commit comments