Talk:Fast Fourier transform: Difference between revisions

Content added Content deleted
(scala: exp function)
 
Line 64: Line 64:
Does Scala really not have a standard complex math library? Surprising...
Does Scala really not have a standard complex math library? Surprising...
--[[User:BooleanLobster|BooleanLobster]] ([[User talk:BooleanLobster|talk]]) 2014-04-27
--[[User:BooleanLobster|BooleanLobster]] ([[User talk:BooleanLobster|talk]]) 2014-04-27

I prefer to declare exp as a method of the Complex class:
<lang scala>def exp = Complex(cos(im), sin(im)) * (cosh(re) + sinh(re))</lang>
Invocations become z.exp instead of exp(z)

--[[User:Jolkdarr|Jolkdarr]] ([[User talk:Jolkdarr|talk]]) 2015-11-15