Arithmetics
The following arithmetic operations are supported:
Symbol |
Name |
---|---|
|
Addition |
|
Subtraction |
|
Multiplication |
|
Division |
|
Exponentiation |
These operations are used as ordinary arithmetical operators:
signal_1 + signal_2
In addition, the following arithmetic operations are supported:
- signal.log()
Calculate the natural logarithm of the signal.
- signal.exp()
Apply the exponential function to the signal.
For each value in the original signal, the result is calculated as the base of the natural logarithm, e ≈ 2.71, raised to the power of the original value.
- signal.abs()
Calculate the absolute values of the signal.
- signal.sign()
Calculate the sign of the signal values.
For each value in the original signal, the sign is +1 if the original value is positive, -1 if the original value is negative, and 0 if the original value is 0.