Opened 8 years ago

Closed 8 years ago

#1040 closed defect (fixed)

ACOS is doing the wrong thing with complex arguments

Reported by: svspire Owned by: svspire
Priority: major Milestone:
Component: ANSI CL Compliance Version: trunk
Keywords: Cc:


(ACOS (complex -2.0d0 0.0d0)) gives Error: DIVISION-BY-ZERO detected

performing / on (1.7320508075688772D0 0.0D0)

While executing: CCL::/-2, in process listener(1). Type :POP to abort, :R for a list of available restarts. Type :? for other options.

Happens on LinuxX86, DarwinX86, and ARM (at least).

Should produce ? (ACOS (complex -2.0d0 0.0d0)) #C(3.141592653589793D0 -1.3169578969248166D0)

Note that ASIN has a related bug that can be triggered with the proper args, because it's also calling single-argument ATAN.

Change History (2)

comment:1 Changed 8 years ago by svspire

Reported by Waldek Hebisch on openmcl-devel.

comment:2 Changed 8 years ago by svspire

  • Resolution set to fixed
  • Status changed from new to closed

(In [15553]) acos and asin now do the right thing with complex args. Fixes ticket:1040 in the trunk.

Note: See TracTickets for help on using tickets.