0.3.2 Complex

This commit is contained in:
rob tillaart 2022-10-30 11:11:07 +01:00
parent c8c9f1177a
commit 1ca93bdfa0
8 changed files with 105 additions and 40 deletions

View File

@ -1,3 +1,18 @@
platforms:
rpipico:
board: rp2040:rp2040:rpipico
package: rp2040:rp2040
gcc:
features:
defines:
- ARDUINO_ARCH_RP2040
warnings:
flags:
packages:
rp2040:rp2040:
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
compile:
# Choosing to run compilation tests on 2 different Arduino platforms
platforms:
@ -9,3 +24,5 @@ compile:
- esp32
# - esp8266
# - mega2560
- rpipico

View File

@ -0,0 +1,65 @@
# Change Log Complex
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.3.2] - 2022-10-29
- add changelog.md
- add rp2040 to build-CI
- minor edit unit test
## [0.3.1] - 2021-12-14
- update library.json
- update license
- minor edits
## [0.3.0] - 2021-11-15
- fix #7 adding const to operators
----
## [0.2.4] - 2021-10-19
- update build-CI.
## [0.2.3] - 2021-09-14
- fix build-CI
- update readme.md
## [0.2.2] - 2020-12-16
- add arduino-ci + unit test (starter)
- setReal(), setImag()
## [0.2.1] - 2020-06-05
- fix library.json
## [0.2.0] - 2020-03-29
- #pragma once,
- create own repo
----
## [0.1.12] - 2018-04-02
- fix issue #33 double -> float
## [0.1.11] - 2018-01-29
- fix sin and cos formula - issue #91
## [0.1.10] - 2018-01-15
- uppercase #define COMPLEX_H
## [0.1.09] - 2016-10-15
- added (0,0) constructor
## [0.1.08] - 2015-06-03
- refactor
## [0.1.07] - 2015-06-03
- refactor interfaces
## [0.1.0] - 2013
- initial version.

View File

@ -47,7 +47,6 @@ Apparently the name "Complex" is already in use (reserved) by some non-AVR compi
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

View File

@ -1,26 +1,12 @@
//
// FILE: Complex.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.3.1
// VERSION: 0.3.2
// PURPOSE: Arduino library for Complex math
// URL: https://github.com/RobTillaart/Complex
// http://arduino.cc/playground/Main/ComplexMath
//
// HISTORY
// 0.3.1 2021-12-14 update library.json, license, minor edits
// 0.3.0 2021-11-15 fix #7 adding const to operators
// 0.2.4 2021-10-19 update build-CI.
// 0.2.3 2021-09-14 fix build-CI + update readme
// 0.2.2 2020-12-16 add arduino-ci + unit test (starter)
// setReal, setImag
// 0.2.1 2020-06-05 fix library.json
// 0.2.0 2020-03-29 #pragma once, own repo
// 0.1.12 2018-04-02 - fix issue #33 double -> float
// 0.1.11 2018-01-29 - fix sin and cos formula - issue #91
// 0.1.10 2018-01-15 - uppercase #define COMPLEX_H
// 0.1.09 2016-10-15 - added (0,0) constructor
// 0.1.08 2015-06-03 - refactor
// 0.1.07 2015-06-03 - refactor interfaces
// HISTORY: see changelog.md
#include "Complex.h"

View File

@ -2,18 +2,17 @@
//
// FILE: Complex.h
// AUTHOR: Rob Tillaart
// VERSION: 0.3.1
// VERSION: 0.3.2
// PURPOSE: Arduino library for Complex math
// URL: https://github.com/RobTillaart/Complex
// http://arduino.cc/playground/Main/ComplexMath
//
#include "Arduino.h"
#include "Printable.h"
#define COMPLEX_LIB_VERSION (F("0.3.1"))
#define COMPLEX_LIB_VERSION (F("0.3.2"))
class Complex: public Printable

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/Complex.git"
},
"version": "0.3.1",
"version": "0.3.2",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=Complex
version=0.3.1
version=0.3.2
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for Complex math.

View File

@ -30,6 +30,7 @@
unittest_setup()
{
fprintf(stderr, "COMPLEX_LIB_VERSION: %s\n", (char *) COMPLEX_LIB_VERSION);
}
@ -40,8 +41,6 @@ unittest_teardown()
unittest(test_constructor)
{
fprintf(stderr, "COMPLEX_LIB_VERSION: %s\n", (char *) COMPLEX_LIB_VERSION);
Complex c1(10.0, -2.0);
Complex c2(3, 0);
Complex c3(-10, 4);