matlab中怎样求不定积分,’int‘求不出,用qual怎么求? 5
a=1;gy=quadl(@(x)'cos(a*x.*y)./(1+x.^2)',0,inf)这样求,显示‘’Theintegrandfunctionmustreturn...
a=1;
gy=quadl(@(x)'cos(a*x.*y)./(1+x.^2)',0,inf)这样求,显示
‘’The integrand function must return an output vector of the same length as the
input vector‘’. 展开
gy=quadl(@(x)'cos(a*x.*y)./(1+x.^2)',0,inf)这样求,显示
‘’The integrand function must return an output vector of the same length as the
input vector‘’. 展开
2个回答
展开全部
quadl只能求数值积分啊
更多追问追答
追问
那怎么求呢?int也不行啊,求解答
追答
手算啊,MATLAB也不是万能的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
>> a=1;y=1;
gy=quadl(@(x)cos(a*x.*y)./(1+x.^2),'x',0,inf)
gy =
-3.1343
gy=quadl(@(x)cos(a*x.*y)./(1+x.^2),'x',0,inf)
gy =
-3.1343
更多追问追答
追问
求的式子中有y的,不能另其为1唉,不过谢谢你
追答
>> syms a x y
gy=int(cos(a*x*y)/(1+x^2),'x')
Warning: Explicit integral could not be found.
gy =
int(cos(a*x*y)/(x^2 + 1), x)
>> gy=int(cos(x*y)/(1+x^2),'x')
Warning: Explicit integral could not be found.
gy =
int(cos(x*y)/(x^2 + 1), x)
>> gy=int(cos(x*y)/(1+x^2),'x',1,inf)
Warning: Explicit integral could not be found.
gy =
int(cos(x*y)/(x^2 + 1), x == 1..Inf)
说明:两个参数时,无解。只能将y用已知数代入,才能有解。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询