File tree Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 146146 (mpfr-subnormalize r t (mpfr-rounding-mode)))
147147 r)
148148
149- (define mpfr-sum-fun
150- (get-mpfr-fun 'mpfr_sum (_fun _mpfr-pointer (_list i _mpfr-pointer) _ulong _rnd_t -> _int)))
151-
152- (define (mpfr-sum xs)
153- (define r (bf 0 ))
154- (define t (mpfr-sum-fun r xs (length xs) (mpfr-rounding-mode)))
155- (mpfr-check-range r 0 (mpfr-rounding-mode))
156- (when (mpfr-subnormalize?)
157- (mpfr-subnormalize r t (mpfr-rounding-mode)))
158- r)
159-
160149(define (mpfr-set x)
161150 (define v (if (bigfloat? x) (bfcopy x) (bf x)))
162151 (mpfr-check-range v 0 (mpfr-rounding-mode))
Original file line number Diff line number Diff line change 299299 [(list) 1.bf]
300300 [(list x) (bfcopy x)]
301301 [(list x y rest ... )
302- (for/fold ([sum (mpfr-mul x y)]) ([z (in-list rest)])
303- (mpfr-mul sum z))]))
302+ (for/fold ([prod (mpfr-mul x y)]) ([z (in-list rest)])
303+ (mpfr-mul prod z))]))
304304
305305(define (mpfrv/ x . xs)
306306 (match xs
Original file line number Diff line number Diff line change 1111 mpfr-lgamma
1212 mpfr-jn
1313 mpfr-yn
14- mpfr-sum
1514 mpfr-set
1615 mpfr-set-ebounds!)
1716
You can’t perform that action at this time.
0 commit comments