acos(1.000000) = -1.#IND00 ???

O

Olumide

Hi -

I'm computing the angle between pairs of unit vectors as the arc
cosine of the dot product of each pair of vectors. Occasionally, when
the dot product is 1.000000 (output to 6 decimal places) I get the
value -1.#IND00 ! What does this mean?

Thanks,

- Olumide


PS: if it helps, I'm using Visual Studio .NET 2003 on a Windows XP
machine.
 
G

Guest

Hi -

I'm computing the angle between pairs of unit vectors as the arc
cosine of the dot product of each pair of vectors. Occasionally, when
the dot product is 1.000000 (output to 6 decimal places) I get the
value -1.#IND00 ! What does this mean?

It probably means that one of the decimals that you have not shown is
greater than 1. acos is only defined for values in the range -1 to 1
inclusive, for other values of input a domain error occurs and it is up
to the implementation what will be returned. In VC++ this produces a so
called quiet NaN (Not A Number) which looks like -1.#IND when printed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,199
Messages
2,571,045
Members
47,643
Latest member
ashutoshjha_1101

Latest Threads

Top