#define SWAP(a,b) {dum=(a);(a)=(b);(b)=dum;} void banbks(a,n,m1,m2,al,indx,b) float **a,**al,b[]; int m1,m2; unsigned long i…
Numerical+Recipe 源代码
汇集 Numerical+Recipe 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
#include "nrutil.h" void trnspt(iorder,ncity,n) int iorder[],n[],ncity; { int m1,m2,m3,nn,j,jj,*jorder; jorder=ivector(…
#include "nrutil.h" void banmul(a,n,m1,m2,x,b) float **a,b[],x[]; int m1,m2; unsigned long n; { unsigned long i,j,k,tmplo…
float erffc(x) float x; { float gammp(),gammq(); return x < 0.0 ? 1.0+gammp(0.5,x*x) : gammq(0.5,x*x); } /* (C) Copr. 19…
#include double anorm2(a,n) double **a; int n; { int i,j; double sum=0.0; for (j=1;j
#include "nrutil.h" void polcoe(x,y,n,cof) float cof[],x[],y[]; int n; { int k,j,i; float phi,ff,b,*s; s=vector(0,n)…
#include "nrutil.h" void bcuint(y,y1,y2,y12,x1l,x1u,x2l,x2u,x1,x2,ansy,ansy1,ansy2) float *ansy,*ansy1,*ansy2,x1,x1l,x1u,x2,x2…
#define EPS 1.0e-6 void simp2(a,n,l2,nl2,ip,kp,q1) float **a,*q1; int *ip,kp,l2[],n,nl2; { int k,ii,i; float qp,q0,q; …
int decchk(string,n,ch) char *ch,string[]; int n; { char c; int j,k=0,m=0; static int ip[10][8]={0,1,5,8,9,4,2,7,1,5, 8,9…
#include "nrutil.h" void svbksb(u,w,v,m,n,b,x) float **u,**v,b[],w[],x[]; int m,n; { int jj,j,i; float s,*tmp; tmp=v…