Skip to content
Snippets Groups Projects
Commit a898974f authored by Christopher Wipf's avatar Christopher Wipf
Browse files

newtonian.py: rescale to avoid numerical overflow (fixes #22)

parent ed9f479b
No related branches found
No related tags found
1 merge request!30Resolve "Newtonian.py: Overflow protection needed"
Pipeline #28250 passed
......@@ -44,7 +44,7 @@ def gravg(f, ifo):
omicron = 1
# a sort of theta function (Fermi distr.)
coeff = 1/(1 + 3**(gamma*(f-fk)))
coeff = 3**(-gamma*f)/(3**(-gamma*f) + 3**(-gamma*fk))
# modelization of seismic noise (vertical)
ground = a*coeff + a*(1-coeff)*(fk/f)**2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment