Next Previous Up Contents
Next: Usage
Up: Command Reference
Previous: Command Reference


A.1 calc: Calculator

calc is a very simple utility for evaluating expressions. It uses the same expression evaluator as is used in tpipe and the other generic table tasks for things like creating new columns, so it can be used as a quick test to see what expressions work, or in order to evaluate expressions using the various algebraic functions documented in Section 7.4. Since no table is involved, you can't refer to column names in the expressions. It takes one parameter, the expression to evaluate, and writes the result to the screen.


Next Previous Up Contents
Next: Usage
Up: Command Reference
Previous: Command Reference

STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note 256
STILTS web page: http://www.starlink.ac.uk/stilts/
Author email: m.b.taylor@bristol.ac.uk