POV-Ray : Newsgroups : povray.bugreports : Bad values crash POV-Ray : Re: Bad values crash POV-Ray Server Time
25 Oct 2024 19:52:42 EDT (-0400)
  Re: Bad values crash POV-Ray  
From: kurtz le pirate
Date: 15 Oct 2024 11:10:01
Message: <670e85c9@news.povray.org>
On 15/10/2024 16:10, Bald Eagle wrote:

> In the meantime:
> Can you try a simple "scene" where you try to take the sqrt of 0, N/0, and 0/0?

Sure :

#debug "Begin -------------\n"

#declare a = sqrt(0);
#debug concat("sqrt(0) = ",str(a,0,-1),"\n")

#declare b = sqrt(1/0);
#debug concat("sqrt(1/0) = ",str(b,0,-1),"\n")

#declare c = sqrt(0/0);
#debug concat("sqrt(0/0) = ",str(c,0,-1),"\n")

#debug "End-----------------\n"

#error "nothing to draw"



Output :
Begin -------------
sqrt(0) = 0.000000
sqrt(1/0) = inf
sqrt(0/0) = inf
End-----------------

Parse Warning: Divide by zero.
Parse Warning: Divide by zero.






-- 
Kurtz le pirate
Compagnie de la banquise


Post a reply to this message

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