News for hackers. Stuff that matters.
Re:Black-Scholes Option Pricing Model in Scheme by sqrt17 on Sunday July 11, 2010 @08:47AM (#1505402)
Where do the magic numbers (p, b1-b5) come from? Are these empirically found using curve fitting?

Also, wouldn't it be better to write things like

   (+ (- (* (exp (* (- r) t)) strike) s) call)))
in a more schemer-friendly way as

  (+ call (- s) (* strike (exp (- (* r t)))))
to avoid parenthesis syndrome?

(I was probably wrong to expect self-explanatory code, e.g. with docstrings, but IMO the readability could be improved)

There are no comments on this comment yet.