Q2=10 and Q2=1--PLB(Fig.4)

(个人学习笔记,仅供参考)

python 复制代码
import numpy as np
from scipy.special import kv, erfc
from scipy.integrate import dblquad
import matplotlib.pyplot as plt
import scipy.integrate as spi
python 复制代码
# Constants
w = 0.6198
g0_sq = 21.5989
rho = 0.782908
Q2 = 10.0
P2 = 0.01
z0 = 4.25
python 复制代码
for x in x_values:
    result, error = compute_integral(x)
    integral_results178.append(result)
    errors.append(error)

# Convert results to numpy arrays for further processing or plotting
integral_results178 = np.array(integral_results178)
errors = np.array(errors)
python 复制代码
integral_results178T = integral_results178 - integral_results178L

integral_results178R = integral_results178L/integral_results178T
python 复制代码
plt.figure(figsize=(5, 3))
plt.plot(x_values, integral_results1R, label='$Q^2=1$GeV$^2$', color='red')
plt.plot(x_values, integral_results178R, label='$Q^2=10$GeV$^2$', color='blue')
plt.xlabel('x')
plt.xscale('log')
plt.xlim(1e-5, 0.1)
plt.ylim(-0.05, 0)  # Adjust y-axis based on max result
plt.ylabel('$F_2^{\gamma}(x,Q^2)$')
plt.legend()
plt.show()
相关推荐
站大爷IP30 分钟前
Java调用Python的5种实用方案:从简单到进阶的全场景解析
python
用户8356290780516 小时前
从手动编辑到代码生成:Python 助你高效创建 Word 文档
后端·python
_落纸6 小时前
三大基础无源电子元件——电阻(R)、电感(L)、电容(C)
笔记
c8i6 小时前
python中类的基本结构、特殊属性于MRO理解
python
liwulin05067 小时前
【ESP32-CAM】HELLO WORLD
python
Alice-YUE7 小时前
【CSS学习笔记3】css特性
前端·css·笔记·html
2303_Alpha7 小时前
SpringBoot
笔记·学习
Doris_20237 小时前
Python条件判断语句 if、elif 、else
前端·后端·python
Doris_20237 小时前
Python 模式匹配match case
前端·后端·python
这里有鱼汤7 小时前
Python量化实盘踩坑指南:分钟K线没处理好,小心直接亏钱!
后端·python·程序员