POV-Ray : Newsgroups : povray.unofficial.patches : Step function : Re: Step function Server Time
29 Apr 2024 00:42:57 EDT (-0400)
  Re: Step function  
From: Alberto
Date: 22 Aug 2000 00:29:37
Message: <39A2016F.7B1ED0D2@usb.ve>
Sorry, there is a simpler solution. Replace the previous macro by

#macro Heaviside(jump)
  #declare myheavi = function{if((x - jump),1,0)}
#end

No restriction in the domain of definition

Regards, Alberto


Post a reply to this message

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