Previous: deriv
Up: Manual Pages
Next: envelope
Previous Page: deriv
Next Page: envelope
The Data Set Calculator is one of the most powerful programs in the Toolkit, being something like a command-line spreadsheet. It allows use of an arbitrary number of input data files to create an arbitrary number of output data files using user-specified equations for the new data. The input files should have the same number of data points; excess points will be ignored. All operations are carried out on the ordinates. The abscissa values are assumed to be identical, and are taken from the last input file.
dsc makes use of the Reverse-Polish-Notation expression evaluator from the program rpn.
dsc -variable=y1,input1 -variable=y2,input2 -result=sum,output1,"y1 y2 +" -test="y1 y2 >"
dsc -variable=y,input -independent_variable="x" -result=yJ0,input_times_J0,"x 0 JN y *" -result=yJ1,input_times_J1,"x 1 JN y *"
dsc -variable=y,input -result=y2,input-squared,"y y *" -result=y3,input-cubed,"y2 y *" -result=y4,input-pow4,"y3 y *"
borland@aps.anl.gov