All projects

Complex-domain Graphing Calculator

The graphing calculator has input and output axes for both the real and imaginary components of numbers. I used optimisation techniques to ensure minimum resolution for full signal accuracy.

Date
June 2022
Area
Logic
Skills
C#.NETOptimisation
Complex-domain Graphing Calculator

Ask about Complex-domain Graphing Calculator

AI answers based only on the projects on this site. It can make mistakes, so check the linked project.

01Background

I wanted to model complex functions (such as wavefunctions) and couldn’t find anything that was as easy to use as Desmos, so I essentially created Desmos for complex numbers. LaTeX expressions are evaluated from first principles, and numerical methods are used to draw the most accurate curve for the function.

02Details

Full report here: https://docs.google.com/document/d/18-WYO30cI97UKpkGzJAB57mt94ZZ-uB8/edit?usp=sharing&ouid=114954750721934144716&rtpof=true&sd=true I built a class structure of mathematical expressions and complex functions, as before:

To plot, the parameters of the expression are found using analysis of the degrees of freedom, and then iteratively evaluated over those parameters. The local step-size on each parameter is found using a (proprietary) numerical method I developed which I call Rotans Falsi, inspired by the ancient Regula Falsi method. This method finds all optima of a multi-modal function segment, and can be generalised to higher dimensions. The method never diverges, but is faster than repeated Golden Section Search, the fastest non-diverging bracketing method.

03Outcome

Outcome: There were some last-minute bugs which I couldn’t fix due to deadlines, but nothing undoable. Some of the graphing functionality worked, and the expression evaluation also worked.