Spaces:
Sleeping
Sleeping
Update linear.py
Browse files
linear.py
CHANGED
|
@@ -41,7 +41,7 @@ def solve_linear_system_from_coeffs(eq1_str, eq2_str):
|
|
| 41 |
eq_latex = f"$$ {sp.latex(eq1)} \\ {sp.latex(eq2)} $$"
|
| 42 |
|
| 43 |
steps = rf"""
|
| 44 |
-
###
|
| 45 |
1. **Original Equations:**
|
| 46 |
$$ {sp.latex(eq1)} $$
|
| 47 |
$$ {sp.latex(eq2)} $$
|
|
@@ -83,13 +83,13 @@ def linear_tab():
|
|
| 83 |
linear_eq1_input = gr.Textbox(label="Equation 1 Coefficients (a1 b1 c1)", placeholder="e.g. 2 1 8")
|
| 84 |
linear_eq2_input = gr.Textbox(label="Equation 2 Coefficients (a2 b2 c2)", placeholder="e.g. 1 -1 2")
|
| 85 |
|
| 86 |
-
linear_example_btn = gr.Button("
|
| 87 |
-
preview_button = gr.Button("
|
| 88 |
|
| 89 |
linear_equation_display = gr.Markdown()
|
| 90 |
with gr.Row():
|
| 91 |
-
confirm_btn = gr.Button("
|
| 92 |
-
cancel_btn = gr.Button("
|
| 93 |
|
| 94 |
linear_steps_md = gr.Markdown()
|
| 95 |
linear_plot = gr.Plot()
|
|
|
|
| 41 |
eq_latex = f"$$ {sp.latex(eq1)} \\ {sp.latex(eq2)} $$"
|
| 42 |
|
| 43 |
steps = rf"""
|
| 44 |
+
### Step-by-step Solution
|
| 45 |
1. **Original Equations:**
|
| 46 |
$$ {sp.latex(eq1)} $$
|
| 47 |
$$ {sp.latex(eq2)} $$
|
|
|
|
| 83 |
linear_eq1_input = gr.Textbox(label="Equation 1 Coefficients (a1 b1 c1)", placeholder="e.g. 2 1 8")
|
| 84 |
linear_eq2_input = gr.Textbox(label="Equation 2 Coefficients (a2 b2 c2)", placeholder="e.g. 1 -1 2")
|
| 85 |
|
| 86 |
+
linear_example_btn = gr.Button("Load Example")
|
| 87 |
+
preview_button = gr.Button("Preview Equations")
|
| 88 |
|
| 89 |
linear_equation_display = gr.Markdown()
|
| 90 |
with gr.Row():
|
| 91 |
+
confirm_btn = gr.Button("Display Solution", visible=False)
|
| 92 |
+
cancel_btn = gr.Button("Make Changes in Equation", visible=False)
|
| 93 |
|
| 94 |
linear_steps_md = gr.Markdown()
|
| 95 |
linear_plot = gr.Plot()
|