Hi, I'm trying to solve an equation to get the answer of y. I used this code to help me find y, but got this error (Error in Untitled2 (line 22)
eqn = ((e1/(ex(y^2-e1*ko^2)^0.5))+i(sigma/(2*(pi)*w0*ex*eo)))*(y^2*(ex/ez)-ex*ko^2)^0.5 ==
-coth((d/2)*(y^2*(ex/ez)-ex*ko^2)^0.5);)
The original equation should look like the equation in the image, but changed some variables to simpler ones (eg: gamma is y here).
Note: coth here is the Hyperbolic Cotangent.
q= 1.6*10^-19;kb= 1.38*10^-23;T= 298;Vf= 10^6;hev= 6.582*10^-16;kbev= 8.6*10^-5;tio= 6*10^-12;h= 1.055*10^-34;w0= 113126*10^7;n0= 10^15;e1= 8.85*10^-12;eo= 8.85*10^-12;ex= 42.3;ez= 25;mio1= hev*Vf*(pi*n0)^.5;d= 80*10^-9;ko= 2*pi/1665*10^-9sigma= i*q^2*kb*T*(mio1/(kbev*T)+2*log(exp(-mio1/(kbev*T))+1))/(pi*h^2*(w0+i/tio));syms y eqn = ((e1/(ex(y^2-e1*ko^2)^0.5))+i(sigma/(2*(pi)*w0*ex*eo)))*(y^2*(ex/ez)-ex*ko^2)^0.5 == -coth((d/2)*(y^2*(ex/ez)-ex*ko^2)^0.5);soly = solve(eqn, y)
Best Answer