摘要:
#include<iostream>#include<math.h> #include <iomanip>#include <fstream>using namespace std;double norm2(double *cvel1,double *cvel2,int N){ double c=0; for(int i=0;i<N;i++) c=c+(cvel1[i]-cvel2[i])*(cvel1[i]-cvel2[i]); c=sqrt(c); return c;}int main(){ int N=10; int M=10; do 阅读全文