From 84d7190c841d41236563153ed4eea825f1ccd2a1 Mon Sep 17 00:00:00 2001 From: Vadim Kuznetsov Date: Sun, 8 Sep 2024 10:34:20 +0300 Subject: [PATCH] Fix equations in rectline --- src/components/rectline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/rectline.cpp b/src/components/rectline.cpp index ec74be28..be224ded 100644 --- a/src/components/rectline.cpp +++ b/src/components/rectline.cpp @@ -192,9 +192,9 @@ void rectline::calcPropagation (nr_double_t frequency) { } else { /* according to [2] eq 3.207 */ beta = 0; - alpha = -std::sqrt (- (sqr (k0) - sqr (kc))); + alpha = std::sqrt (- (sqr (k0) - sqr (kc))); // wave impedance - zl = (k0 * Z0 * std::sqrt(mur/er)) / nr_complex_t (0, -alpha) ; + zl = (k0 * Z0 * std::sqrt(mur/er)) / nr_complex_t (0, alpha) ; } }