Skip to content

Commit

Permalink
Fix equations in rectline
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Sep 8, 2024
1 parent 89cbd5c commit 84d7190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/rectline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;
}
}

Expand Down

0 comments on commit 84d7190

Please sign in to comment.