大侠帮忙,matlab解方程组 (5个方程,5个未知数)
大侠帮忙,matlab解方程组 (5个方程,5个未知数)
方程组如下:
1/lambda_s+1/lambda_i=1/1064;
n_p/1064-n_s/lambda_s-n_i/lambda_i=1/31500;
n_p^2=5.319725+(4.753469e-7)*297.9100+(0.09147285+(3.310965e-8)*297.9100)/(1064^2-0.3165008^2)+(100.2028+(2.760513e-5)*297.9100)/(1064^2-11.73639^2)-(1.497046e-2)*1064^2;
n_s^2=5.319725+(4.753469e-7)*297.9100+(0.09147285+(3.310965e-8)*297.9100)/(lambda_s^2-0.3165008^2)+(100.2028+(2.760513e-5)*297.9100)/(lambda_s^2-11.73639^2)-(1.497046e-2)*lambda_s^2;
n_i^2=5.319725+(4.753469e-7)*297.9100+(0.09147285+(3.310965e-8)*297.9100)/(lambda_i^2-0.3165008^2)+(100.2028+(2.760513e-5)*297.9100)/(lambda_i^2-11.73639^2)-(1.497046e-2)*lambda_i^2;
未知数分别为:lambda_s,lambda_i,n_s,n_i,n_p
希望大侠帮我写出matlab计算的程序.非常感谢!
A=solve('1/lambda_s+1/lambda_i-1/1064','n_p/1064-n_s/lambda_s-n_i/lambda_i-1/31500','n_p^2-(5.319725+(4.753469e-7)*297.9100+(0.09147285+(3.310965e-8)*297.9100)/(1064^2-0.3165008^2)+(100.2028+(2.760513e-5)*297.9100)/(1064^2-11.73639^2)-(1.497046e-2)*1064^2)','n_s^2-(5.319725+(4.753469e-7)*297.9100+(0.09147285+(3.310965e-8)*297.9100)/(lambda_s^2-0.3165008^2)+(100.2028+(2.760513e-5)*297.9100)/(lambda_s^2-11.73639^2)-(1.497046e-2)*lambda_s^2)','n_i^2-(5.319725+(4.753469e-7)*297.9100+(0.09147285+(3.310965e-8)*297.9100)/(lambda_i^2-0.3165008^2)+(100.2028+(2.760513e-5)*297.9100)/(lambda_i^2-11.73639^2)-(1.497046e-2)*lambda_i^2)')
连成一句,然后解是有72组
A.lambda_i是一个72维向量
即A.lambda_i(1),A.lambda_s(1),...构成一组解
把1换成2又是另一组解
运行了大概5-10分钟.您能把结果给我发过来吗?我发你私信把,注意查收