![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
实用数学算法(C语言)
风尘游侠CHN
这个作者很懒,什么都没留下…
展开
-
高斯消去法
#include <stdio.h> #include <math.h> void main() { float a[10][10], b[10], m[10][10], x[10], sum; int i, j, k, n; printf("the top exp:"); scanf("%d", &n); printf("\n"); for (i = 0; i < n; i++) { for原创 2021-10-20 16:43:11 · 147 阅读 · 0 评论 -
复合辛普森法
#include <stdio.h> #include <math.h> #define f(x) (x) / (4 + (x) * (x)) void main() { int k, n; float a, b, h, s, x; scanf("%f,%f,%d", &a, &b, &n); h = (b - a) / (2 * n); x = a; s = f(x) - f(b); k = 1;原创 2021-10-20 16:33:41 · 206 阅读 · 0 评论