IntervalProd.element¶
-
IntervalProd.
element
(self, inp=None)[source]¶ Return an element of this interval product.
- Parameters
- inpfloat or
array-like
, optional Point to be cast to an element.
- inpfloat or
- Returns
- element
numpy.ndarray
or float Array (
ndim
> 1) or float version ofinp
if provided, otherwiseself.mid_pt
.
- element
Examples
>>> interv = IntervalProd(0, 1) >>> interv.element(0.5) 0.5