Re: [Haskell-cafe] What's NaN?

2008-05-28 Thread Lennart Augustsson
Try reading http://www.physics.ohio-state.edu/~dws/grouplinks/floating_point_math.pdf On Wed, May 28, 2008 at 8:04 AM, PR Stanley <[EMAIL PROTECTED]> wrote: > Hello > Why does sqrt (-16) return NaN? What is NaN? > Thanks > Paul > > ___ > Haskell-Cafe ma

Re: [Haskell-cafe] What's NaN?

2008-05-28 Thread Yann Golanski
Quoth PR Stanley on Wed, May 28, 2008 at 08:04:44 +0100 > Hello > Why does sqrt (-16) return NaN? What is NaN? NaN stands for Not a Number. See the complex library for how to have complex numbers. -- [EMAIL PROTECTED] -= H+ =- www.kierun.org PGP: 009D 7287 C4A7 FD4

[Haskell-cafe] What's NaN?

2008-05-28 Thread PR Stanley
Hello Why does sqrt (-16) return NaN? What is NaN? Thanks Paul ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe