This is pv.h in view mode; [Download] [Up]
#include <stdio.h>
#include <math.h>
#define FORWARD 1
#define INVERSE 0
typedef struct { float re ; float im ; } complex ;
#define CABS(x) hypot( (x).re, (x).im )
complex cadd(), csub(), cmult(), smult(), cdiv(), conjg(), csqrt() ;
extern complex zero ;
extern complex one ;
extern char *malloc(), *calloc() ;
extern float synt ;
extern float PI ;
extern float TWOPI ;
extern double atof() ;
/*
* memory allocation macro
*/
#define fvec( name, size )\
if ( ( name = (float *) calloc( size, sizeof(float) ) ) == NULL) {\
fprintf( stderr, "Insufficient memory\n" ) ;\
exit( -1 ) ;\
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.