aboutsummaryrefslogtreecommitdiffstats
path: root/204
diff options
context:
space:
mode:
Diffstat (limited to '204')
-rw-r--r--204/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/204/main.cpp b/204/main.cpp
index 64a11e2..37b4466 100644
--- a/204/main.cpp
+++ b/204/main.cpp
@@ -15,7 +15,7 @@ void ex1(std::string file) {
f64 F_err = std::sqrt(2.0) * F1.err;
t .apply([&F1](vecarg a){ return a[0] - F1.val;}, {"F2"}, "F")
.apply([&](vecarg a){ return a[0] / (2 * k.val * prak::PI * D.val);}, {"F"}, "s")
- .apply([&](vecarg a){ return a[0] * std::sqrt(F_err * F_err / (a[1] * a[1]) + sgm);}, {"s", "F"}, "ss")
+ .apply([&](vecarg a){ return a[0] * std::sqrt(F_err * F_err / (a[1] * a[1]) + sgm);}, {"F", "s"}, "ss")
.write_plot("s(T).plot", "T", "s", "ss")
.add_columns({"q", "sq", "U", "sU"});
auto [A, B] = t.least_squares_linear("T", "s", std::make_optional("ss"), std::nullopt);