Ticket #1040 (closed defect: fixed)

Opened 16 months ago

Last modified 16 months ago

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:

Description

(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

comment:1 Changed 16 months ago by svspire

Reported by Waldek Hebisch on openmcl-devel.

comment:2 Changed 16 months ago by svspire

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

(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.