Modify

Opened 8 years ago

Closed 7 years ago

#2068 closed Bug (Fixed)

ACos() bug

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

Description

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 3.3.7.23 behaves identically.

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

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

Attachments (0)

Change History (2)

comment:1 Changed 8 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
Next
_ArrayDisplay($result)

comment:2 Changed 7 years ago by Valik

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

Fixed by revision [6733] in version: 3.3.9.0

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

Action
as closed The owner will remain Valik.
Author


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

 
Note: See TracTickets for help on using tickets.