Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def gradient(func, x):
|
|
| 18 |
return (func(x + 1e-5) - func(x)) / 1e-5 # Numerical derivative approximation
|
| 19 |
|
| 20 |
# Sidebar for user input
|
| 21 |
-
st.sidebar.title("
|
| 22 |
|
| 23 |
# Function input
|
| 24 |
function_str = st.sidebar.text_input("Enter the function (in terms of x):", "x^2 + 2*x + 1")
|
|
|
|
| 18 |
return (func(x + 1e-5) - func(x)) / 1e-5 # Numerical derivative approximation
|
| 19 |
|
| 20 |
# Sidebar for user input
|
| 21 |
+
st.sidebar.title("Optimizer Visualizer")
|
| 22 |
|
| 23 |
# Function input
|
| 24 |
function_str = st.sidebar.text_input("Enter the function (in terms of x):", "x^2 + 2*x + 1")
|