mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
.. | ||
.github/workflows | ||
examples | ||
test | ||
.arduino-ci.yml | ||
complex.cpp | ||
complex.h | ||
keywords.txt | ||
library.json | ||
library.properties | ||
LICENSE | ||
README.md | ||
ReleaseNote.txt |
Complex
Arduino library for Complex math
Description
This library defines the complex datatype and all the common math functions for it.
These functions include basic = "+ - * /" and also power and gonio functions.
Interface
See Complex.h for all functions implemented.
Note
The library has a big footprint so it fills up the memory of an UNO quite fast.
Known problem
Issue found in version 0.1.9 - https://github.com/RobTillaart/Arduino/issues/90 Class does not compile for DUE and TEENSY
Apparently the name "Complex" is already in use (reserved) by some non-AVR compilers so it won't include the Complex.h file. Problem seen on Due and Teensy3.5
Solution:
- Make a copy of the Complex Library and rename the folder to CComplex
- Rename Complex.h to CComplex.h
- Rename Complex.cpp to CComplec.cpp
- change one line in CComplex.cpp to include CComplex.h