2021-01-29 06:31:58 -05:00
|
|
|
|
|
|
|
[![Arduino CI](https://github.com/RobTillaart/Complex/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
|
|
|
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/Complex/blob/master/LICENSE)
|
|
|
|
[![GitHub release](https://img.shields.io/github/release/RobTillaart/Complex.svg?maxAge=3600)](https://github.com/RobTillaart/Complex/releases)
|
|
|
|
|
2020-11-27 05:10:47 -05:00
|
|
|
# Complex
|
|
|
|
|
|
|
|
Arduino library for Complex math
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
This library defines the complex datatype and all the common math functions for it.
|
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
These functions include basic = "+ - \* /" and also power and gonio functions.
|
|
|
|
|
|
|
|
## Interface
|
2020-11-27 05:10:47 -05:00
|
|
|
|
|
|
|
See Complex.h for all functions implemented.
|
|
|
|
|
|
|
|
|
|
|
|
## Note
|
2021-01-29 06:31:58 -05:00
|
|
|
|
2020-11-27 05:10:47 -05:00
|
|
|
The library has a big footprint so it fills up the memory of an UNO quite fast.
|
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
#### Known problem
|
|
|
|
|
2020-11-27 05:10:47 -05:00
|
|
|
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
|
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
#### Solution:
|
2020-11-27 05:10:47 -05:00
|
|
|
- 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
|
|
|
|
|