0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

共通接線「15年 福島大 人文社会 4」をWolframAlpha とsympyでやってみた。

Last updated at Posted at 2022-08-09

オリジナル
y=-2x^3+3,y=-2x^3-1 3次関数がy方向へ-4移動です。

大学入試数学問題集成>

WolframAlpha で

プロット

sympyで

from sympy import *
var('x yf yg s t ')
y1=-2*x**3+3
y2=-2*x**3-1
Sbs={x:s}
Sbt={x:t}
y1L=diff(y1,x).subs(Sbs)*(x-s)+y1.subs(Sbs)
y2L=diff(y2,x).subs(Sbt)*(x-t)+y2.subs(Sbt)
myCoff=Poly(y1L-y2L,x).all_coeffs()
ans=solve([myCoff[0],myCoff[1]],[s,t])
print("# y =",y1L.subs({s:ans[0][0]}).simplify())
# y = -3*2**(1/3)*x + 1
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?