|
42 | 42 | [1 ((comonotonic->ival (curry bfcosu n)) x)] |
43 | 43 | [else |
44 | 44 | (ival (rnd 'down |
45 | | - epfn |
| 45 | + epbinary |
46 | 46 | bfmin2 |
47 | | - (epfn (curry bfcosu n) (ival-lo x)) |
48 | | - (epfn (curry bfcosu n) (ival-hi x))) |
| 47 | + (epunary (curry bfcosu n) (ival-lo x)) |
| 48 | + (epunary (curry bfcosu n) (ival-hi x))) |
49 | 49 | (endpoint 1.bf #f) |
50 | 50 | (ival-err? x) |
51 | 51 | (ival-err x))])] |
|
59 | 59 | [(and (bf=? (bfsub b a) 1.bf) (bfeven? a)) |
60 | 60 | (ival (endpoint -1.bf #f) |
61 | 61 | (rnd 'up |
62 | | - epfn |
| 62 | + epbinary |
63 | 63 | bfmax2 |
64 | | - (epfn (curry bfcosu n) (ival-lo x)) |
65 | | - (epfn (curry bfcosu n) (ival-hi x))) |
| 64 | + (epunary (curry bfcosu n) (ival-lo x)) |
| 65 | + (epunary (curry bfcosu n) (ival-hi x))) |
66 | 66 | (ival-err? x) |
67 | 67 | (ival-err x))] |
68 | 68 | [(and (bf=? (bfsub b a) 1.bf) (bfodd? a)) |
69 | 69 | (ival (rnd 'down |
70 | | - epfn |
| 70 | + epbinary |
71 | 71 | bfmin2 |
72 | | - (epfn (curry bfcosu n) (ival-lo x)) |
73 | | - (epfn (curry bfcosu n) (ival-hi x))) |
| 72 | + (epunary (curry bfcosu n) (ival-lo x)) |
| 73 | + (epunary (curry bfcosu n) (ival-hi x))) |
74 | 74 | (endpoint 1.bf #f) |
75 | 75 | (ival-err? x) |
76 | 76 | (ival-err x))] |
|
86 | 86 | [-1 ((monotonic->ival bfcos) x)] |
87 | 87 | [1 ((comonotonic->ival bfcos) x)] |
88 | 88 | [else |
89 | | - (ival (rnd 'down epfn bfmin2 (epfn bfcos (ival-lo x)) (epfn bfcos (ival-hi x))) |
| 89 | + (ival (rnd 'down epbinary bfmin2 (epunary bfcos (ival-lo x)) (epunary bfcos (ival-hi x))) |
90 | 90 | (endpoint 1.bf #f) |
91 | 91 | (ival-err? x) |
92 | 92 | (ival-err x))])] |
|
99 | 99 | [(and (bf=? a b) (bfodd? a)) ((monotonic->ival bfcos) x)] |
100 | 100 | [(and (bf=? (bfsub b a) 1.bf) (bfeven? a)) |
101 | 101 | (ival (endpoint -1.bf #f) |
102 | | - (rnd 'up epfn bfmax2 (epfn bfcos (ival-lo x)) (epfn bfcos (ival-hi x))) |
| 102 | + (rnd 'up epbinary bfmax2 (epunary bfcos (ival-lo x)) (epunary bfcos (ival-hi x))) |
103 | 103 | (ival-err? x) |
104 | 104 | (ival-err x))] |
105 | 105 | [(and (bf=? (bfsub b a) 1.bf) (bfodd? a)) |
106 | | - (ival (rnd 'down epfn bfmin2 (epfn bfcos (ival-lo x)) (epfn bfcos (ival-hi x))) |
| 106 | + (ival (rnd 'down epbinary bfmin2 (epunary bfcos (ival-lo x)) (epunary bfcos (ival-hi x))) |
107 | 107 | (endpoint 1.bf #f) |
108 | 108 | (ival-err? x) |
109 | 109 | (ival-err x))] |
|
126 | 126 | [(and (bf=? (bfsub b a) 1.bf) (bfodd? a)) |
127 | 127 | (ival (endpoint -1.bf #f) |
128 | 128 | (rnd 'up |
129 | | - epfn |
| 129 | + epbinary |
130 | 130 | bfmax2 |
131 | | - (epfn (curry bfsinu n) (ival-lo x)) |
132 | | - (epfn (curry bfsinu n) (ival-hi x))) |
| 131 | + (epunary (curry bfsinu n) (ival-lo x)) |
| 132 | + (epunary (curry bfsinu n) (ival-hi x))) |
133 | 133 | (ival-err? x) |
134 | 134 | (ival-err x))] |
135 | 135 | [(and (bf=? (bfsub b a) 1.bf) (bfeven? a)) |
136 | 136 | (ival (rnd 'down |
137 | | - epfn |
| 137 | + epbinary |
138 | 138 | bfmin2 |
139 | | - (epfn (curry bfsinu n) (ival-lo x)) |
140 | | - (epfn (curry bfsinu n) (ival-hi x))) |
| 139 | + (epunary (curry bfsinu n) (ival-lo x)) |
| 140 | + (epunary (curry bfsinu n) (ival-hi x))) |
141 | 141 | (endpoint 1.bf #f) |
142 | 142 | (ival-err? x) |
143 | 143 | (ival-err x))] |
|
159 | 159 | [(and (bf=? a b) (bfeven? a)) ((monotonic->ival bfsin) x)] |
160 | 160 | [(and (bf=? (bfsub b a) 1.bf) (bfodd? a)) |
161 | 161 | (ival (endpoint -1.bf #f) |
162 | | - (rnd 'up epfn bfmax2 (epfn bfsin (ival-lo x)) (epfn bfsin (ival-hi x))) |
| 162 | + (rnd 'up epbinary bfmax2 (epunary bfsin (ival-lo x)) (epunary bfsin (ival-hi x))) |
163 | 163 | (ival-err? x) |
164 | 164 | (ival-err x))] |
165 | 165 | [(and (bf=? (bfsub b a) 1.bf) (bfeven? a)) |
166 | | - (ival (rnd 'down epfn bfmin2 (epfn bfsin (ival-lo x)) (epfn bfsin (ival-hi x))) |
| 166 | + (ival (rnd 'down epbinary bfmin2 (epunary bfsin (ival-lo x)) (epunary bfsin (ival-hi x))) |
167 | 167 | (endpoint 1.bf #f) |
168 | 168 | (ival-err? x) |
169 | 169 | (ival-err x))] |
|
0 commit comments