Skip to content
Snippets Groups Projects
Commit 32377597 authored by tomrink's avatar tomrink
Browse files

minor bug

parent 1b8f0fce
No related branches found
No related tags found
No related merge requests found
...@@ -113,6 +113,5 @@ def pressure_to_altitude(pres, temp, prof_pres, prof_temp, sfc_pres, sfc_temp, s ...@@ -113,6 +113,5 @@ def pressure_to_altitude(pres, temp, prof_pres, prof_temp, sfc_pres, sfc_temp, s
# http://fourier.eng.hmc.edu/e176/lectures/NM/node25.html # http://fourier.eng.hmc.edu/e176/lectures/NM/node25.html
def minimize_quadratic(xa, xb, xc, ya, yb, yc): def minimize_quadratic(xa, xb, xc, ya, yb, yc):
x_min = xb + 0.5*(((ya-yb)*(xc-xb)*(xc-xb) - (yc-yb)*(xb-xa)(xb-xa)) / x_m = xb + 0.5*(((ya-yb)*(xc-xb)*(xc-xb) - (yc-yb)*(xb-xa)*(xb-xa)) / ((ya-yb)*(xc-xb) + (yc-yb)*(xb-xa)))
((ya-yb)*(xc-xb) + (yc-yb)*(xb-xa))) return x_m
return x_min \ No newline at end of file
\ No newline at end of file
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