IntervalProd.element

IntervalProd.element(inp=None)[source]

Return an element of this interval product.

Parameters:
inpfloat or array-like, optional

Point to be cast to an element.

Returns:
elementnumpy.ndarray or float

Array (ndim > 1) or float version of inp if provided, otherwise self.mid_pt.

Examples

>>> interv = IntervalProd(0, 1)
>>> interv.element(0.5)
0.5