- 博客(1)
- 收藏
- 关注
原创 c语言 输入x、n,计算勒让德(Legendre)多项式的第 n 项。
#include<stdio.h>float b(float x,int n){float y;if(n0)return 1;else if(n1)return x;else if(n>1)y=(2n-1)/(float)nxb(x,n-1)-(n-1)/(float)nb(x,n-2);return y;}int main(){int n;flo...
2019-10-29 20:30:45
3605
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人