Ahilan Kumaresan commited on
Commit
9997313
·
1 Parent(s): 3a2ef98

make the oscillator more visually accurate and showing more k values

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -329,7 +329,7 @@ if page == "Simulator":
329
  status_msg = f"Static Square Well (width = {width:.1f})"
330
 
331
  elif potential_mode == "Static Harmonic Oscillator":
332
- k = st.slider("Spring Constant (k)", 0.1, 5.0, 0.5)
333
  V_physics = 0.5 * k * x_internal**2
334
  # scale a bit so it shows nicely under energies
335
  V_physics = V_physics / np.max(V_physics) * 50
 
329
  status_msg = f"Static Square Well (width = {width:.1f})"
330
 
331
  elif potential_mode == "Static Harmonic Oscillator":
332
+ k = st.slider("Spring Constant (k)", 0.1, 50.0, 5.0)
333
  V_physics = 0.5 * k * x_internal**2
334
  # scale a bit so it shows nicely under energies
335
  V_physics = V_physics / np.max(V_physics) * 50