proteus
1.8.1
C/C++/Fortran libraries
|
Go to the documentation of this file.
9 #define D(x,y) printf(" "#x":%"#y, x)
10 #define Diag(x,y) if(diagon=='y') {fprintf(diag,"\n" #x"\t%"#y"\t", x); fflush(diag);}
11 #define Diag_Maple(x,y) fprintf(diag,"\n\# "#x" = %"#y";", x);
12 #define For(x,y,z) for((x)=(y);(x)<=(z);(x)++)
14 #define Write(x,y,z) fprintf(out,"\n" #x" %"#z" ",y)
15 #define print(y,z) Write( ,y,z)
17 #define nl(x) fprintf((x),"\n")
18 #define Heading(x,y) fprintf((x),"\n\n" #y "\n")
20 #define Asterisks(x) For(i,0,72)fprintf(x,"*")
21 #define c(i) putchar(i)
22 #define w(x) fprintf(results,#x)
23 #define pf(x) printf("%8.5g",x)
24 #define pd(x) printf("%ld",x)
26 #define Readtext(stream,x) fgets(x,400,stream); x[strlen(x)-1] = '\0'
27 #define Readtab(x) fscanf(in,"%[^\t]%*c",x);
29 #define Skip(stream) fgets(dummy,400,stream)
30 #define Read(stream,x,y) {fscanf(stream,"%"#y, &x);Skip(stream);}
32 #define endfile(x) if(feof(x)) break
34 #define pause(x) {printf("\nPaused: " x); fgetchar();}
37 #define OUT fprintf(out,
38 #define DIAG fprintf(diag,
39 #define SCREEN fprintf(stdout,
40 #define RESULTS fprintf(results,
44 #define sign(x,y) (fabs(x) * fabs(y)/y)
45 #define Sign(x) (x > 0. ? 1. : -1.)
47 #define iff(x,y) if(strcmp(x,#y)==0)
48 #define Screenfull(x,y) if((x) % ((y)+1) == (y)) pause
50 #define pi 3.14159265358979324
51 #define twopi 6.2831853071795864769
59 float **
matrix(
long ,
long ,
long ,
long);
64 double **
dmatrix(
long ,
long ,
long ,
long );
68 void free_dmatrix(
double **,
long ,
long ,
long ,
long );
70 #define max(a,b) (((a) > (b)) ? (a) : (b))
71 #define min(a,b) (((a) < (b)) ? (a) : (b))
char ** cmatrix(long, long, long, long)
unsigned long * lvector(long, long)
void free_dmatrix(double **, long, long, long, long)
double * dvector(long, long)
char * cvector(long, long)
float ** matrix(long, long, long, long)
float * vector(long, long)
int * ivector(long, long)
void free_ivector(int *, long, long)
int ** imatrix(long, long, long, long)
double ** dmatrix(long, long, long, long)
void free_dvector(double *, long, long)
void free_lvector(unsigned long *, long, long)