Haskell 98 - Standard Prelude - Floating Class

Brian Boutel brian@boutel.co.nz
Wed, 24 Oct 2001 18:20:04 +1300


roconnor@math.berkeley.edu wrote:
> 
> 
> How about making default method for asin
> 
> asin x = atan(x/sqrt(1-x^2))
> 
> Can't be worse than the default for (**) ;-)
> 

Oh, it can. As well as its own problems when x is close to 1, it
inherits, through the default definition of sqrt, the problems of (**)
when x is near 0.

--brian