TroglodyteDerivations commited on
Commit
9988893
1 Parent(s): 313732c

Updated lines 80-104 with: variable name modifications

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -77,13 +77,13 @@ def main():
77
 
78
  if st.button("Formulations Required For Solving Problem"):
79
  st.write("### Formulations")
80
- st.latex(r'Accelerating_rhino: s_1(t) = \frac{1}{2}at^2')
81
  st.write("")
82
- st.latex(r'Constant_speed_rhino: s_2(t) = vt')
83
  st.write("")
84
- st.latex(r'Total_Distance_Covered_by_both_rhinos: 1600 meters')
85
  st.write("")
86
- st.latex(r'Utilize_form: ax^2 + bx + c = 0')
87
  st.write("")
88
  st.latex(r'a = \frac{1}{2}\frac{1}{16}t^2')
89
  st.write("")
@@ -95,13 +95,13 @@ def main():
95
  st.write("")
96
  st.latex(r'\Delta = b^2 - 4ac = 15^2 - 4\frac{1}{16}1600 = 225 + 400 = 625')
97
  st.write("")
98
- st.latex(r'Solve_for_t: t = \frac{-15+-\sqrt(625)}{\frac{1}{8}} = \frac{-15 +- 25}{\frac{1}{8}}')
99
  st.write("")
100
- st.latex(r'Positive_solution: t = \frac{10}{\frac{1}{8}} = 80 seconds')
101
  st.write("")
102
- st.latex(r'Accelerating_rhino s_1(t) = s_1(80) = \frac{1}{2}\frac{1}{8}80^2 = \frac{1}{16}6400 = 400 meters')
103
  st.write("")
104
- st.latex(r'Constant_speed_rhino s_2(t) = s_2(80) = 15 * 80 = 1200 meters')
105
  st.write("")
106
 
107
  if st.button("Calculate"):
 
77
 
78
  if st.button("Formulations Required For Solving Problem"):
79
  st.write("### Formulations")
80
+ st.latex(r'AR: s_1(t) = \frac{1}{2}at^2') # accelerating rhino
81
  st.write("")
82
+ st.latex(r'CSR: s_2(t) = vt') # constant speed rhino
83
  st.write("")
84
+ st.latex(r'TDCBBR: 1600 meters') # total distance covered by both rhinos
85
  st.write("")
86
+ st.latex(r'Utilize: ax^2 + bx + c = 0')
87
  st.write("")
88
  st.latex(r'a = \frac{1}{2}\frac{1}{16}t^2')
89
  st.write("")
 
95
  st.write("")
96
  st.latex(r'\Delta = b^2 - 4ac = 15^2 - 4\frac{1}{16}1600 = 225 + 400 = 625')
97
  st.write("")
98
+ st.latex(r'Solve: t = \frac{-15+-\sqrt(625)}{\frac{1}{8}} = \frac{-15 +- 25}{\frac{1}{8}}')
99
  st.write("")
100
+ st.latex(r'Psol: t = \frac{10}{\frac{1}{8}} = 80 seconds') # positive solution
101
  st.write("")
102
+ st.latex(r's_1(t) = s_1(80) = \frac{1}{2}\frac{1}{8}80^2 = \frac{1}{16}6400 = 400 meters') # accelerating rhino AR s_1(t)
103
  st.write("")
104
+ st.latex(r's_2(t) = s_2(80) = 15 * 80 = 1200 meters') # Constant speed rhino s_2(t)
105
  st.write("")
106
 
107
  if st.button("Calculate"):