Re: [Haskell-cafe] Partial Derivatives

2006-05-08 Thread Greg Buchholz
Gerhard Navratil wrote: > I need a library that provides partial derivatives for functions. The > solution I came up with is based on a datatype using reversed polish > notation to store the function: I like Oleg Kiselyov's "Typeful symbolic differentiation of compiled functions"... http:

Re: [Haskell-cafe] Partial Derivatives

2006-05-08 Thread Arjen van Weelden
Hi, Jerzy Karczmarczuk has a nice paper about "Functional Differentiation of Computer Programs", see http://users.info.unicaen.fr/~karczma/arpap/ regards, Arjen Gerhard Navratil wrote: Hi, I need a library that provides partial derivatives for functions. The solution I came up with

Re: [Haskell-cafe] Partial Derivatives

2006-05-08 Thread Twan van Laarhoven
Gerhard Navratil wrote: > I need a library that provides partial derivatives for functions. The > solution I came up with is based on a datatype using reversed polish > notation to store the function: > > <> > > The solution works but is not very elegant. The complete module is > appended to the m

[Haskell-cafe] Partial Derivatives

2006-05-08 Thread Gerhard Navratil
Hi, I need a library that provides partial derivatives for functions. The solution I came up with is based on a datatype using reversed polish notation to store the function: Type VarName = String data Fkt a = Val a | Var VarName | Add (FktElem a) (FktElem a) |