Jump to content
Sign in to follow this  
Spiff59

Apparent bug with ACos()...

Recommended Posts

Spiff59

One would expect $result1 to equal $result2 below:

$result1 = ACos(-1)

For $x = 1 to 5 ; < 5 = no bug
    ACos(-1)
Next

$result2 = ACos(-1)

MsgBox(0,"",$result1 & @CRLF & $result2)

For me (XP Pro SP3 and 3.3.6.1), it does not.

Edit: Always on the 7th call to ACos() that it goes south...

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

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

It occurs both from within SciTE and as an executable.

Same result for those of you with Vista or W7?

(I suppose in case you can't recreate it, I ought to spell out what I'm seeing... I get the numeric value of Pi for the first 6 calls, and then "-1.#IND" forever after).

Edited by Spiff59

Share this post


Link to post
Share on other sites
KaFu

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×