POV-Ray : Newsgroups : povray.off-topic : Current questions : Re: Current questions Server Time
29 Jul 2024 00:32:26 EDT (-0400)
  Re: Current questions  
From: Orchid Win7 v1
Date: 13 May 2013 03:46:56
Message: <51909a70$1@news.povray.org>
On 13/05/2013 08:20 AM, scott wrote:
>> It is NOT typically written as
>>
>> exp(ix) = cos(x) + i sin(x)
>>
>> except when written in computer source code.
>
> Isn't that just because in maths the brackets are usually left out with
> standard functions if it's obvious what the parameter is? For more
> complex parameters brackets are usually used to avoid any ambiguity.

You leave out the brackets unless there's grounds for confusion. Which 
is pretty much what Haskell does. (And what most other programming 
languages do for everything except subroutine arguments.)

> When writing "user defined" functions like f(x) in maths you always use
> brackets.

Pro tip: Don't use the word "always" around mathematicians. It tends to 
make them find obscure counter-examples. ;-)

(Why, I have a book somewhere which claims that a "function" is actually 
a set of 2-tuples...)


Post a reply to this message

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