Update app.py
Browse files
app.py
CHANGED
|
@@ -90,8 +90,8 @@ elif selected_function == "関数の交点":
|
|
| 90 |
func2_expression = st.text_input("2つ目の関数を入力してください:")
|
| 91 |
if func1_expression and func2_expression:
|
| 92 |
x = symbols('x', real=True)
|
| 93 |
-
func1 = simplify(func1_expression)
|
| 94 |
-
func2 = simplify(func2_expression)
|
| 95 |
intersection_points = solve(Eq(func1, func2), x)
|
| 96 |
st.success(f"関数の交点の座標: {intersection_points}")
|
| 97 |
|
|
|
|
| 90 |
func2_expression = st.text_input("2つ目の関数を入力してください:")
|
| 91 |
if func1_expression and func2_expression:
|
| 92 |
x = symbols('x', real=True)
|
| 93 |
+
func1 = simplify(parse_expr(func1_expression))
|
| 94 |
+
func2 = simplify(parse_expr(func2_expression))
|
| 95 |
intersection_points = solve(Eq(func1, func2), x)
|
| 96 |
st.success(f"関数の交点の座標: {intersection_points}")
|
| 97 |
|