rk_comparison.core.analytical_module package

Submodules

rk_comparison.core.analytical_module.fehlbergrungekutta module

class rk_comparison.core.analytical_module.fehlbergrungekutta.FehlbergRungeKutta[source]

Bases: object

This class contains Fehlberg-Runge-Kutta methods of orders from 5 to 8.

fehlbergrungekutta5(f, x, y1, n, h)[source]

Fehlberg-Runge-Kutta order 5, source: [5] in in bibliography

fehlbergrungekutta6(f, x, y1, n, h)[source]

Fehlberg-Runge-Kutta order 6, source: [5] in in bibliography

fehlbergrungekutta7(f, x, y1, n, h)[source]

Fehlberg-Runge-Kutta order 7, source: [5] in in bibliography

fehlbergrungekutta8(f, x, y1, n, h)[source]

Fehlberg-Runge-Kutta order 8, source: [5] in in bibliography

rk_comparison.core.analytical_module.nuclear_decay module

class rk_comparison.core.analytical_module.nuclear_decay.NuclearDecay[source]

Bases: object

This class contains the differential equation and analytical solution to the nuclear decay problem. Tau is a mean lifetime of a radioactive particle before decay.

equation(t, nu)[source]

Differential equation describing the nuclear decay problem. Source: [6] in bibliography.

equation_analytical(nu0, t)[source]

Analytical solution to the nuclear decay problem. Source: [6] in bibliography.

get_nuclei()[source]

Returns the number of nuclei.

get_tau()[source]

Returns the tau value.

set_nuclei(nuclei)[source]

Initial number of nuclei can be set by user with this method.

set_tau(tau)[source]

Tau can be set by user with this method.

rk_comparison.core.analytical_module.rungekutta module

class rk_comparison.core.analytical_module.rungekutta.RungeKutta[source]

Bases: object

This class contains Runge-Kutta methods of orders from 1 to 6.

rungekutta1(f, x, y1, n, h)[source]

Runge-Kutta order 1, known as Euler’s method. Sources: [1], [2] in in bibliography

rungekutta2(f, x, y1, n, h)[source]

Runge-Kutta order 2, sources: [1], [2] in in bibliography

rungekutta3(f, x, y1, n, h)[source]

Runge-Kutta order 3, sources: [1], [2] in in bibliography

rungekutta4(f, x, y1, n, h)[source]

Runge-Kutta order 3, sources: [1], [2] in in bibliography

rungekutta5(f, x, y1, n, h)[source]

Runge-Kutta order 5, source: [1], [3] in bibliography

rungekutta6(f, x, y1, n, h)[source]

Runge-Kutta order 6, source: [1], [4] in bibliography

rk_comparison.core.analytical_module.statistics module

class rk_comparison.core.analytical_module.statistics.Statistics[source]

Bases: object

mean(comparison_data)[source]

Method returns mean value of elements in given list.

min_max_value(comparison_data, min)[source]

Method returns minimal or maximal value of given list. Depends on given boolean attribute.

Module contents