Hi,

Am 06.03.2011 um 17:53 schrieb Ken Wesson:

> Ah, but what, pray tell, *is* "the native notation" of a domain? And
> why are you so sure it's almost never sexps? Sexps are a natural fit
> to at least one other domain I can think of: mathematics. And if only
> mathematicians used sexps it would be easy to generate things like
> automated proof-vetters and the like using lisp. :)

(defn f
  [x & {:keys [mu sigma] :or {mu 0 sigma 1}}]
  (frac (integral (fn [y] (exp Math/e (- (frac (square (- y mu))
                                               (* 2 (square sigma))))))
                  (- Math/infinity)
                  x)
        (* sigma (sqrt (* 2 Math/pi)))))

Hmm… No. I don't think so. The human brain is much better at „parsing“ visual 
patterns (as are mathematical formulae in the usual notation) than parsing this 
nightmare.

Sincerely
Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to