Modify

Opened 14 years ago

Closed 14 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 by anonymous, 14 years ago

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 by Valik, 14 years ago

Milestone: 3.3.9.0
Owner: set to Valik
Resolution: Fixed
Status: newclosed

Fixed by revision [6733] in version: 3.3.9.0

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.