Skip to content

Commit 1ddbb46

Browse files
committed
Merge branch 'develop'
2 parents 69ac88a + a6c4796 commit 1ddbb46

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/log/log.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ namespace steppable::__internals::arithmetic
5959
// /-\ +--------------------------------------------+
6060
// / ! \ | WARNING: DO NOT CALL THIS METHOD DIRECTLY! |
6161
// /-----\ +--------------------------------------------+
62+
// TODO: Improve accuracy.
6263
// 4 3 2
6364
// (x - 1)(137x + 1762x + 3762x + 1762x + 137)
6465
// ln(x) = ------------------------------------------------

src/power/powerReport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ std::string reportPower(const std::string_view _number,
123123
ss << number;
124124
}
125125

126-
if (steps == 1)
126+
if (steps >= 1)
127127
ss << numberOrig << makeSuperscript(static_cast<std::string>(raiseTo)) << " = " << number;
128128
else if (steps == 0)
129129
ss << number;

src/root/root.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ namespace steppable::__internals::arithmetic
105105
auto radicand = add(y, newAvg, 0);
106106
auto test = power(radicand, base, 0);
107107

108-
if (compare(newAvg, "0", 0) == "2")
109-
return numUtils::roundDown(numUtils::roundOff(radicand, 1));
108+
if (compare(newAvg, "0", 0) == "2" or compare(test, number, 0) == "2")
109+
return roundDown(numUtils::roundOff(radicand, 1));
110110
if (compare(test, number, 0) == "1")
111111
x = radicand;
112112
else if (compare(test, number, 0) == "0")

tests/testHyp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ SECTION(Test inverse hyperbolic sine)
6161
_.assertIsEqual(asinh("0.5", 4), "0.4812");
6262
SECTION_END()
6363

64-
// TODO: FIX THESE
65-
// - Incorrect return values.
6664
SECTION(Test inverse hyperbolic cosine)
6765
_.assertIsEqual(acosh("1.25", 4), "0.6931");
6866
SECTION_END()

0 commit comments

Comments
 (0)