微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 电磁仿真讨论 > How to calculate acos with a complex number?

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)

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.

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top