matlab二元方程组,用matlab解一个二元方程组,会的进,得到解再回答

共回答了20个问题采纳率:75%

clear,clc

format long

f=@(x)[tan(4*3.14*20000*0.03)+2*3.14*20000/x(1)*tan(x(1)*x(2));

sqrt(4*3.14^2*20000^2*7840/2.1e11-log(2)*log(2)/x(2)^2)-x(1)];

[s,v]=fsolve(f,[24;0.1])

Equation solved.

fsolve completed because the vector of function values is near zero

as measured by the default value of the function tolerance,and

the problem appears regular as measured by the gradient.

s =

23.698316600893644

0.132572516762675

v =

1.0e-011 *

0.327282645429250

0

所以就是k1=23.698316600893644,x=0.132572516762675

换用不同的初值会有不同的结果

或者直接用solve

clear,clc

s = solve('tan(4*3.14*20000*0.03)+2*3.14*20000/k1*tan(k1*x)=0',...'k1=sqrt(4*3.14^2*20000^2*7840/2.1e11-log(2)*log(2)/x^2)');

disp('k1='); disp(s.k1); disp('x='); disp(s.x);

1年前

5

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值