About the Code & Algorithms category

Post, search, and discuss code for optics. Any language is welcome!

This is a space for discussing, contributing, and building algorithms and software that is contextual to optics. Have questions about how you should be analyzing a dataset? This is the place! Want to share an awesome piece of software or script you find helpful? Share away!

Algorithms will be tagged based on whatever language they are written in (Python, Julia, C++, Rust, Matlab).


Math encoding is enabled via Mathjax. See below for usage.

The math plugin uses MathJax (default) or KaTeX to render maths.

You can render blocks of maths by wrapping with $


You can render inline math by wrapping with a single $ like so: $E=mc^2$ .

Discourse math uses a heuristic to ensure that sentences such as: “I spent $20 and another $100” do not get converted.