dcmri.res_trap#

dcmri.res_trap(t)[source]#

Residue function of a trap.

See section Trap for more detail.

Parameters:

t (array_like) – Time points where the residue function is calculated.

Returns:

residue function as a 1D array.

Return type:

numpy.ndarray

Example

>>> import dcmri as dc
>>> t = [0,1,2,3,4]
>>> dc.res_trap(t)
array([1., 1., 1., 1., 1.])