mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-09-19 16:46:11 -04:00
0.3.4 Complex
This commit is contained in:
parent
40c877faaa
commit
8e0c4c7aa6
@ -6,10 +6,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.3.4] - 2024-01-02
|
||||
- fix examples
|
||||
- update readme.md
|
||||
- minor edits
|
||||
|
||||
|
||||
## [0.3.3] - 2023-10-18
|
||||
- update readme.md
|
||||
|
||||
|
||||
## [0.3.2] - 2022-10-29
|
||||
- add changelog.md
|
||||
- add rp2040 to build-CI
|
||||
@ -63,6 +68,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
## [0.1.07] - 2015-06-03
|
||||
- refactor interfaces
|
||||
|
||||
## [0.1.0] - 2013
|
||||
some missing history
|
||||
|
||||
## [0.1.0] - 2013-09-23
|
||||
- initial version.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2013-2023 Rob Tillaart
|
||||
Copyright (c) 2013-2024 Rob Tillaart
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// FILE: Complex.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.3.3
|
||||
// VERSION: 0.3.4
|
||||
// PURPOSE: Arduino library for Complex math
|
||||
// URL: https://github.com/RobTillaart/Complex
|
||||
// http://arduino.cc/playground/Main/ComplexMath
|
||||
@ -393,5 +393,5 @@ Complex Complex::c_acoth() const
|
||||
}
|
||||
|
||||
|
||||
// --- END OF FILE ---
|
||||
// --- END OF FILE ---
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// FILE: Complex.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.3.3
|
||||
// VERSION: 0.3.4
|
||||
// PURPOSE: Arduino library for Complex math
|
||||
// URL: https://github.com/RobTillaart/Complex
|
||||
// http://arduino.cc/playground/Main/ComplexMath
|
||||
@ -12,7 +12,7 @@
|
||||
#include "Printable.h"
|
||||
|
||||
|
||||
#define COMPLEX_LIB_VERSION (F("0.3.3"))
|
||||
#define COMPLEX_LIB_VERSION (F("0.3.4"))
|
||||
|
||||
|
||||
class Complex: public Printable
|
||||
@ -111,5 +111,5 @@ protected:
|
||||
static const Complex one(1, 0);
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -1,11 +1,8 @@
|
||||
//
|
||||
// FILE: array.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.0
|
||||
// DATE: 2015-10-18
|
||||
//
|
||||
// PUPROSE: example complex array
|
||||
//
|
||||
// PURPOSE: example complex array
|
||||
// URL: https://github.com/RobTillaart/Complex
|
||||
|
||||
|
||||
#include "Complex.h"
|
||||
@ -55,5 +52,5 @@ void loop()
|
||||
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
// FILE: complex.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 2013-09-23
|
||||
// PURPOSE: demo complex
|
||||
// URL: https://github.com/RobTillaart/Complex
|
||||
//
|
||||
// PUPROSE: test complex math
|
||||
//
|
||||
// Serial.print(Complex) supported since 0.1.05
|
||||
// Serial.print(Complex) supported since 0.1.05
|
||||
|
||||
|
||||
#include "Complex.h"
|
||||
@ -233,5 +233,5 @@ void loop()
|
||||
}
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -2,9 +2,8 @@
|
||||
// FILE: const.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 2021-11-15
|
||||
//
|
||||
// PUPROSE: test complex math - https://github.com/RobTillaart/Complex/issues/7
|
||||
//
|
||||
// PURPOSE: test complex math - https://github.com/RobTillaart/Complex/issues/7
|
||||
// URL: https://github.com/RobTillaart/Complex
|
||||
|
||||
|
||||
#include "Complex.h"
|
||||
@ -41,5 +40,5 @@ void loop()
|
||||
}
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
// FILE: performance.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 2013-09-23
|
||||
// PURPOSE: test complex math
|
||||
// URL: https://github.com/RobTillaart/Complex
|
||||
//
|
||||
// PUPROSE: test complex math
|
||||
//
|
||||
// Serial.print(Complex) supported since 0.1.05
|
||||
// Serial.print(Complex) supported since 0.1.05
|
||||
|
||||
|
||||
#include "Complex.h"
|
||||
@ -429,5 +429,5 @@ void loop()
|
||||
}
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/Complex.git"
|
||||
},
|
||||
"version": "0.3.3",
|
||||
"version": "0.3.4",
|
||||
"license": "MIT",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=Complex
|
||||
version=0.3.3
|
||||
version=0.3.4
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for Complex math.
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include <ArduinoUnitTests.h>
|
||||
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "Complex.h"
|
||||
|
||||
|
||||
@ -45,7 +44,7 @@ unittest(test_constructor)
|
||||
Complex c2(3, 0);
|
||||
Complex c3(-10, 4);
|
||||
Complex c4(-5,-5);
|
||||
Complex c5; // (0, 0)
|
||||
Complex c5; // (0, 0)
|
||||
|
||||
assertEqual(10.0, c1.real());
|
||||
assertEqual(-2.0, c1.imag());
|
||||
@ -58,11 +57,11 @@ unittest(test_constructor)
|
||||
assertEqual(0.0, c5.real());
|
||||
assertEqual(0.0, c5.imag());
|
||||
|
||||
// one is a default available var.
|
||||
// one is a default available var.
|
||||
assertEqual(1.0, one.real());
|
||||
assertEqual(0.0, one.imag());
|
||||
|
||||
// polar notation setter.
|
||||
// polar notation setter.
|
||||
c1.polar(5, PI/4);
|
||||
assertEqualFloat(5, c1.modulus(), 0.0001);
|
||||
assertEqualFloat(PI/4, c1.phase(), 0.0001);
|
||||
@ -216,7 +215,8 @@ unittest(test_gonio_functions_I)
|
||||
}
|
||||
|
||||
|
||||
|
||||
unittest_main()
|
||||
|
||||
// --------
|
||||
|
||||
// -- END OF FILE --
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user