namin / spots
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
olpc (author)
Wed Mar 18 16:31:04 -0700 2009
spots / errorEstimation
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
README.markdown | ||
| |
errorEstimation.fsx | ||
| |
errorEstimation.hs | ||
| |
errorEstimation.scala |
errorEstimation/README.markdown
Error Estimation
I translated the example Using F# Quotations for Error Estimation from Chapter 9 of Expert F# (Introducing Language-Oriented Programming) to Scala. I don't use anything as fancy as F# quotations. Instead, I simply create a new arithmetic type for estimates, and use implicit views to handily convert from the usual arithmetic types.
The example also translates nicely into Haskell by using the numeric type classes.

