Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,8 +295,17 @@ def main():
|
|
| 295 |
if equation:
|
| 296 |
try:
|
| 297 |
# Solve the equation or expression
|
| 298 |
-
|
| 299 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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")
|