File: utils.c

package info (click to toggle)
schroedinger 1.0.11-2.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,480 kB
  • ctags: 6,139
  • sloc: ansic: 97,380; sh: 11,238; xml: 6,509; makefile: 387
file content (32 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (2)
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

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>

#include <schroedinger/schro.h>
#include <schroedinger/schrounpack.h>

#include <schroedinger/schrotables.c>

int
main (int argc, char *argv[])
{
  int i;
  double x;
  int j,k;

  schro_init();

  for(i=0;i<100;i++){
    x = i*1;
    j = schro_utils_multiplier_to_quant_index (x);
    k = schro_table_quant[j];
    printf("%g %d %d\n", x, j, k);
  }

  exit(0);
}