helper()
Apply a square-root transformation to a single value.
Usage
helper(x)Computes the square root of the absolute value of x, preserving the original sign.
Parameters
x: float-
A numeric value to transform.
Returns
float-
The signed square root:
sign(x) * sqrt(abs(x)).
Notes
This function is used internally by advanced_compute() for element-wise data transformation.
Examples
>>> helper(4.0)2.0
>>> helper(-9.0)-3.0
>>> helper(0.0)0.0