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
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
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.
_
> 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
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
___
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
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