Commit Graph

31 Commits

Author SHA1 Message Date
6b1cbc4d73 Move source out of root and into the cruft directory 2024-07-18 12:27:05 +10:00
a94cd677bd tap: use fmtlib specifiers 2021-04-13 16:05:08 +10:00
8beada1646 debug: split debug headers into components 2019-05-17 12:26:08 +10:00
f6056153e3 rename root namespace from util to cruft
This places, at long last, the core library code into the same namespace
as the extended library code.
2018-08-05 14:42:02 +10:00
24a530e23e maths: remove pow2 function
pow2 has been used enough times to mean 2^x and x^2 that it's not worth
the ambiguity. just use pow(b,e) directly.
2018-04-09 12:30:22 +10:00
2d7e3e5d7d build: prefer iosfwd over iostream 2018-03-22 16:11:13 +11:00
5bc2cf12d4 maths: use true constexpr values for pi 2018-03-12 23:06:15 +11:00
9bb2bdbaba Merge remote-tracking branch 'origin/master' 2018-01-10 17:19:39 +11:00
9fbfba580a maths: allow digits10 for 64 bit integers 2018-01-01 15:46:29 +11:00
28ec0bd48e maths: add forgotten header to test suite 2017-11-02 18:02:53 +11:00
b18feb8bc4 maths: use bit patterns for tests float values
this makes some of the tests more robust in the face of (potentially
stanard breaking) optimisations.
2017-07-25 17:08:52 +10:00
da00e77e7e maths: add signed overloads for renormalise 2017-05-24 15:15:25 +10:00
791f8b2bcd maths: remove rootsquare, use std::hypot instead 2015-11-16 13:18:29 +11:00
b1bc54ac8c maths: move remaining operations into util namespace 2015-11-16 11:44:07 +11:00
7b083df977 maths: tighten up type requirements for almost_equal
almost_equal only operates on two reals, or two integers (and even then
only on the same signedness).
2015-11-13 17:18:10 +11:00
fe7e3e9c6f test/maths: remove debug print statement 2015-10-29 18:23:07 +11:00
c2770a266b maths: split normalise functions 2015-10-20 16:54:15 +11:00
08b6cbacea float: lower ULPs threshold for almost_equal
we weren't detecting differences with 4 decimal point differences
2015-08-20 15:34:20 +10:00
abf88710b4 test: use TAP on more tests 2015-07-13 16:30:54 +10:00
7bc96bd60f maths: explicitly instantiate PI for float, double 2015-05-01 02:42:32 +10:00
c052d7df4b maths: use templated PI and E constants 2015-04-29 17:45:39 +10:00
bbbbb675a6 test: move tests to TAP output 2015-04-13 16:45:56 +10:00
9f6c17d6cf maths: add renormalise function 2015-04-09 17:44:50 +10:00
2cd7ce0aca maths: use qualified min/max functions 2015-03-07 03:21:06 +11:00
9a6c4572fa float: correctly handle double comparisons 2015-02-03 15:54:55 +11:00
cae7a80ec1 test: move tests to flat directory structure
removes complications when srcpath/dstpath or child/parent directories
have naming collisions (in particular the json directories).
2015-01-30 16:45:57 +11:00
39617fb471 test: move maths namespace checks into own dir 2014-08-18 22:16:50 +10:00
4f5d75a1df Make all check macros uppercase 2012-05-11 12:34:21 +10:00
f4ab656ef1 Temporarily disable broken test case 2012-05-11 12:20:54 +10:00
b6f9bf9ebd Add tests for almost_equals NaN and Inf 2012-05-03 15:59:54 +10:00
745e06d1af initial import from waif 2011-05-23 17:18:52 +10:00