Different value computed by / on complex double-float when type is known (different rounding?)

Bug #2030097 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

(defun bug215 (x)
  (declare (type (complex double-float) x))
  (values
   (locally (declare (notinline /))
     (/ x))
   (/ x)))

(bug215 (complex 10000.1d0 1.3d0)) ==>
#C(9.999899832005061d-5 -1.2999739784208737d-8)
#C(9.999899832005064d-5 -1.2999739784208739d-8)

Perhaps related to bug 1899969 (a similar phenomenon on (expt ... -1/2).)

x86-64

description: updated
Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.