How to calculate acos with a complex number?
时间:03-31
整理:3721RD
点击:
hi,
I am working on antennas with metamaterials using FDTD method.
So to simulate metamaterials with FDTD i need fristly to calculate the permittivity and the permeabilty using retrieval method. so I have used the smith article namely '' Electromagnetic parameters retieval from inhomogeneous metamaterials'' published in March 2005. However, I have found a problem to calculate refraction index n using the equation given below because the b is a complex number, so how i can calculate acos with a complex number?
n=(1/kd)*acos(b)
with b= (1/2*S21)*(1-S11*S11+S21*S21)
I am working on antennas with metamaterials using FDTD method.
So to simulate metamaterials with FDTD i need fristly to calculate the permittivity and the permeabilty using retrieval method. so I have used the smith article namely '' Electromagnetic parameters retieval from inhomogeneous metamaterials'' published in March 2005. However, I have found a problem to calculate refraction index n using the equation given below because the b is a complex number, so how i can calculate acos with a complex number?
n=(1/kd)*acos(b)
with b= (1/2*S21)*(1-S11*S11+S21*S21)
tink about the COS as an exponential form:
COS (x) = [exp(jx)+exp(-jx)]/2
Then if x is complex (x=a+jb) you get:
COS(x)= [exp(ja)*exp(-b)+exp(-ja)*exp(b)]/2
clearly a parallel reasoning holds for the SIN function.
Then if you want ACOS you need to solve the equation:
ACOS(y)=x => COS(x)=y =>
[exp(ja)*exp(-b)+exp(-ja)*exp(b)]/2 = y= u+jv
where y=u+jv.
Concluding:
u= 1/2*{exp(-b)*cos(a)+exp(b)*cos(a)}
v= 1/2*{exp(-b)*sin(a)-exp(b)*sin(a)}
check the equations...
thanks,
but i want to calculate a and b not u and V.
You can use Matlab to find those values.
- How to correctly calculate coil's field strength?
- How to calculate radiation from pcb edge with magnetic current ?
- HFSS: Calculate Electric Field Inside the Substrate
- Calculate the raduis of circulair patch antenna
- Calculate input impedance with caviy model
- How to Calculate Transmission line feed Length,width and gap for a rectangular patch