Curing an Interval

All classes contained in this module can easily be used to cure a given interval. For example let’s approximate the interval from z=0 to z=1 with 3 piecewise linear functions:

>>> from pyinduct import Domain, LagrangeFirstOder
>>> nodes = Domain(bounds0(0, 1), num=3)
>>> list(nodes)
[0.0, 0.5, 1.0]
>>> funcs = LagrangeFirstOrder.cure_interval(nodes)