LoginSignup
0
3

More than 3 years have passed since last update.

2直線の交点と連立方程式の解

Last updated at Posted at 2021-05-05

2直線の交点と連立方程式の解をPythonとJupyter Notebookを使って解きました
ソースはこちらです。

x = sp.Symbol('x')
y = sp.Symbol('y')

expr1 = sp.Eq(y,70*x)
expr2 = sp.Eq(y,100*x-600)

#交点の座標を求める場合
ans = sp.solve([expr1,expr2])
ans

#グラフを描く場合
sp.plot(70*x,100*x-600,(x,0,30))

Pythonを使った数学とデータ分析は便利ですね。

0
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3