大家好, 這裡的記事本支援 markdown 格式,也支援程式碼,和寫數學式的 $\LaTeX$ 語法。 歡迎大家多多利用這個記事本。 ### 標題舉例 試解方程式:$x^2+2\,x-1=0$ ```python= from sympy import symbols, Eq, solve x = symbols('x') eq = Eq(x**2 + 2*x - 1, 0) solutions = solve(eq, x) print(solutions) ``` output: ``` [-1 + sqrt(2), -sqrt(2) - 1] ``` 解為: $$ {x=-\sqrt{2}-1,x=\sqrt{2}-1} $$