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?

Calculating the Radius Using the Inscribed Angle Theorem and the Law of Sines 「円周角の定理と正弦定理を用いた半径の計算方法」をAI先生に教えてもらいました。

0
Last updated at Posted at 2026-09-07
弦の長さ と 円周角から 円の半径を求めて下さい。

(回答抜粋)

計算の根拠
1.円周角の定理:...
2.正弦定理 (Sine Rule):..

sympyで

# SymPyを用いたシンボリックなユーザー定義関数の定義と評価

import sympy as sp

# 1. 記号(Symbol)の定義
L, theta = sp.symbols('L theta')

# 2. ユーザー定義関数(シンボリックな計算処理)の定義
def calculate_radius(chord_length, inscribed_angle):
    """
    弦の長さ(chord_length)と円周角(inscribed_angle)から
    円の半径をシンボリックに計算する関数
    """
    return chord_length / (2 * sp.sin(inscribed_angle))

# 3. 記号のまま関数を呼び出し(シンボリックな計算結果の取得)
R_symbolic = calculate_radius(L, theta)

# 4. 結果の表示
print("=== ユーザー定義関数 ===")
import inspect
print(inspect.getsource(calculate_radius))

print("=== シンボリックな計算結果 ===")
print("R =", R_symbolic)

・実行結果

=== ユーザー定義関数 ===
def calculate_radius(chord_length, inscribed_angle):
    """
    弦の長さ(chord_length)と円周角(inscribed_angle)から
    円の半径をシンボリックに計算する関数
    """
    return chord_length / (2 * sp.sin(inscribed_angle))

=== シンボリックな計算結果 ===
R = L/(2*sin(theta))

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

Qiita 内

wikipedia で

sympy doc

・

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?