Download s s
Transcript
Dec 12, 1983 gau8s.c Page 1 #include <math. h> double gauss (nmax ,alpha ,x ) /* perform the function n double nmax, alpha ; int x; nmax(-(x*x)/(alpha*alpha)) */ I double n,nl; nl = r/alpha; n = nmax*erp(- nt*nt return( n) ; 1; I Dec 12, 1983 init.c Page 1 #include "defs" init() /* initialize the array to one rectangle of maximum dimensions */ I extern e t r ~ c ttnode *home; extern int LOUER,UPPER,YLIMIT; Is truc t tnoL? *talloc ( 1: - borne = talloc(); /* create banre upper left corner of grid */ /* the empty rectangle is set to the maximum dimension of the grid */ ,/* LOWER d UPPER are t h o min and mar lateral dimensions of the grid */ /* YLIHIT is the max vertical dimension */ home->nwx = LOUER; home->nwy = YLIMIT; home->sex UPPER; home->sey * YLIMIT; home->type = 0; type 0 ie air */ home->doping 9 0; /* pointer are null no h i e s An those directions */ home->north = 0 ; home->mouth = 0; home-heat = 0; home->eaat = 0; -- - 1