Opened 12 years ago

Closed 12 years ago

#2068 closed Bug (Fixed)

ACos() bug

Reported by: Spiff59 Owned by: Valik
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


The x86 version of the ACos() function seems to go south after six calls. The example below returns the value of pi for six calls, and then returns the string "-1.#IND" on all subsequent calls. The bug exhibits itself both within SciTE and in "compiled" executables. Beta behaves identically.

#include <Array.au3>
Global $result[11]

For $x = 1 to 10
	$result[$x] = ACos(-1)

Attachments (0)

Change History (2)

comment:1 Changed 12 years ago by anonymous

This happens ONLY with ACos(-1). I also tested 0, 0.1 and 1 without this problem.
If you call ACos() with another value than -1 after the error occurs, it works again for one call.

#include <Array.au3>
Global $result[11]

For $x = 1 to 10
	$result[$x] = ACos(-1)
	If $x = 6 Then ACos(0) ; reset error for next call

comment:2 Changed 12 years ago by Valik

  • Milestone set to
  • Owner set to Valik
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [6733] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Valik.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.