POV-Ray : Newsgroups : povray.bugreports : asin(x)=0 if x>1 generate no error. Server Time
22 Nov 2024 10:45:34 EST (-0500)
  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: 2 May 2001 20: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

--------------------------------
jfk### [at] chimieu-strasbgfr


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.