autodiff.logistic

autodiff.logistic(x)

Return the logistic function of x.

Parameters
xint, float, Dual
Returns
yfloat or Dual

Examples

>>> ad.logistic(1)
0.7310585786300049
>>> x = ad.Dual(3, 2)
>>> ad.logistic(x)
Dual(0.9525741268224334, array([0.09035332]))