包含参数的函数积分问题
本帖最后由 牛小贱 于 2014-3-7 11:02 编辑程序: clear all;
syms x t
y=real(exp(-x.^2).*conj(exp(-(x+t).^2).*exp(-i.*2.*pi.*(192.31.*t+10.*x))));>>y=subs(y,t,-5);
int=int(y,x,-inf,inf)
Warning: Explicit integral could not be found.
int =
int(exp(2*pi*(10*conj(x) - 19231/20)*i)/(2*exp((conj(x) - 5)^2)*exp(x^2)) + (1/exp(2*pi*(10*x - 19231/20)*i))/(2*exp((x - 5)^2)*exp(conj(x)^2)), x = -Inf..Inf)
积分为什么没结果?
求指教啊。。 看提示:Explicit integral could not be found
函数积分无解析解 犟牛 发表于 2014-3-7 10:52
看提示:Explicit integral could not be found
函数积分无解析解
对函数积分完以后得到的不应该是对应的数值吗 为什么说是无解析解呢。 请看清楚,你用的是符号积分
包含复数的数值积分。。
想求这个积分:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARkAAAA3CAYAAAA4wT7lAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAlASURBVHhe7Z0xduI8EMeH7yyQgscJnBNAmlS06aAkTTrKdNtAGTraVGkWTgAnyKPA3MXfjGQb2ZZtyVi2Wea3z5tAjPHMSH+NZMnuBQgwDMM44r/wJ8MwjBNYZBiGcQqLDMMwTmGRYRjGKSwyDMM4hUWGYRinsMgwDOMUFhmGYZzCIsMwjFNYZBiGcUqtIrOf96DXw+15DRf8t34OX+P2vL6EezEM80jUJzL7OXwOfaClUMHyBIPeAN6PHqx8fI3vbeEN5vtw31bZw5yFryLsO8aeSiITZyy4RcJxOQ9huejLF+Mv2M0AvNUWorf6iyUMz+0XzMv6DK8khMEORu9vwHXFHPYdUwVrkSGBmWzCF8hmMsf2Lc0efjYeTF9ChekQ/cUCxuK3MbyiEDLmsO+YKtiJzGUNn4rASH6BEpT+0wk+w6btsv4E1Bj4fqOxGQm9d3rqkuigEMIyzrTuhcv62XlXpfw7uuG7xHli2Xz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l6YQ3x1Kdzich2Pw8pB5GtcU4PKJdrQo//wj+XQPSUwF6M+Nx6o/vu03CG07P/nlX3BtAd1awanZafHvu7qfjJdg5b9s8AwbdJfHDo/uG4uMv0nGIW/MgzDmMKZDMMwTrEQGbq3KP1s8yZGDMPcG5zJMAzjFAuRkTc4rkJ882UxEUt5VCdurh+5yjBMu1hlMgPRXxqB1Y3U93Nxb1W6Uh4sTzDoDeD96MHKl9POt/BW8hgHhmHuGfvukuXNlS/n4XUdBa3/meEhlDv+9xdLGLb1+AOGYZxTKDI00Ud2a+bxugRQHnZl/OycGLrjuQdT69udMwxzrxTM+N3DPHpinIL1bF/sLj2fP8TTFsXsxG+6PjWFbfgwLXrvz9OBJ7UxzD9KQSYTXbJW8FbwYSsG2EWicRfKbsQK0e0BDmJsRmY8iefeMAzzz1G8domW5k/CXAYFxtc8ypNhGKYI8wWSDMMwFbC/usQwDGMBiwzDME5hkWEYxiksMgzDOIVFhmEYhwD8DxRKG42qBmIUAAAAAElFTkSuQmCCt是参数,取对应一组值。
程序:
clear all;
syms x t
>> y=exp(-x.^2).*conj(exp(-(x+t).^2).*exp(-i.*2.*pi.*(192.31.*t+10.*x)));
>> a=-5:1:5;
>> y=subs(y,t,a);
>> int=int(y,x,-inf,inf);
Warning: Explicit integral could not be found.
求指教。。
实际想求的是这样一个积分(下面图片中的函数)
t取对应一组值。
程序clear all;
syms x t
>> y=exp(-x.^2).*conj(exp(-(x+t).^2).*exp(-i.*2.*pi.*(192.31.*t+10.*x)));
>> a=-5:1:5;
>> y=subs(y,t,a);
>> int=int(y,x,-inf,inf);
Warning: Explicit integral could not be found.
>> in=quad(y,x,-inf,inf);
??? Error using ==> fcnchk at 108
If FUN is a MATLAB object, it must have an feval method.
Error in ==> quad at 66
f = fcnchk(funfcn);
用符号积分和数值积分同样有错误。。
犟牛 发表于 2014-3-7 11:19
请看清楚,你用的是符号积分
实际想求的是这样一个积分(下面图片中的函数)
t取对应一组值。
程序clear all;
syms x t
>> y=exp(-x.^2).*conj(exp(-(x+t).^2).*exp(-i.*2.*pi.*(192.31.*t+10.*x)));
>> a=-5:1:5;
>> y=subs(y,t,a);
>> int=int(y,x,-inf,inf);
Warning: Explicit integral could not be found.
>> in=quad(y,x,-inf,inf);
??? Error using ==> fcnchk at 108
If FUN is a MATLAB object, it must have an feval method.
Error in ==> quad at 66
f = fcnchk(funfcn);
用符号积分和数值积分同样有错误。。 shuill 发表于 2014-3-7 11:46
实际想求的是这样一个积分(下面图片中的函数)
t取对应一组值。
程序clear all;
数值积分错误那是你的命令使用有问题
quad中的被积函数应该以函数句柄的形式给出
建议好好看一下相关帮助吧,参照帮助里的例子来写,不难
页:
[1]