1.1. Integration module¶
-
Integration.
simpson13
(f, limits, ns)¶ This function calculates the area under a given curve between the given list of limit points using Simpson 1/3 method
- Parameters
f (function) – function whose area is to be calculated
limits (tuple) – a tuple of limit points
ns (iterable) – list of number of sub
- Returns
Intergral (List) – List of area calculated using corresponding values of ns
hs (List) – List of h for corresponding values of ns
-
Integration.
simpson38
(f, limits, ns)¶ This function calculates the area under a given curve between the given list of limit points using Simpson 3/8 method
- Parameters
f (function) – function whose area is to be calculated
limits (tuple) – a tuple of limit points
ns (iterable) – list of number of sub
- Returns
Intergral (List) – List of area calculated using corresponding values of ns
hs (List) – List of h for corresponding values of ns
-
Integration.
trapizoidal
(f, limits, ns)¶ This function calculates the area under a given curve between the given list of limit points using Trapezoidal method
- Parameters
f (function) – function whose area is to be calculated
limits (tuple) – a tuple of limit points
ns (iterable) – list of number of sub
- Returns
Intergral (List) – List of area calculated using corresponding values of ns
hs (List) – List of h for corresponding values of ns