On Fri, Mar 28, 2008 at 3:20 AM, João Quinta da Fonseca <
[EMAIL PROTECTED]> wrote:
> I have a function that returns the dot product of two unit vectors.
> When I try to use arcos on the values returned I sometimes get the
> warning:
> "Warning: invalid value encountered in arccos", and the angle
David Cournapeau wrote:
> João Quinta da Fonseca wrote:
>
>> I have a function that returns the dot product of two unit vectors.
>> When I try to use arcos on the values returned I sometimes get the
>> warning:
>> "Warning: invalid value encountered in arccos", and the angle
>> returned is
João Quinta da Fonseca wrote:
> I have a function that returns the dot product of two unit vectors.
> When I try to use arcos on the values returned I sometimes get the
> warning:
> "Warning: invalid value encountered in arccos", and the angle
> returned is nan. I found out that this happens
I have a function that returns the dot product of two unit vectors.
When I try to use arcos on the values returned I sometimes get the
warning:
"Warning: invalid value encountered in arccos", and the angle
returned is nan. I found out that this happens for essentially co-
linear vectors, for