NAME

Math - Perform mathematical operations on data


SYNOPSIS

Math pars >out.H [pars] Generic math routine

Rtoc <in.H >out.H [pars] Real to complex

Cmplx real.H imag.H >out.H [pars] Form complex from two files

Real <in.H >out.H [pars] Output just real part of complex file

Imag <in.H >out.H [pars] Output just imaginary part of complex file

Conj <in.H >out.H [pars] Form the conjugate of a complex number

Cabs <in.H >out.H [pars] Output absolute value of complex number

Cabs2 <in.H >out.H [pars] Output absolute value^2 of complex number

Pow <in.H >out.H pow= [pars] Data raised to power, sign preserved


INPUT PARAMETERS


Math

exp - char*

      [file1] Expression to perfom on history files
file[1..10] - sepfile

      [in]  Name of this history file
exp_real - char*

      [exp]   If complex function for the real values
exp_imag - char*

      [exp]   If complex function for the imaginary values


Pow

pow - float

      Power to raise data to


Generic parameters

maxsize - int

      [20]   Maximum amount of memory to consume
verb - int

      [0]    Whether or not to be verbose


DESCRIPTION

Performs mathematical operation of seplib files

Supported Functions (specified by @ at begining):

COS SIN TAN ACOS ASIN ATAN COSH SINH INT EXP LOG SQRT ABS SGN

Example 1: Add two real files Math file1=in file2=out2.H exp=file1+file2 >out.H

Example 2: Tpow (2.) on one file Math exp=``file1^2'' >out.H

Example 3: Multiply two complex files Math file1=a.H file2=b.H exp_real=``file1.re*file2.re-file1.im*file2.im'' \ exp_imag=``file1.re*file2.im+file1.im*file2.re''


SEE ALSO

the Clip manpage,the Add manpage


CATEGORY

util/vector