Skip to content

Instantly share code, notes, and snippets.

View lkesteloot's full-sized avatar

Lawrence Kesteloot lkesteloot

View GitHub Profile

Keybase proof

I hereby claim:

  • I am lkesteloot on github.
  • I am lkesteloot (https://keybase.io/lkesteloot) on keybase.
  • I have a public key whose fingerprint is 7846 6B58 C1AA 799D 3BE7 812A 8F0F 31EC BF6B E765

To claim this, I am signing this object:

@lkesteloot
lkesteloot / near_integer.fs
Last active August 29, 2015 14:04
My first F# program! Generates simple expressions that evaluate to "near integers". These are numbers that are close to their nearest integer.
// Generates simple expressions that evaluate to "near integers". These are numbers
// that are close to their nearest integer. Inspired by:
//
// http://ssodelta.wordpress.com/2014/08/01/the-quest-for-near-integers/
// The numbers we calculate must be closer to their nearest integer than this
// value for them to be considered "near integers".
let eps = 0.0001
// An expressions is one of these subtypes.