Python Examples


The above is a function of the independent variable, x, and three parameters, a, b, and c.

Here is a link a GitHub repository containing two Python scripts, one of which (expdatgen.py) generates tab-delimited data, and the other (LMTest.py) uses the Levenberg-Marquardt nonlinear least squares algorithm to estimate the parameters, a, b, and c. You can either clone the repository, or simply download the files in a zipped directory.

Link to a python code to draw a rotary encoder mask with a user-specified number of lines: rotaryencodergraph.py (also on GitHub)