blob: 403952ad5f862880c26b5d0e782a3622c1d178b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-aa,v 1.2 2004/11/30 00:27:35 dmcmahill Exp $
fixes minor bug in the computation. Correct constant (0.7913) found in original reference
for this model.
--- src/c_microstrip.c.orig Thu Jul 25 19:48:39 2002
+++ src/c_microstrip.c
@@ -520,7 +520,7 @@ static void er_eff_freq(c_microstrip * c
er_eff = c_ms->er_eff_o_0;
P_8 = 0.7168 * (1.0 + 1.076 / (1.0 + 0.0576 * (er - 1.0)));
- P_9 = P_8 - 0.7193 * (1.0 - exp(-pow(f_n / 20.0, 1.424))) * atan(2.481 * pow(er / 8.0, 0.946));
+ P_9 = P_8 - 0.7913 * (1.0 - exp(-pow(f_n / 20.0, 1.424))) * atan(2.481 * pow(er / 8.0, 0.946));
P_10 = 0.242 * pow(er - 1.0, 0.55);
P_11 = 0.6366 * (exp(-0.3401 * f_n) - 1.0) * atan(1.263 * pow(u / 3.0, 1.629));
P_12 = P_9 + (1.0 - P_9) / (1.0 + 1.183 * pow(u, 1.376));
|