aboutsummaryrefslogtreecommitdiffstats
path: root/234/plots.gp
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2025-04-14 00:34:52 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2025-04-14 00:34:52 +0300
commit5ee716791bf7a8ca74c1670a6887a53ab92141f6 (patch)
tree0a5a522f89d258ec36f4af23cc60aaa578abe7e8 /234/plots.gp
parent320bf2f0155edd67557a3042403eeb843b90a41d (diff)
added 218, 226, 234, 240
Diffstat (limited to '234/plots.gp')
-rw-r--r--234/plots.gp30
1 files changed, 30 insertions, 0 deletions
diff --git a/234/plots.gp b/234/plots.gp
new file mode 100644
index 0000000..a357dca
--- /dev/null
+++ b/234/plots.gp
@@ -0,0 +1,30 @@
+set term pngcairo size 1000, 800
+set grid
+
+f1(x) = a1*sqrt(b1*x)
+f2(x) = a2/(x-b2)+c2
+f3(x) = a3*x+b3
+fit f1(x) 's(n).plot' using 1:2 via a1, b1
+fit f2(x) 'sn(n).plot' using 1:2 via a2, b2, c2
+fit f3(x) 's2(n).plot' using 1:2 via a3, b3
+
+set output 's(n).png'
+set title "График зависимости дисперсии, стандартного отклонения и относительной флуктуации от среднего"
+set y2tics
+set xlabel "n, среднее"
+set ylabel "s, s/n"
+set y2label "s^2"
+set key top lef
+set yrange[0:7]
+set y2range[0:35]
+
+
+plot 's(n).plot' with lines title "s(n)" lc rgb('red') lw 2, \
+ 'sn(n).plot' with lines title "s/n(n)" lc rgb('blue') lw 2, \
+ 's2(n).plot' with lines title "s^2(n)" axes x1y2 lc rgb('green') lw 2, \
+ 's(n).plot' lc 0 pt 2 lw 2 notitle,\
+ 'sn(n).plot' lc 0 pt 2 lw 2 notitle,\
+ 's2(n).plot' lc 0 pt 2 lw 2 axes x1y2 notitle,\
+ f1(x) lc 0 lw 1 dashtype(20,10) notitle,\
+ f2(x) lc 0 lw 1 dashtype(20,10) notitle,\
+ f3(x) axes x1y2 notitle lc 0 lw 1 dashtype(20,10)