Re: [q-lang-users] Strong examples of Q equational programming wanted
Brought to you by:
agraef
From: Greg B. <gr...@sl...> - 2006-09-28 22:22:32
|
Albert Graef wrote: > I'm afraid that you'll probably consider those toy examples, too, but > there are two examples for symbolic algebraic manipulations in the > distribution, i.e., stuff that you can't do like this in Haskell et al: > > examples/symbolic.q > > I know that these are basic examples, but try doing these in Scheme and > you'll surely appreciate Q's equational style. FWIW, here's what one solution to the symbolic differentiation problem looks like in Haskell... http://www.haskell.org/pipermail/haskell/2004-November/014939.html ...and my interpretations of something similar in Common Lisp and Ruby... http://sleepingsquirrel.org/lisp/sym_diff.lisp http://sleepingsquirrel.org/lisp/diff2.rb Greg Buchholz |