From 147012d4d524f5f0f7417d639cefc30ddb43da4f Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 20 Dec 2019 02:16:54 -0500 Subject: another try --- hadamard_pt.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadamard_pt.hpp b/hadamard_pt.hpp index 9886462..c658389 100644 --- a/hadamard_pt.hpp +++ b/hadamard_pt.hpp @@ -39,7 +39,7 @@ public: } } - double T(signed i) { + double T(unsigned i) { return 1 / Ms[Ms.size() - i - 1].β; } @@ -118,7 +118,7 @@ public: std::vector η(Ms.size() - 1); for (unsigned i = 0; i < Ms.size() - 1; i++) { - η[η.size() - i - 1] = sqrt((f[i + 1] - f[i])) / (1 / Ms[i].β - 1 / Ms[i+1].β); + η[η.size() - i - 1] = sqrt((f[i + 1] - f[i]) / (1 / Ms[i].β - 1 / Ms[i+1].β)); } double C = 0; -- cgit v1.2.3-70-g09d2