File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change 2020 [4 4096 ]
2121 [5 8192 ]))
2222
23- (define (prev-iter)
24- (- (*sampling-iteration*) 1 ))
25-
2623(define (crosses-zero? x)
2724 (not (equal? (mpfr-sign (ival-lo x)) (mpfr-sign (ival-hi x)))))
2825
196193
197194 (define x (first srcs))
198195 (list (if (>= (maxlog z) 1 )
199- (cons (get-slack)
200- (get-slack (prev-iter))) ; assumes that log[1-x^2]/2 is equal to slack
196+ (cons (get-slack) 0 ) ; assumes that log[1-x^2]/2 is equal to slack
201197 (cons 1 0 )))]
202198
203199 [(ival-acos)
208204
209205 (define x (first srcs))
210206 (list (if (>= (maxlog x) 0 )
211- (cons (get-slack)
212- (get-slack (prev-iter))) ; assumes that log[1-x^2]/2 is equal to slack
207+ (cons (get-slack) 0 ) ; assumes that log[1-x^2]/2 is equal to slack
213208 (cons 0 0 )))]
214209
215210 [(ival-atan)
279274 ; a possible uncertainty
280275 (define x (first srcs))
281276 (list (if (>= (maxlog x) 1 )
282- (cons (get-slack) (get-slack (prev-iter)) )
277+ (cons (get-slack) 0 )
283278 (cons 1 0 )))]
284279
285280 [(ival-acosh)
295290 (list (cons (+ (logspan x) 1 ) 0 ))]
296291
297292 ; TODO
298- [(ival-erfc ival-erf ival-lgamma ival-tgamma ival-asinh ival-logb)
299- (list (cons (get-slack) (get-slack (prev-iter))))]
293+ [(ival-erfc ival-erf ival-lgamma ival-tgamma ival-asinh ival-logb) (list (cons (get-slack) 0 ))]
300294 ; TODO
301- [(ival-ceil ival-floor ival-rint ival-round ival-trunc)
302- (list (cons (get-slack) (get-slack (prev-iter))))]
295+ [(ival-ceil ival-floor ival-rint ival-round ival-trunc) (list (cons (get-slack) 0 ))]
303296
304297 [else (map (λ (_ ) (cons 0 0 )) srcs)])) ; exponents for arguments
You can’t perform that action at this time.
0 commit comments