数值分析
勿忘初心,方得始终。
这个作者很懒,什么都没留下…
展开
-
高斯消去解非齐次线性方程组
#include "stdio.h" #include "stdlib.h" #include "math.h" #include "string.h" // typedef struct // { // int (*Matrix) // /* data */ // }Equation_Typedef; double Solve_Matrix_1[][10]={ 4 , 2 , -3 , -1 , 2 , 1 ,.原创 2022-01-15 15:30:29 · 432 阅读 · 0 评论 -
最小二乘法
#include "stdio.h" #include "math.h" #include "stdlib.h" typedef struct { double *Wi; double *G_X; double *G_Fx; int G_Num; int S_Order; /* data */ } Data_Typedef; void Newton(void *Matrix,double *B,int Order,double *Res.原创 2022-01-15 15:27:32 · 205 阅读 · 0 评论 -
牛顿插值法、拉格朗日插值法
#include "stdio.h" #include "stdlib.h" //by wyz typedef struct { double *G_X; //给定X double *G_Fx; //给定Y int G_Nums; //给定参数个数 double *S_X; //需要求解X int S_Nums; //需要求解X个数 }Lar_Para_Typedef; //拉格朗日插值 void Lagrange(Lar_Par.原创 2022-01-15 15:26:32 · 288 阅读 · 0 评论