Re: differentiation. Reply

2002-01-14 Thread Jerzy Karczmarczuk
Ketil Z Malde adds a comment concerning the query of Zhe Fu: > > >>> Is there any built-in functions in Haskell to implement > >>> diffential operation and partial diffential operation? > >>> Or can anyone give me some advices about how to implement them > >>> with Haskell? Thanks. > Jerzy Karc

Re: differentiation. Reply

2002-01-14 Thread Ketil Z Malde
Alec <[EMAIL PROTECTED]> writes: > On Wednesday 09 January 2002 06:50 am, S.D.Mechveliani wrote: >> Zhe Fu <[EMAIL PROTECTED]> writes >>> Is there any built-in functions in Haskell to implement >>> diffential operation and partial diffential operation? >>> Or can anyone give me some advices abo

Re: differentiation. Reply

2002-01-09 Thread Dimitre Novatchev
I wrote: > > super :: (Floating a, RealFrac a) => [a] -> [a] > > super xs = map second (myRepeat improve xs) The definition must be: > super xs = map second (iterate improve xs) Cheers, Dimitre Novatchev. _

Re: differentiation. Reply

2002-01-09 Thread Dimitre Novatchev
> how about this: > > diff f x = (f (x + epsilon) - f (x - epsilon)) / (2 * epsilon) >where epsilon = 0.1 > > every call to say "diff sin" will cost you about as much as every call to > "sin" Following John Hughes' article "Why Functional Programming Matters", here's one implementatio

Re: differentiation. Reply

2002-01-09 Thread Alec
On Wednesday 09 January 2002 10:59 am, you wrote: > diff f x = (f (x + epsilon) - f (x - epsilon)) / (2 * epsilon) >where epsilon = 0.1 > > every call to say "diff sin" will cost you about as much as every call to > "sin" s/every call to "sin"/two calls to "sin"/ of course Alec ___

Re: differentiation. Reply

2002-01-09 Thread Alec
On Wednesday 09 January 2002 06:50 am, S.D.Mechveliani wrote: > Zhe Fu <[EMAIL PROTECTED]> writes > > > Is there any built-in functions in Haskell to implement > > diffential operation and partial diffential operation? > > Or can anyone give me some advices about how to implement them > > with Ha

differentiation. Reply

2002-01-09 Thread S.D.Mechveliani
Zhe Fu <[EMAIL PROTECTED]> writes > Is there any built-in functions in Haskell to implement > diffential operation and partial diffential operation? > Or can anyone give me some advices about how to implement them > with Haskell? Thanks. There are no differential operators in Haskell-98 sta