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?

「(2023)令和5年二級建築士試験学科Ⅲ(建築構造)〔No.1〕」断面二次モーメントをsympyでしました。

Last updated at Posted at 2025-09-08

・sympyのPolygonのsecond_momentで
https://docs.sympy.org/latest/modules/geometry/polygons.html#sympy.geometry.polygon.Polygon.second_moment_of_area

Qiita_建築士
https://qiita.com/mrrclb48z/items/893cb0967e4ddb2945f7

オリジナル

・過去問.com ニ級建築士 様

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

ver0.1

# ver0.1
from sympy import *
var('L,b,h,y')
# ①
L=solve(Eq(24*L,12*3+12*1),L)[0]
# ②
I=b*h**3/12+b*h*y**2
print("#", I.subs({b:2,h:6,y:L-3}) \
          +I.subs({b:6,h:2,y:L-1}))
# 64

sympyで

ver0.3

・反時計回り
・図心の時は、()に入力しては、いけない。

# ver0.3
from sympy import *
print("#",Polygon((0,0),(2+6,0),(2+6,2),(2,2),(2,2+4),(0,2+4)) \
          .second_moment_of_area()[0])
# 64

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

(テンプレート)

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

断面二次モーメント < Qiita内

・類題が多数あります。

sympyのdoc < Qiita内

公式ホームページ

(2023)令和5年二級試験問題〔No.1〕と正答肢
https://www.jaeic.or.jp/shiken/2k/2k-mondai.files/2k-2024-1st-gakka3_4.pdf#page=2
https://www.jaeic.or.jp/shiken/2k/2k-mondai.files/2k-2024-1st-gokakukijun-r1.pdf

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?