matlab解如下方程组clear allsyms L n theta_t1 theta_t2S=solve(sin(40*pi/180)==n*sin(theta_t1),sin(80*pi/180)==n*sin(theta_t2),L*tan(theta_t1)==0.6,L*tan(theta_t2)==1.69)clear allsyms L n theta_t1 theta_t2S=solve(sin(40*pi/180)==n*sin(theta_t1),s
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 01:46:35
matlab解如下方程组clear allsyms L n theta_t1 theta_t2S=solve(sin(40*pi/180)==n*sin(theta_t1),sin(80*pi/180)==n*sin(theta_t2),L*tan(theta_t1)==0.6,L*tan(theta_t2)==1.69)clear allsyms L n theta_t1 theta_t2S=solve(sin(40*pi/180)==n*sin(theta_t1),s
matlab解如下方程组
clear
all
syms
L n theta_t1 theta_t2
S=solve(sin(40*pi/180)==n*sin(theta_t1),sin(80*pi/180)==n*sin(theta_t2),L*tan(theta_t1)==0.6,L*tan(theta_t2)==1.69)
clear all
syms L n theta_t1 theta_t2
S=solve(sin(40*pi/180)==n*sin(theta_t1),sin(80*pi/180)==n*sin(theta_t2),L*tan(theta_t1)==0.6,L*tan(theta_t2)==1.69)
matlab解如下方程组clear allsyms L n theta_t1 theta_t2S=solve(sin(40*pi/180)==n*sin(theta_t1),sin(80*pi/180)==n*sin(theta_t2),L*tan(theta_t1)==0.6,L*tan(theta_t2)==1.69)clear allsyms L n theta_t1 theta_t2S=solve(sin(40*pi/180)==n*sin(theta_t1),s
你的solve用错了
clear all
syms L n theta_t1 theta_t2
S=solve('sin(40*pi/180)=n*sin(theta_t1)','sin(80*pi/180)=n*sin(theta_t2)','L*tan(theta_t1)=0.6','L*tan(theta_t2)=1.69')
结果如下:
L=
-.82995695967047036311740434635019
.82995695967047036311740434635019
-.82995695967047036311740434635019
.82995695967047036311740434635019
n=
-1.0971562911942192850884002635904
-1.0971562911942192850884002635904
1.0971562911942192850884002635904
1.0971562911942192850884002635904
theta_t1=
-.62594941505400756528497719561430
-2.5156432385357856731776661876652
2.5156432385357856731776661876652
.62594941505400756528497719561430
theta_t2=
-1.1142950066482793542827685922890
-2.0272976469415138841798747909905
2.0272976469415138841798747909905
1.1142950066482793542827685922890
四组解