POV-Ray : Newsgroups : povray.unofficial.patches : Float factor expected but log found instead : Re: Float factor expected but log found instead Server Time
2 Sep 2024 04:12:37 EDT (-0400)
  Re: Float factor expected but log found instead  
From: Ron Parker
Date: 23 May 2000 23:13:43
Message: <slrn8imitk.3ce.ron.parker@linux.parkerr.fwi.com>
On Tue, 23 May 2000 09:02:36 -0400, david sharp wrote:
>
>Matthew Bennett <ben### [at] btinternetcom>
>> "david sharp" <dsh### [at] interportnet> wrote
>>
>> > In function{}'s it is  'ln' instead of 'log'
>>
>> Isn't that to base e rather than base 10 though?
>>
>
>In the isosurface patch  ln is actually  log base 10.
>or, actually, ln(x) = log_10(abs(x)) . 

I don't see that in the superpatch 3.1g code (I don't have MegaPOV code
handy on this machine.)  Specifically, it says 

LOG( ABS( *calc_stack_top ))

where LOG is defined in isofunc.h as 'log'.  A quick 'man log' shows
that 'log' is the C function for natural logarithm, and 'log10' is the
base-10 logarithm.

If that's different in MegaPOV, it should probably be put back.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
These are my opinions.  I do NOT speak for the POV-Team.


Post a reply to this message

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