[go: up one dir, main page]

Menu

[r377]: / gr_scat / src / scatter2.cc  Maximize  Restore  History

Download this file

36 lines (24 with data), 645 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "ndisc.h"
#define DTOR PI/180
int main(int argc, char *argv[]) {
Ndisc *system;
FILE *fint; //file for intermediate results
float b; //initial conditions
char noise_type; //noise type, 'n'=none, 'g'=gauss., 'w'=white
char std; //noise standard deviation
float t; //time delay
long n; //number of deflections
if (argc < 2) {
printf("scatter b\n");
printf("\n");
printf("where:\n");
printf(" b = impact parameter\n");
return 1;
}
system=new Ndisc(0);
sscanf(argv[1], "%lf", &b);
system->scatter_b_corr(b, &t, &n);
printf("%f %d\n", t, n);
delete system;
return 0;
}