POV-Ray : Newsgroups : povray.general : Error with pow() : Re: Error with pow() Server Time
4 Aug 2024 08:20:49 EDT (-0400)
  Re: Error with pow()  
From: Tim Nikias v2 0
Date: 14 Jun 2003 10:19:10
Message: <3eeb2ede@news.povray.org>
Hm. Didn't notice that one... Fumbling with
all kinds of stuff and overseeing the obvious!
I'm a little stressed, that's all I have to say for
an excuse.
Easiest method to solve the problem:
pow( abs(_light), int(_Pow)).

Got a little stuck with my thoughts somehow. :-/


-- 
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

>
> > My Specs:
> > Win2000, Athlon XP2400+, 786MB DDR
> >
> > So, here goes minimum code:
> >
> >  #local _Light=-0.47443615353120855;
> > // <- Replace latest 7 with 69 or with 71 to see change
> >  #local _Pow=1/0.49999999999999997227;
> > #local C_Spec=pow( _Light, _Pow );
> >  #debug concat(str(abs(C_Spec),1,20),"\n")
> >
>
> To me it looks like you're trying to calculate a fractional power of a
> negative number... what do you expect to get as result?
>
>
> -- 
> POV-Ray Objects Collection: http://objects.povworld.org


Post a reply to this message

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