autodiff.Dual.__truediv__

Dual.__truediv__(other)

Return the quotient of self and other.

Parameters
selfDual
otherint, float, Dual
Returns
outDual

Examples

Dual number and scalar:

>>> ad.Dual(42) / 5
Dual(8.4, array([0.2]))

Two dual numbers (univariate):

>>> ad.Dual(4) / ad.Dual(5)
Dual(0.8, array([0.04]))

Two dual numbers (multivariate):

>>> ad.Dual(42, [1, 2]) / ad.Dual(1, [3, 4])
Dual(42.0, array([-125., -166.]))