DATAMANIP (kdatamanip) functions
LIBRARY ROUTINE
lkcmplx - perform a unary complex function on data object
LIBRARY CALL
int lkcmplx(
kobject i,
kstring function,
kobject o)
INPUT
- i - the input object to be processed
- function - the function to be applied
OUTPUT
RETURN VALUE
TRUE (1) on success, FALSE (0) otherwise
DESCRIPTION
The following is the library routine that performs
a unary complex function on a data object. The routine takes
an input data object, a function name, and an output
data object in which to store the result of the
function.
The supported functions are:
.TS
center tab(:) ;
l l .
conj : Output is Complex Conjugate of the input
p2r : Output is Polar Coordinates to Rectangular
: Coordinates of the input
r2p : Output is Rectangular Coordinates to Polar
: Coordinates of the input
.TE
Therefore if lkcmplx() were called with:
lkcmplx(i, "p2r", o);
then the following would be performed:
o = polar_to_rect(i);
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$DATAMANIP/objects/library/kdatamanip/src/lkcmplx.c
SEE ALSO
kdatamanip(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.