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?

大人用です。面積計算「高校入試チャレンジ問題 円Oの面積を求めよ」様を、計算はsympyで作図は手抜きのつもりでした。

0
Last updated at Posted at 2026-08-09

・本日作図できませんでした。申し訳ありません。
・ChatGPT
 「現在、データ分析 を使い切りました。さらに使うには無料のPlus トライアルを開始するか、明日の 20:28 以降 にもう一度お試しください。」

オリジナル

YUUU0123 様 (0:00〜3:40) いつもお世話になっております。
↓高校入試チャレンジ問題 円Oの面積を求めよ
https://youtu.be/sszRNrb2vhc

いつものsympyで(オリジナル Youtbe様の方法を参考に)

ver0.1

・先生の丸写しです。HL Theorem(HL合同定理)は本ページの最後です。

# ver0.1
from sympy import *
var('r',real=True,positive=True)
AD=sqrt(7**2-5**2)                       #;print(AD)
r =solve(Eq(r**2,(AD-r)**2+2**2),r)[0]   #;print(r)
print("#",pi*r**2)
# 49*pi/6

いつもの sympyで

ver1.1

・もっと sympy らしく? 円と直線の交点計算です。(中心C半径7の円と半直線DA)

# ver1.1
from sympy import *
CD,DB=5,2
C,D,B=map(Point,[(0,0),(CD,0),(CD+DB,0)])
CA   =CD+DB
A    =Circle(C,CA).intersection(Line(C,D).perpendicular_line(D))[1]
O    =              Line(C,A).perpendicular_line(A) \
      .intersection(Line(C,B).perpendicular_line(B))[0]
print("#",pi*O.distance(B)**2)
# 49*pi/6

(本日の)ChatGPT先生へ

・作図はコチラ。Gemini先生は苦手のようです。

PNG図のみ出力して下さい。
(ソースコードの表示を省略)

(再)現在、データ分析 を使い切りました。さらに使うには無料のPlus トライアルを開始するか、明日の 20:28 以降 にもう一度お試しください。

いつもの? sympyの実行環境 と 参考のおすすめです。

sympyのweb上での実行方法

SymPy Live Shellで。FreeCADのマクロは、以下で実行できません。

(テンプレート)

いつもと違うおすすめです。

sympy のdoc

ver0.1

ver1.1

Qiita内

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?