The public jupyter-notebooks for computational physics lecture. 华中师范大学研究生课程《数值分析与计算物理》开源代码 任课老师:庞龙刚
Find an expression for the energy of the photons produced from the $\\pi^0$ decays as a function of $m_\\pi$, $E_{lab}$ and $\\theta^*$ (the angle of emission of the photon with respect to the $z$-axis in the pion rest frame). Using this expression, show that the lab ...
import matplotlib.pyplot as plt import numpy as np # 这里作图看一下有限差分方法的误差 def comparison(dx): xcoord = np.linspace(0, np.pi, 20) # 解析微分的结果 dfdx_ana = [dfdx.subs(x, xi) for xi in xcoord] # 有限差分的结果 dfdx_num = [finite_difference(f, xi, dx) for xi ...
import matplotlib.pyplot as plt import numpy as np # 这里作图看一下有限差分方法的误差 def comparison(dx): xcoord = np.linspace(0, np.pi, 20) # 解析微分的结果 dfdx_ana = [dfdx.subs(x, xi) for xi in xcoord] # 有限差分的结果 dfdx_num = [finite_difference(f, xi, dx) for xi ...