Next: Batch mode, Previous: Online help, Up: Command-line use
You have an interactive calculator with the -i option flag.
$ ./kspace_t -i 0 1 -1 0 0 0 1 -1 0 0 -1 -1 0 0 0.500000 0.500000
The programme waits silently for your input with the default level of verbosity. You enter 0 1 -1 0 0 <RET>, which is sum, k0, k1, l0, l1 of the Eschenburg space followed by <RET>. The third line consists of sum, k0, k1, l0, l1, c, r, s, p1, s1 and s2. Here c is the column (counting from 0) or row (counting from -1) in the matrix A[i,j] = k[i] - l[j] where Condition C is true.
To end the session, enter 0 0 0 0 0 <RET>, or <CTRL>-C.
The default precisions can be adjusted. The option -n 3 selects the MPFR arbitrary precision library. The option -p sets the precision in bits of the computations, and -P sets the number of digits printed.
$ ./kspace_t -i -n 3 -P 18 0 2 2 1 1 0 2 2 1 1 0 -9 -4 0 -3.2142857142857140e-1 3.2407407407407407e-1 ./kspace_t -i -n 3 -p 250 -P 75 0 2 2 1 1 0 2 2 1 1 0 -9 -4 0 -3.21428571428571428571428571428571428571428571428571428571428571428571428571e-1 3.24074074074074074074074074074074074074074074074074074074074074074074074074e-1
By default, input is read from stdin, so we can pipe input from files or other commands:
$ echo -e "0 -29 10 -28 6\n\ 0 -38 -29 -66 22\n\ 0 -54 9 -52 4\n\ 0 -17 -17 -18 -16\n\ 0 -6 -3 -8 0\n\ 0 -17 -14 -22 -8" | ./kspace_t -i -f 1 0 -29 10 -28 6 0 1 0 0 -0.500000 -0.250000 0 -38 -29 -66 22 2 1 0 0 0.464230 -0.249981 0 -54 9 -52 4 0 1 0 0 0.428511 -0.249976 0 -17 -17 -18 -16 0 1 0 0 0.392456 -0.250000 0 -6 -3 -8 0 0 1 0 0 0.357143 -0.250000 0 -17 -14 -22 -8 0 1 0 0 0.321430 -0.250000