3 from numpy
import sqrt
, double
, power
8 LAMBDA
= double('2e-6')
13 def get_characteristic(x
):
14 if not isinstance(x
, double
):
15 raise TypeError('argument must be numpy.float64')
22 # val = step / (C * sqrt(2))
23 c
= get_characteristic(val
)
24 return power(10, double(c
))
28 def test_exp_stable(hy
=HY
, hz
=HZ
, ht
=HZ
, c
=C
):
29 gy
= (c
**2 * ht
**2) / (hy
**2)
30 gz
= (c
**2 * ht
**2) / (hz
**2)
33 def test_imp_stable(hy
=HY
, ht
=HT
, c
=C
):
34 gy
= (c
**2 * ht
**2) / (hy
**2)