POV-Ray : Newsgroups : povray.bugreports : asin(x)=0 if x>1 generate no error. Server Time: 16 May 2008 10:59:33 GMT
  asin(x)=0 if x>1 generate no error. (Message 1 to 1 of 1)  
From: Jfkoenig
Subject: asin(x)=0 if x>1 generate no error.
Date: 3 May 2001 00:39:20
Message: <3af0a8b8$1@news.povray.org>
When using asin(x)
sometimes due to roundoff during calculation, x may be out of the range
-1,+1
for example when using x=y/pow(y*y,1/2)
with y= 50000 x=1.0000000000000000100

The problem is that asin(x) doesnt generate an error if x>1
so a test of x must be done before calculation of asin

--------------------------------
jfkoenig [at] chimieu-strasbgfr


Post a reply to this message

Copyright 1991-2004 POV-Team™