Recently there was a request for complex numbers and yesterday I came across a set of complex math formula’s so I decided to Arduinize them into a library.
It took some hours to google a complete set of formulas from different sites which resulted into a rather BIG lib. It definitely needs a review as I assume some parts can be optimized. Fortunately everyone can strip out only the functions they need to minimize the lib (compiler is also helpful).
.cpp and .h and the testcode is attached as zip-file
Playground article - http://arduino.cc/playground/Main/ComplexMath - (not up to date)
Latest version - Arduino/libraries/Complex at master · RobTillaart/Arduino · GitHub -
As allways comments and remarks are welcome
complex0.1.01.zip (3.09 KB)