Skip to content

Latest commit

 

History

History
72 lines (43 loc) · 1.99 KB

README.md

File metadata and controls

72 lines (43 loc) · 1.99 KB

odelabs - Ordinary Differential Equations Labs

This package intends to provide tools for analysing and solving second order linear ordinary differential equations.


Table of Contents


Installation

pip install odelabs

Usage

Consider the second order linear differential operator given by

equation,

where the functions are real and defined at the compact interval equation, and mixed boundary conditions of the form

equation

equation

obeying equation.

Boundary Conditions

In general case,

equation

>>> from odelabs import BoundaryCondition as BC

>>> lbc = BC(x=0, a=0, b=1, c=3)  # Nonhomogeneous Neumann BC at x=0
>>> lbc
Boundary Condition: y'(0) = 3

>>> ubc = BC(x=1, a=1, b=0, c=0)  # Homogeneous Dirichlet BC at x=1
>>> ubc
Boundary Condition: y(1) = 0

>>> poly = BC.fit_polynomial(lbc, ubc)
>>> poly
-3.0 + 3.0·x¹

License

The MIT License