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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
#!/bin/bash
NNF=`./nnf $1`
NAP=`./nap $1`
N=`expr $NNF '*' 64`
N=`expr $N + 12`
NQ=`factor $1 | cut -d " " -f 2- | fmt -1 | uniq | wc -l`
echo "N = "$1":"
echo ${NNF}" newforms, "${NQ}" bad primes, "${NAP}" ap"
echo
od -N ${N} -v -t dI newforms/x$1 | awk \
'BEGIN{getline;n1=$2;naq=$3;nap=$4;npl=NF;\
#printf("#newforms=\t%d\n",n1);\
#printf("#aq= \t%d\n",naq,nap);\
#printf("#ap= \t%d\n\n",nap);\
k=5;\
if(k>npl) {getline; k=2;}; \
printf("sfe: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("ap0: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("np0: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("dp0: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("lplus: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("mplus: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("lminus: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("mminus: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("a: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("b: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("c: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("d: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("dotplus: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("dotminus: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("type: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
printf("degphi: \t");
for(j=0; j<n1; j++) \
{if(k>npl) {getline; k=2;}; printf("%d\t",$k);k++;};\
printf("\n");\
}'
|