Numerical+Recipe 源代码

汇集 Numerical+Recipe 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。

收录资源 500 份 全站深度检索
源码文件

#include int metrop(de,t) float de,t; { float ran3(); static long gljdum=1; return de < 0.0 || ran3(&gljdum) < exp(-…

源码文件

float erff(x) float x; { float gammp(); return x < 0.0 ? -gammp(0.5,x*x) : gammp(0.5,x*x); } /* (C) Copr. 1986-92 Numeri…

源码文件

void slvsml(u,rhs) double **rhs,**u; { void fill0(); double h=0.5; fill0(u,3); u[2][2] = -h*h*rhs[2][2]/4.0; } /* (C…

源码文件

float factln(n) int n; { float gammln(); void nrerror(); static float a[101]; if (n < 0) nrerror("Negative factorial i…

源码文件

void lop(out,u,n) double **out,**u; int n; { int i,j; double h,h2i; h=1.0/(n-1); h2i=1.0/(h*h); for (j=2;j

源码文件

extern unsigned long ija[]; extern double sa[]; void asolve(n,b,x,itrnsp) double b[],x[]; int itrnsp; unsigned long n; { …

源码文件

extern unsigned long ija[]; extern double sa[]; void atimes(n,x,r,itrnsp) double r[],x[]; int itrnsp; unsigned long n; { …

源码文件

void piksrt(n,arr) float arr[]; int n; { int i,j; float a; for (j=2;j 0 && arr[i] > a) { arr[i+1]=arr[i]; i--; …

源码文件

#include #include "nrutil.h" float elle(phi,ak) float ak,phi; { float rd(),rf(); float cc,q,s; s=sin(phi); cc=SQR…