Taizun commited on
Commit
fef8a14
·
verified ·
1 Parent(s): d6d625e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -295,8 +295,17 @@ def main():
295
  if equation:
296
  try:
297
  # Solve the equation or expression
298
- solution = solve_equation(equation)
299
- steps = generate_steps(equation)
 
 
 
 
 
 
 
 
 
300
 
301
  # Display solution
302
  st.markdown("### Solution")
 
295
  if equation:
296
  try:
297
  # Solve the equation or expression
298
+ if "laplace" in equation.lower():
299
+ solution = laplace_transform_expression(equation)
300
+ steps = solution # Since Laplace transform doesn't have steps like solving an equation
301
+ elif "integrate" in equation.lower():
302
+ solution = integrate_expression(equation)
303
+ steps = solution # Integration steps are handled inside `integrate_expression`
304
+ else:
305
+ solution = solve_equation(equation)
306
+ steps = solution # If neither Laplace nor integration, solve normally
307
+
308
+
309
 
310
  # Display solution
311
  st.markdown("### Solution")