1
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?

大人用です。面積計算「高校入試チャレンジ問題 四角形FBCDの面積は?」様を、計算はsympyで作図は手抜きのつもりでした。

1
Posted at

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

オリジナル

YUUU0123 様 (0:00〜3:22) いつもお世話になっております。
↓高校入試チャレンジ問題 四角形FBCDの面積は?
https://youtu.be/sszRNrb2vhc

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

ver0.1

・先生の丸写しです。

# ver0.1
from sympy import *
var('a',real=True,positive=True)
a  =solve(Eq(3*a,3*sqrt(3)),a)[0]  #;print(a)
DFC=4*a*3/2                        #;print(DFC)
FCB=6*3*a/2                        #;print(FCB) 
print("#",DFC+FCB)
# 15*sqrt(3)

いつもの sympyで

ver1.1

・30°の方程式です。

# ver1.1
from sympy import *
var('h',real=True,positive=True)
B,C=map(Point,[(0,0),(6,0)])
D,A=map(Point,[(6,h),(0,h)])
E  =A.midpoint(B)
F  =E.midpoint(D)
rep={h:solve(Eq(Line(B,F).angle_between(Line(B,A)).simplify(),pi/6),h)[0]} #;print(rep)
F  =F.subs(rep)
D  =D.subs(rep)
print("#",Polygon(F,B,C,D).area)
# 15*sqrt(3)

ver1.2

・CAD風です。1点ずつ。図形の証明を省略です。

# ver1.2
from sympy import *
B=  Point(0,0)
C=  Point(6,0)
F=B+Point(3,3*sqrt(3))
D=C+Point(0,F.y*4/3)
print("#",Polygon(F,B,C,D).area)
# 15*sqrt(3)

(本日の)ChatGPT先生へ

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

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

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

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

sympyのweb上での実行方法

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

(テンプレート)

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

sympy のdoc

ver0.1

ver1.1

・angle_between(l2) < Line
https://docs.sympy.org/latest/modules/geometry/lines.html#sympy.geometry.line.LinearEntity.angle_between

ver1.2

1
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
1
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?