学習環境
- Surface、Surface ペン(端末)
- Windows 10 Pro (OS)
- Nebo(Windows アプリ)
- iPad Pro 10.5 + Apple Pencil
- MyScript Nebo - MyScript(iPad アプリ(iOS))
- 参考書籍
新装版 数学読本2 (松坂 和夫(著)、岩波書店)の第6章(図形と和也式の関係 - 平面図形と式)、6.3(円と軌跡)、円の接線の問27の解答を求めてみる。
接点の座標を
とおく。
接線の方程式は、
点 (4,0) と通るから
また、接点は問題の円周上の点なので
よって、
よって、 求める接線の方程式は、
よって求める接線の方程式は、
コード
Python 3
#!/usr/bin/env python3
from sympy import pprint, symbols, plot, solve, sqrt, Rational
print('27.')
x = symbols('x', real=True)
ys = [1 / sqrt(3) * (-x + 4),
-1 / sqrt(3) * (-x + 4),
(3 * x - 25) / 4,
(-4 * x + 25) / 3]
for y in ys:
pprint(y)
print()
colors = ['red', 'green', 'blue', 'brown', 'orange',
'purple', 'pink', 'gray', 'skyblue', 'yellow']
p = plot((-sqrt(4 - x ** 2), (x, -1.9, 1.9)),
(sqrt(4 - x ** 2), (x, -1.9, 1.9)),
(-sqrt(25 - x ** 2), (x, -4.9, 4.9)),
(sqrt(25 - x ** 2), (x, -4.9, 4.9)),
*[(y0, (x, -10, 10)) for y0 in ys],
ylim=(-10, 10),
legend=True,
show=False)
for s, color in zip(p, colors):
s.line_color = color
p.show()
p.save('sample27.png')
入出力結果(Bash、cmd.exe(コマンドプロンプト)、Terminal、Jupyter(IPython))
C:\Users\...>py sample27.py
27.
√3⋅(4 - x)
──────────
3
-√3⋅(4 - x)
────────────
3
3⋅x 25
─── - ──
4 4
25 4⋅x
── - ───
3 3
C:\Users\...>
0 コメント:
コメントを投稿