acos of a complex number

Status
Not open for further replies.

TLM

Member level 3
Joined
Jun 12, 2004
Messages
58
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
120
i'm looking for a source code or software which can calculate acos of a complex number
 

TLM said:
i'm looking for a source code or software which can calculate acos of a complex number


try google with 'complex acos' ???... lot of links to complex capable code and library for more or less all type of computer language.


from:

**broken link removed**

Code:
For input of a complex number, Z = X + iY, the complex arccosine is given by,

acos(Z) = acos(B) - i alog(A + sqrt(A^2 - 1)) if Y >= 0

acos(Z) = acos(B) + i alog(A + sqrt(A^2 - 1)) if Y < 0

where

A = 0.5 sqrt((X + 1)^2 + Y^2) + 0.5 sqrt((X - 1)^2 + Y^2)

B = 0.5 sqrt((X + 1)^2 + Y^2) - 0.5 sqrt((X - 1)^2 + Y^2)


seem not so hard to implement with real float math lib.


---

for looking projekt with 'real life' using complex math. look a free42-project

http://home.planet.nl/~demun000/thomas_projects/free42/

possible you can find usable code there


[/code]
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…