summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-20 02:16:54 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-20 02:16:54 -0500
commit147012d4d524f5f0f7417d639cefc30ddb43da4f (patch)
tree95885d8d9e1ff60a75489fd64fedf12396edcaad
parentffdadb16a8a7509adadb8cca64e1676313d1cd32 (diff)
downloadcode-147012d4d524f5f0f7417d639cefc30ddb43da4f.tar.gz
code-147012d4d524f5f0f7417d639cefc30ddb43da4f.tar.bz2
code-147012d4d524f5f0f7417d639cefc30ddb43da4f.zip
another try
-rw-r--r--hadamard_pt.hpp4
1 files 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<double> η(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;