TABFUNC(1)                                                          TABFUNC(1)



NNAAMMEE
       tabfunc - convert table to functions for rcalc, etc.

SSYYNNOOPPSSIISS
       ttaabbffuunncc [ --ii ] func1 [func2 ..]

DDEESSCCRRIIPPTTIIOONN
       _T_a_b_f_u_n_c  reads  a table of numbers from the standard input and converts
       it to an expression suitable for _i_c_a_l_c_(_1_)_, _r_c_a_l_c_(_1_) and their  cousins.
       The  input must consist of a M x N matrix of real numbers, with exactly
       one row per line.  The number of columns must always  be  the  same  in
       each  line, separated by whitespace and/or commas, with no missing val-
       ues.  The first column is always the independent variable, whose  value
       indexes  all  of  the  other  elements.  This value does not need to be
       evenly spaced, but it must be either monotonically increasing or  mono-
       tonically decreasing.  (I.e. it cannot go up and then down, or down and
       then up.)  Maximum input line width is 4096 characters and the  maximum
       number  of data rows is 1024.  Input lines not beginning with a numeri-
       cal value will be silently ignored.

       The command-line arguments  given  to  _t_a_b_f_u_n_c  are  the  names  to  be
       assigned  to  each column.  _T_a_b_f_u_n_c then produces a single function for
       each column given.  If there are some columns which should be  skipped,
       the  dummy name "0" may be given instead of a valid identifier.  (It is
       not necessary to specify a dummy name for extra columns at the  end  of
       the matrix.)

       The  _-_i option causes _t_a_b_f_u_n_c to produce a description that will inter-
       polate values in between those given for the  independent  variable  on
       the input.

EEXXAAMMPPLLEE
       To  convert  a  small data table and feed it to rcalc for some calcula-
       tion:

         rcalc -e `tabfunc f1 f2 < table.dat` -f com.cal

AAUUTTHHOORR
       Greg Ward

SSEEEE AALLSSOO
       cnt(1), icalc(1), neaten(1), rcalc(1), rlam(1), total(1)



RADIANCE                            10/8/97                         TABFUNC(1)
