modelparameters.sympy.plotting.intervalmath package

Submodules

modelparameters.sympy.plotting.intervalmath.interval_arithmetic module

Interval Arithmetic for plotting. This module does not implement interval arithmetic accurately and hence cannot be used for purposes other than plotting. If you want to use interval arithmetic, use mpmath’s interval arithmetic.

The module implements interval arithmetic using numpy and python floating points. The rounding up and down is not handled and hence this is not an accurate implementation of interval arithmetic.

The module uses numpy for speed which cannot be achieved with mpmath.

class modelparameters.sympy.plotting.intervalmath.interval_arithmetic.interval(*args, **kwargs)[source]

Bases: object

Represents an interval containing floating points as start and end of the interval The is_valid variable tracks whether the interval obtained as the result of the function is in the domain and is continuous. - True: Represents the interval result of a function is continuous and

in the domain of the function.

  • False: The interval argument of the function was not in the domain of

    the function, hence the is_valid of the result interval is False

  • None: The function was not continuous over the interval or

    the function’s argument interval is partly in the domain of the function

The comparison of two intervals returns a tuple of two 3-valued logic values.

The first value determines the comparison as follows: - True: If the comparison is True throughout the intervals. - False: If the comparison is False throughout the intervals. - None: If the comparison is True for some part of the intervals.

The second value is determined as follows: - True: If both the intervals in comparison are valid. - False: If at least one of the intervals is False, else - None

property mid
property width

modelparameters.sympy.plotting.intervalmath.lib_interval module

modelparameters.sympy.plotting.intervalmath.lib_interval.Abs(x)[source]
modelparameters.sympy.plotting.intervalmath.lib_interval.And(*args)[source]

Defines the three valued And behaviour for a 2-tuple of three valued logic values

modelparameters.sympy.plotting.intervalmath.lib_interval.Or(*args)[source]

Defines the three valued Or behaviour for a 2-tuple of three valued logic values

modelparameters.sympy.plotting.intervalmath.lib_interval.acos(x)[source]

Evaluates the inverse cos of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.acosh(x)[source]

Evaluates the inverse hyperbolic cosine of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.asin(x)[source]

Evaluates the inverse sine of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.asinh(x)[source]

Evaluates the inverse hyperbolic sine of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.atan(x)[source]

evaluates the tan inverse of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.atanh(x)[source]

Evaluates the inverse hyperbolic tangent of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.ceil(x)[source]

Evaluates the ceiling of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.cos(x)[source]

Evaluates the cos of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.cosh(x)[source]

Evaluates the hyperbolic cos of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.exp(x)[source]

evaluates the exponential of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.floor(x)[source]

Evaluates the floor of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.imax(*args)[source]

Evaluates the maximum of a list of intervals

modelparameters.sympy.plotting.intervalmath.lib_interval.imin(*args)[source]

Evaluates the minimum of a list of intervals

modelparameters.sympy.plotting.intervalmath.lib_interval.log(x)[source]

evaluates the natural logarithm of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.log10(x)[source]

evaluates the logarithm to the base 10 of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.sin(x)[source]

evaluates the sine of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.sinh(x)[source]

Evaluates the hyperbolic sine of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.sqrt(x)[source]

Evaluates the square root of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.tan(x)[source]

Evaluates the tan of an interval

modelparameters.sympy.plotting.intervalmath.lib_interval.tanh(x)[source]

Evaluates the hyperbolic tan of an interval

Module contents