我想在數值上集成Matlab中的不連續函數。在Matlab積分中的不連續性
fun = @(z) 1./((z+1).^2+4) * 1./(exp(-z)-1);
q = integral(fun,-Inf,Inf,'Waypoints',[0])
有一個在z=0
不連續的,但我不知道如何使用Waypoints
選項來指定。我收到一條錯誤消息:
Warning: Reached the limit on the maximum number of intervals in use. Approximate bound on error is 7.4e-01. The integral may not exist, or it may be difficult to approximate numerically to the requested accuracy.
如何準確計算此積分?
我的表達式的Cauchy PV:類似於int(fun,z,-Inf,Inf,'PrincipalValue',true)''只是返回我的輸入。這是否意味着Cauchy PV和數值/分析解決方案不存在? –
對不起,這就是我所知道的這個話題。也許你應該在數學論壇中提出這個問題 – rst