1+1/4+1/9+1/16+…1/N^2=?(求和这样的数列求和有公式吗)我要求和后的公式,有谁知道吗?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/04 17:05:23
1+1/4+1/9+1/16+…1/N^2=?(求和这样的数列求和有公式吗)我要求和后的公式,有谁知道吗?

1+1/4+1/9+1/16+…1/N^2=?(求和这样的数列求和有公式吗)我要求和后的公式,有谁知道吗?
1+1/4+1/9+1/16+…1/N^2=?(求和这样的数列求和有公式吗)
我要求和后的公式,有谁知道吗?

1+1/4+1/9+1/16+…1/N^2=?(求和这样的数列求和有公式吗)我要求和后的公式,有谁知道吗?
f=0
for i=1 to n
f=f+1/(i^2)
next i

错位相减。

VB:
Dim i%,n%,f as Double
n=Val(Inputbox("输入n"))
f=0
for i=1 to n
f=f+1/(i^2)
next i
Msgbox(f)
VC:
#include
main(){
int a,b;double c;
scanf(...

全部展开

VB:
Dim i%,n%,f as Double
n=Val(Inputbox("输入n"))
f=0
for i=1 to n
f=f+1/(i^2)
next i
Msgbox(f)
VC:
#include
main(){
int a,b;double c;
scanf("%d",&a);
for(b=0;b>=n,b++){
c=c+1/b/b;
}
printf("%f",c);
scanf("%f,c);//查看结果
}
如果你看不懂……Sorry,我无能为力

收起