Skip to content

Instantly share code, notes, and snippets.

@sullivan-
Created March 25, 2013 22:13
/** A series of doubles useful for testing safe methods. */
val doubles = List[Double](
-2, // log, sqrt produce NaN
-1, // log, sqrt produce NaN
0, // log produces -Infinity, sqrt produces 0
0.5, // log produces negative
1, // log produces 0
2) // keeping things positive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment