help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with acos


From: zampala
Subject: problem with acos
Date: Tue, 28 Jul 2009 05:37:20 -0700 (PDT)

Hi,

I need to calculate the inverse cosine of this matrix (2x2, complex values):

P =

9.9422e-01 - 0.0000e+00i 8.9732e+08 - 0.0000e+00i
-1.0151e+00 + 0.0000e+00i 3.0910e+05 - 0.0000e+00i

octave:97> acos(P)
ans =

0.10755 - 0.00000i NaN + Infi
3.14159 - 0.17368i 0.00000 + 13.33457i

octave:98> acos(P(1,2))
ans = NaN + Infi
octave:99> acos(8.9732e+8 - 0.0000e+00i)
ans = 0.00000 - 21.30807i
octave:100>

Why is it giving NaN and Inf ?
Why is it not giving NaN and Inf when I calculate the acos manually?

thanks in advance

mirko
-- 
View this message in context: 
http://www.nabble.com/problem-with-acos-tp24698044p24698044.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]