pytvx.TvfConst

class pytvx.TvfConst(x: float)[source]

Bases: pytvx.PyTvf

A Tvf whose value is a constant no matter what time it is evaluated. This class is rarely constructed explicitly. Instead, it is normally created implicitly by an arithmetic expression involving a Tvf and a float.

Parameters

x – The value.

Methods

indent_repr

__call__(t: float) float[source]

Compute the floating point value of this object at a given time.

Parameters

t – The time at which to evaluate.

Returns

The value at time t.

Return type

float