Examples

The package ships runnable example scripts in examples/ and generated visual outputs in test_output/ as SVG files.

This page is an overview. Detailed inputs, outputs, and figures are split by example family in the pages linked below.

Run examples from the package root:

python examples/example_interpolation_plots.py
python examples/example_imsl_missing_interpolation_suite.py

Selected demos:

python examples/example_imsl_bs23_pp_family.py
python examples/example_imsl_conft_1.py
python examples/example_imsl_conft_2.py
python examples/example_imsl_surf_family.py

Regenerate the documentation figures by rerunning the relevant examples from the package root. Each script updates one or more SVG files in test_output/.

Example Script Map

Script

Primary topic

Generated SVG outputs

example_imsl_bs23_pp_family.py

B-splines and piecewise polynomials

demo_imsl_bs2_family.svg; demo_imsl_bs3_family.svg; demo_imsl_pp_family.svg

example_imsl_qd_family.py

Quadratic-grid interpolation

demo_imsl_qd1_family.svg; demo_imsl_qd2_family.svg; demo_imsl_qd3_family.svg

example_imsl_lsq_smooth_ratch_family.py

Least-squares, smoothing, rational fitting

demo_imsl_lsq_family.svg; demo_imsl_bslsq_bsvls_family.svg; demo_imsl_css_family.svg; demo_imsl_ratch.svg

example_imsl_surf_family.py

Surface and multidimensional interpolation

demo_imsl_surf.svg; demo_imsl_surfnd.svg

example_imsl_bsint_family.py and example_imsl_bsitg.py

B-spline interpolation and integration

demo_imsl_bsint_family.svg; demo_imsl_bsitg_integral.svg

example_imsl_csitg.py and example_imsl_csder.py

Cubic spline integration and derivatives

demo_imsl_csitg_integral.svg; demo_imsl_csder_values_derivatives.svg

Detailed pages by family: