Merge branch 'master' into add_fma

This commit is contained in:
Nick
2023-12-15 13:01:38 -08:00
committed by Nick Thompson
9 changed files with 211 additions and 11 deletions
+5
View File
@@ -67,6 +67,11 @@ TEST_CASE("'fma()' on quantity changes the value and the dimension accordingly",
REQUIRE(fma(1.0 * isq::length[m], 2.0 * one, 2.0 * isq::length[m]) == 4.0 * isq::length[m]);
}
TEST_CASE("'fma()' returns a common reference.", "[math][fma]")
{
REQUIRE(fma(isq::speed(10.0 * m / s), isq::time(2.0 * s), isq::height(42.0 * m)) == isq::length(62.0 * m));
}
TEST_CASE("'pow<Num, Den>()' on quantity changes the value and the dimension accordingly", "[math][pow]")
{