Skip to content

Commit

Permalink
Merge pull request #21 from ra3xdh/fix_rectline
Browse files Browse the repository at this point in the history
Fix equations in rectline
  • Loading branch information
ra3xdh committed Sep 8, 2024
2 parents 89cbd5c + 84d7190 commit f825cd4
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 f825cd4

Please sign in to comment.