已知其他变量数组,求解隐函数中未知变量的一组解。

1 次查看(过去 30 天)
tagyen
tagyen 2023-5-18
回答: qhajeun 2023-5-18
syms t C D Q v x y z;
C=[4,53,2,5];
D=12*ones(1,4);
Q=5*ones(1,4);
v=4*ones(1,4);
x=[43,5,1,4];
y=[43,53,2,1];
z=[1,3,5,7];
exp = C.*(2*sqrt(t.*D)).^3-Q.*exp(-((x-v.*t).^2+y.^2+z.^2))./(4*t.*D);
t = solve(exp,t)
结果t应该是1*4的矩阵,有四个结果,请问怎么运行出来?求聪明的人解答一下

采纳的回答

qhajeun
qhajeun 2023-5-18
1、solve得不到解析解。
2、用vpasolve分别求解。得到很小的数。第三、四为复数。
vpasolve(exp(1)) %1可以替换
ans =-0.000000000000000000000000000000010073727206734123164162385344547

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!