autodiff.Dual.__rtruediv__¶
- Dual.__rtruediv__(other)¶
Return the quotient of two numbers, when the left operand is not a Dual number.
- Parameters
- selfDual
- otherint, float
- Returns
- outDual
Examples
Scalar and dual number (univariate):
>>> 2 / ad.Dual(4) Dual(0.5, array([-0.125]))
Scalar and dual number (multivariate):
>>> 2 / ad.Dual(4, [1, 2]) Dual(0.5, array([-0.125, -0.25 ]))