>
> Message: 6
> Date: Tue, 18 Oct 2011 15:28:04 -0400
> From: Colin Holgate <[email protected]>
> To: How to use LiveCode <[email protected]>
> Subject: Re: New rendering testing
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> It doesn't do very much, it gets stuck at line 47 quickly:
>
> put asin(sinGamma) into gamma
>
>
> On Oct 18, 2011, at 2:49 PM, James Hurley wrote:
>
>> go url "http://jamesphurley.com/jhurleyFolder/NineBallWithProjections.rev"
>
>
Colin,
There is a quirk in Mac OS. It shows a value of the sinGamma of 1 and yet
reports a domain error for asin(sinGamma). (The hypotenuse must be greater
than or equal to either of the other two sides.) Not on the PC however as
reported by Alejandro.
Two work arounds:
put trunc(100000000000000*sinGamma)/100000000000000 into sinGamma
if abs(sinGamma) >1 then
choose the browse tool
return ""
else
put asin(sinGamma) into gamma
end if
That gets rid of the possible round up error and cuts off any digits after the
14th decimal place.
Or:
Just replace the > operator with >= . Apparently this operator is not so
sensitive as the asin operator.
if abs(sinGamma) > 1 then -- Change this to >= 1
choose the browse tool
return ""
else
put asin(sinGamma) into gamma
end if
There are other quirks as well but not worth fixing. It is no longer a game
since the element of chance is gone.
Jim Hurley
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode