![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
侑伤丶
不平庸
展开
-
C语言 计算矩阵的1范数,2范数,无穷范数
#include<stdio.h>#include<math.h>double Norminf(double x[],int n,int m);double Norm1(double x[],int n,int m);double NormF(double x[],int n,int m);int main(){ double a,b,c,d,e,f; double x[6]={1,3,-2,-2,0,5},y[6]={4,3,1,-2,0,8}; ...原创 2022-04-05 16:04:00 · 2190 阅读 · 0 评论 -
C语言 计算向量的1范数,2范数,无穷范数
include<stdio.h>#include<math.h>double VecNorm1(double x[],int n);double VecNorm2(double x[],int n);double VecNorminf(double x[],int n);int main(){ int i,j; double a,b,c,d,e,f; double x[3]={1,3,2},y[6]={4,3,1,-2,0,8}; i=3;...原创 2022-04-05 16:02:46 · 1875 阅读 · 0 评论 -
C语言 实现n元函数的主列消元法
#include <stdio.h>#define n 7float input (float A[n][n+1]);float move (float A[n][n+1],int);float gauss(float A[n][n+1],float *);int main(void){ int i,j; float A[n][n+1]; float x[n]={'\0'}; input (A); gauss(A,x);//在gauss中调用move函数进行主...原创 2021-06-18 23:25:06 · 140 阅读 · 0 评论