foxes.utils.sqrt_reg(x, x0=0.01)[source]

A regularized sqrt function, producing non-zero values also for smallish negative x.

Parameters

x: numpy.ndarray

The x values to evaluate

x0: float

Parameter where to start the smoothing

Returns

out: numpy.ndarray

The regularized sqrt(x) results