LoginSignup
0
0

More than 1 year has passed since last update.

直線の方程式「22年 東北学院大 工 A 1(3)」をsympyでやってみた。

Last updated at Posted at 2022-08-18

オリジナル
直交する直線の方程式は...

大学入試数学問題集成>
(20220818)未掲載

sympyで

from sympy import *
y=Symbol('y',real=True)
P=Point(-2,-3)
Q=Point( 4, 3)
M=P+(Q-P)*1/3
L=Line(P,Q).perpendicular_line(M)
print("#",solve(L.equation(),y)[0])
# -x - 1

参考

perpendicular_line(p)<

0
0
0

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
0