Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from sympy import symbols, solve, S, Interval
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import numpy as np
|
| 5 |
|
|
@@ -131,7 +131,7 @@ def inequality_solver():
|
|
| 131 |
solution = solve(inequality, x)
|
| 132 |
|
| 133 |
st.subheader("不等式の解")
|
| 134 |
-
st.write(str(solution).replace("& (x < oo)",""))
|
| 135 |
|
| 136 |
if __name__ == "__main__":
|
| 137 |
main()
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from sympy import symbols, solve, S, Interval, Eq
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import numpy as np
|
| 5 |
|
|
|
|
| 131 |
solution = solve(inequality, x)
|
| 132 |
|
| 133 |
st.subheader("不等式の解")
|
| 134 |
+
st.write(Eq(str(solution).replace("& (x < oo)","")))
|
| 135 |
|
| 136 |
if __name__ == "__main__":
|
| 137 |
main()
|