Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import sympy as sp
|
3 |
-
from solver import solve_equation,
|
4 |
from plotter import plot_function
|
5 |
from utils import load_css, initialize_session_state
|
6 |
from auth import (
|
@@ -295,17 +295,8 @@ def main():
|
|
295 |
if equation:
|
296 |
try:
|
297 |
# Solve the equation or expression
|
298 |
-
|
299 |
-
|
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")
|
|
|
1 |
import streamlit as st
|
2 |
import sympy as sp
|
3 |
+
from solver import solve_equation, generate_steps
|
4 |
from plotter import plot_function
|
5 |
from utils import load_css, initialize_session_state
|
6 |
from auth import (
|
|
|
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")
|