如何设置此xrange,请查看函数g(x)是否为高斯函数?谢谢
c = 299792458
kB = 1.380649*10**(-23)
T = 10000
m_he = 6.64424*10**(-27)
nun_he = 4.55746e+14
nuth_he = (2*kB*T/m_he)**(0.5)
konst2 = 11e+12
g(x) = 1-konst2/((pi)**(0.5)*(nuth_he))*exp(-((x-nun_he)**2)/(nuth_he**2))
set xtics rotate by -90
set term pngcairo size 800,1200 enhanced font "Segoe UI,18"
set output "out.png"
set format y "%4.2sx10^{%T}"
x0=4.55746e+14
set xrange [x0-0.00001e+14:x0+0.00001e+14]
plot g(x) with lines lw 2.5 linecolor rgb "medium-blue", "<echo '4.55746e+14 1'" with points ls 7 ps 2发布于 2019-12-12 12:57:00
请检查Gauss function的基础知识。基本上,因子σ决定了峰值的宽度(在本例中为nuth_he)。因此,如果您选择范围,例如从x0-3σ到x0+3σ,您应该可以很好地看到曲线。
x0=4.55746e+14
set xrange [x0-nuth_he*3:x0+nuth_he*3]然而,这应该是什么呢?
"<echo '4.55746e+14 1'" with points ls 7 ps 2是画一个点还是一条线?但同样,这将是y的数量级,与高斯曲线不同。有了这个点或一条线,你就看不到高斯曲线的峰值或低谷了。

https://stackoverflow.com/questions/59297680
复制相似问题