This package intends to provide tools for analysing and solving second order linear ordinary differential equations.
pip install odelabs
Consider the second order linear differential operator given by
where the functions are real and defined at the compact interval , and mixed boundary conditions of the form
In general case,
>>> 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¹