|
|
news:haj62uopsknnimj13du3mri74r844kijep@4ax.com...
> On Fri, 21 Dec 2001 09:51:15 -0500, "Trevor Quayle"
<Tin### [at] hotmailcom>
> wrote:
> > "Tom Melly" <tom### [at] tomandlucouk> wrote in message
> > news:3c2349fa$1@news.povray.org...
> > > what function would return 1 when x = 0 but 0 when abs(x)>=1 ?
> >
> > max(floor(1-abs(x)),0)
>
> this could be wrong becouse it return 1 when x=0 but 0 for _all_ other
cases.
>
> ABX
Oops, a bit too hasty, didn't really read the fine print there. Thought he
wanted 1 for x=0 and 0 for everything else.
-tgq
Post a reply to this message
|
|