POV-Ray : Newsgroups : povray.off-topic : Iterated derivatives : Re: Iterated derivatives Server Time
5 Sep 2024 01:22:41 EDT (-0400)
  Re: Iterated derivatives  
From: Invisible
Date: 19 Nov 2009 04:42:04
Message: <4b0512ec@news.povray.org>
>>>> How about
>>>>
>>>>   sinc(x) = if x = 0 then 1 else sin(x) / x
>>>>
>>> nope, never seen that
>>
>> I've seen it as
>>   sinc(x) = 1 if x = 0
>>   sinc(x) = sin(x)/x if x /= 0
> 
> In our math classes we always wrote it just like that, but usually only 
> the "sinc(x)" once and a curly bracket around the two options IIRC.

Indeed. But you can't really do that with ASCII, so I wrote the nearest 
equivilent.

>> I've never seen it written with an else.
> 
> Me neither, that sounds more like a programming language than math 
> notation.

Well, technically the above *is* a valid Haskell function declaration...

[Or rather, it becomes so if you change "if x = " to "if x == 0" - which 
probably proves Andrel's original point.]


Post a reply to this message

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