56 |
|
option may be followed immediately by a 'd' or an 'f' and an optional |
57 |
|
count, which defaults to 1, indicating the number of double or float |
58 |
|
binary values to read per record on the input file. |
59 |
+ |
If the input is byte-swapped, the |
60 |
+ |
.I \-iD |
61 |
+ |
or |
62 |
+ |
.I \-iF |
63 |
+ |
options may be substituted. |
64 |
|
If binary input is specified, no format string or file is needed. |
65 |
|
.PP |
66 |
|
A |
73 |
|
.I \-of |
74 |
|
options do not require a count, as this will be determined by the |
75 |
|
number of output channels in the given expressions. |
76 |
+ |
If byte-swapped output is desired, the |
77 |
+ |
.I \-oD |
78 |
+ |
or |
79 |
+ |
.I \-oF |
80 |
+ |
options may be substituted. |
81 |
|
.PP |
82 |
|
The |
83 |
|
.I \-p |
293 |
|
inverse trigonometric functions. |
294 |
|
.TP |
295 |
|
.BR "atan2(y, x)" |
296 |
< |
inverse tangent of y/x (range -pi to pi). |
296 |
> |
inverse tangent of y/x (range \-pi to pi). |
297 |
|
.SH EXAMPLE |
298 |
|
To print the square root of column two in column one, |
299 |
|
and column one times column three in column two: |
300 |
|
.IP "" .2i |
301 |
< |
rcalc -e '$1=sqrt($2);$2=$1*$3' inputfile > outputfile |
301 |
> |
rcalc \-e '$1=sqrt($2);$2=$1*$3' inputfile > outputfile |
302 |
|
.SH AUTHOR |
303 |
|
Greg Ward |
304 |
|
.SH BUGS |