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?

More than 1 year has passed since last update.

静力学と材料力学 基本例題1.22 P16「材料力学演習(20221021)」をsympyでやってみた。

Last updated at Posted at 2023-05-11

オリジナル

基本例題1.22 P16
http://zairikiweb.starfree.jp/zai_enshuh/zai_enshuh_ver.3.3.pdf#page=21

「材料力学演習(20221021)一括(ver.3.3)」を勉強したい。>sympy
https://qiita.com/mrrclb48z/items/c3274daf5f7a99cfe027#%E4%BD%9C%E6%A5%AD%E4%B8%AD%E7%A7%81%E3%81%AE%E8%A7%A3%E7%AD%94sympy

sympyで

from sympy import *
a  ,b  =symbols('a b'    ,real=True)
t      =symbols('t'      ,real=True)
P      =symbols('P'      ,real=True)
T      =symbols('T'      ,real=True)
RAH,RAV=symbols('RAH,RAV',real=True)
myFx=Eq(  RAH-T*cos(t)    ,0)
myFy=Eq(  RAV+T*sin(t)-P  ,0)
myM =Eq((a+b)*T*sin(t)-a*P,0)    # (Aまわり)
ans=solve([myFx,myFy,myM],[T,RAH,RAV])
print("#T  ",ans[T  ].simplify())
print("#RAH",ans[RAH].simplify())
print("#RAv",ans[RAV].simplify())
#T   P*a/((a + b)*sin(t))
#RAH P*a/((a + b)*tan(t))
#RAv P*b/(a + b)

①私の環境は,pycharmです。
②よく聞くのは、Jupyterです。
③web上で、上記のソースを「SymPy Live shell」に、コピー貼り付けでもできました。
黒背景の右上に、マウスを移動すると、コピーマークが発生します。
??? タブレット環境で、コピー貼り付けが実行できませんでした。???

Mathematicaで

勉強中

作図

勉強中

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?