题目
用matlab解一个二元方程组,会的进,得到解再回答
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)
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)
提问时间:2021-03-21
答案
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);
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);
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点
- 1求 宾语从句这类的知识 考试有个题目
- 2走遍天下书为侣 的小练笔.也仿这个写 也写书 写书的好处...格式要一样和走遍天下书为侣一样
- 3宇宙的奥秘是无穷的,你能举出人类探索宇宙所得的成果吗?
- 4如图,在梯形ABCD中,AD∥BC,AB∥DE,AF∥DC,E、F两点在边BC上,且四边形AEFD是平行四边形. (1)AD与BC有何等量关系,请说明理由; (2)当AB=DC时,求证:平行四边形AE
- 5作文要写《说几句爱山的孩子气的话》的素材怎样找?快
- 6硫在氧气中燃烧为什么能产生蓝紫色的火焰?
- 7求出2004的2005次方,2007的2008次方和2008的2007的末尾数字.
- 8若经过点P(-1,0)的直线与圆x2+y2+4x-2y+3=0相切,则此直线在y轴上的截距是 _.
- 9用1到9九个自然数依次连续不断的排列成一个一百位数,如123……89123……89……,这个数是不是3的?
- 1092度3秒-55度20分44秒等于多少?