Re: [Haskell] Power series in a nutshell

2007-07-12 Thread jerzy . karczmarczuk
Derek Elkins writes: Doug McIlroy wrote: For lovers of things small and beautiful, http://www.cs.dartmouth.edu/~doug/powser.html ... and a link to your earlier Functional Pearl, http://citeseer.ist.psu.edu/mcilroy98power.html If somebody is interested in similar manipulations, sometimes a b

Re: [Haskell] Power series in a nutshell

2007-07-12 Thread Derek Elkins
On Thu, 2007-07-12 at 12:49 -0400, Doug McIlroy wrote: > For lovers of things small and beautiful, > http://www.cs.dartmouth.edu/~doug/powser.html > boils down basic operations on power series with numeric > coefficients to the bare minimum--each is a one-liner. > Included are overloaded arithmeti

Re: [Haskell] Power series in a nutshell

2007-07-12 Thread Taral
On 7/12/07, Doug McIlroy <[EMAIL PROTECTED]> wrote: http://www.cs.dartmouth.edu/~doug/powser.html Very nice. I would only recommend that you include: scale k f = map (k*) f and have (*) use it. Thanks for your contribution! -- Taral <[EMAIL PROTECTED]> "Please let me know if there's any furt

[Haskell] Power series in a nutshell

2007-07-12 Thread Doug McIlroy
For lovers of things small and beautiful, http://www.cs.dartmouth.edu/~doug/powser.html boils down basic operations on power series with numeric coefficients to the bare minimum--each is a one-liner. Included are overloaded arithmetic operators, integration, differentiation, functional composition,