从负无穷加到正无穷的求和。

7 visualizaciones (últimos 30 días)
pnbgut
pnbgut el 22 de Mayo de 2023
Respondida: fxhegvu el 22 de Mayo de 2023
如下求和的程序该怎么实现(二维情况)
β是属于二维平面上所有整数点集,除去原点。
我自己写的函数如下:
function [Fp] = punctured(f,h)
sum=0;
for i=-10000:10000
for j=-10000:10000
if(i~=0||j~=0)
sum=sum+f(i*h,j*h);
end
end
end
Fp=(h^2)*sum;
end
这样计算精确度不高,而且计算用时挺长的, 应该怎么实现从负无穷加到正无穷呢?
f

Respuesta aceptada

fxhegvu
fxhegvu el 22 de Mayo de 2023
自己思考一下啊!无限的点!这是数学问题!
如果不收敛的话,算来干嘛?
收敛的话,要达到预想的精度看看需要计算多少个数据。

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!