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
|