如何求得方程组的数值解。

9 views (last 30 days)
各位前辈,小白求问
例如
a=2,b=1,
[x,y]=solve('a*x+1=y','b*x+2=y')
这样求得的X,Y的值时含a,b的表达式。如何求得x=1,y=3的数值解?
更复杂点的,
clc
clear all
syms I1 I2 ;
Vin=1;
L1=4e-6;
L2=L1;
C1=1e-9;
C2=C1;
T1=2*pi*sqrt(L1*C1);
T2=2*pi*sqrt(L2*C2);
[I1,I2]=solve('(Vin/L1)*(T2/2-T2/(2*pi)*acos(Vin/(L2*I2)*T2/(2*pi)))=I1*sqrt(1-(Vin*T1/(L1*I1*2*pi))^2)','(Vin/L2)*(T1/2-T1/(2*pi)*acos(Vin/(L1*I2)*T1/(2*pi)))=I2*sqrt(1-(Vin*T1/(L2*I1*2*pi))^2)')
这段包含acos的代码中能直接求得I1和I2的解吗?

Accepted Answer

新百胜注册【www.xbs3512.com】
数值解很容易吧:
i2: 0.0357626144377565
i1: 0.0357626144377565

More Answers (0)

Categories

Find more on 数学 in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!