Behaviour
It executes a scalar mathematical operation on each element of the measure array.
Parameters
input measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’ ‘oph_short’; ‘oph_byte’ ‘oph_complex_double’; ‘oph_complex_float’; ‘oph_complex_int’; ‘oph_complex_long’.
output measure type : Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’ ‘oph_complex_double’; ‘oph_complex_float’; ‘oph_complex_int’; ‘oph_complex_long’.
measure: input measure.
mathematical operator: operators for real numbers:
Operators for complex numbers:
Return type
Binary-array.
Examples
Compute base-10 logarithm of each measure.
oph_math('OPH_COMPLEX_DOUBLE','OPH_COMPLEX_DOUBLE',measure,'OPH_MATH_GSL_COMPLEX_LOG10')
Operation type
Simple.
Argument name | Type | Mandatory | Values | Default | Min/Max-value | Min/Max-times |
---|---|---|---|---|---|---|
input measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’ |’oph_int’|’oph_long’|’oph_short’|’oph_byte’|’oph_ complex_double’|’oph_complex_float’|’oph_complex_int’|’oph_complex_long’” | “1” / “1” | ||
output measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’ |’oph_int’|’oph_long’|’oph_short’|’oph_byte’|’oph_ complex_double’|’oph_complex_float’|’oph_complex_int’|’oph_complex_long’” | “1” / “1” | ||
measure | “binary-array” | “yes” | “1” / “1” | |||
mathematical operator | “string” | “yes” | “1” / “1” |