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()
相关推荐
光亮的程序猿4 分钟前
confluent-kafka入门教程
python·kafka
0509157 分钟前
测试基础笔记第四天(html)
前端·笔记·html
三天不学习11 分钟前
Python快速入门指南:从零开始掌握Python编程
开发语言·python
知远同学23 分钟前
Docker学习笔记-docker安装、删除
笔记·学习·docker
大数据魔法师26 分钟前
豆瓣图书数据采集与可视化分析
python·数据分析·数据可视化
批量小王子27 分钟前
第1个小脚本:英语单语按字母个数进行升序排序
python
AmazingKO1 小时前
制作像素风《饥荒》类游戏的整体蓝图和流程
人工智能·python·游戏·docker·visual studio code·竹相左边
蜉蝣之翼❉1 小时前
opentelemetry笔记
笔记
趣谈AI1 小时前
使用Trae编辑器开发Python Api (FastApi 框架)
python·编辑器·fastapi
carpell1 小时前
二叉树实战篇2
python·二叉树·数据结构与算法