From tlumley at u.washington.edu  Wed Mar 16 00:08:25 2005
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Wed Mar 16 00:08:42 2005
Subject: [Rd] Trigonometric functions (PR#7728)
In-Reply-To: <20050315230023.8F5678571@slim.kubism.ku.dk>
References: <20050315230023.8F5678571@slim.kubism.ku.dk>
Message-ID: <Pine.A41.4.61b.0503151507080.383546@homer03.u.washington.edu>

On Wed, 16 Mar 2005 s.ruiter@ru.nl wrote:

>
> Why does
>
> asin(1)
> result in:
> 1.570796

Because the arcsin of 1 is pi/2 radians.

> and
>
> x<-sqrt(2)
> asin(x^2-1)
> result in:
> NaN

Because you can't take the arcsin of 2^2-1=3.

 	-thomas


[Rd] Trigonometric functions (PR#7728)
Thomas Lumley