Source Code

Subpackages

Submodules

fractpy.function module

A class for performing basic operations on functions.

class fractpy.function.Function(function)[source]

A class for performing basic operations on given single-variable function. The operations include finding roots, calculating derivative.

Parameters

function (str) – The function of interest (has to be a single variable function).

function

The function of interest.

Type

sympy expression

variable

The variable in terms which the function is defined.

Type

sympy.Symbol

Notes

This class was mainly developed to be used for fractpy.models.NewtonFractal class.

differentiate()[source]

Differentiates the function.

Returns

Derivative of the function.

Return type

sympy expression

roots()[source]

Calculate roots of the function.

Returns

Roots of the function.

Return type

list