Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Rizwan
Posts:
1
Registered:
11/4/13


How can I solve transcendental equation
Posted:
Nov 4, 2013 9:14 AM


Hello,
I am trying to solve transcendental equation which is given in code and want to find the value of beta but I am getting error and don't know how to correct it. Please someone correct it for me.
Thanks.
Code:
n1=1.77; n2=1.45; d=1e6; lambda = 1e6; ko = 2*pi/lambda; A=(ko*n1)^2; B=(ko*n2)^2; s = 'sqrt(Abeta^2)*(d/2)*tan(sqrt(Abeta^2)*d/2)=sqrt(beta^2B)*(d/2)'; solve (s);
Error:
Error using solve>processString (line 337) ' sqrt(Abeta^2)*(d/2)*tan(sqrt(Abeta^2)*d/2)=sqrt(beta^2B)*(d/2) ' is not a valid expression or equation.
Error in solve>getEqns (line 267) eqns = processString(eqns, v, vc);
Error in solve (line 150) [eqns,vars,options] = getEqns(varargin{:});
Error in transcendetal (line 9) solve (s);



