aboutsummaryrefslogtreecommitdiffstats
path: root/vtek7
diff options
context:
space:
mode:
Diffstat (limited to 'vtek7')
-rw-r--r--vtek7/main.cpp8
-rw-r--r--vtek7/plots.gp6
2 files changed, 10 insertions, 4 deletions
diff --git a/vtek7/main.cpp b/vtek7/main.cpp
index b5d4318..8796779 100644
--- a/vtek7/main.cpp
+++ b/vtek7/main.cpp
@@ -27,10 +27,10 @@ f64 U_err_MS8040(vecarg a) {
}
f64 I_err_MS8040(vecarg a) {
f64 i = a[0];
- if (i < 2e-4) return i * 0.0015 + 15e-8;
- if (i < 2e-3) return i * 0.0015 + 15e-7;
- if (i < 2e-2) return i * 0.0015 + 15e-6;
- return i * 0.0015 + 15e-5;
+ if (i < 2e-4) return i * 0.0015 + 1.5e-7;
+ if (i < 2e-3) return i * 0.0015 + 1.5e-6;
+ if (i < 2e-2) return i * 0.0015 + 1.5e-5;
+ return i * 0.005 + 15e-5;
}
f64 U_err_DT320B(vecarg a) {
f64 u = a[0];
diff --git a/vtek7/plots.gp b/vtek7/plots.gp
index 0f38281..fcc1567 100644
--- a/vtek7/plots.gp
+++ b/vtek7/plots.gp
@@ -1,4 +1,5 @@
set term pngcairo size 1000, 800
+set grid lw 2
f1(x) = a1 * x + b1
fit f1(x) 'ex1_EL.plot' yerr via a1, b1
@@ -42,6 +43,7 @@ plot 'ex1_EL.plot' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \
reset
+set grid lw 2
set output 'ex2.png'
set title "Зависимосьть I, U фотоида от освещённости E"
@@ -59,6 +61,7 @@ plot 'ex2_IE.plot' axis x1y2 with lines title "I(E)",\
f21(x) axis x1y2 lt 10 notitle, f22(x) axis x1y1 lt 10 notitle
reset
+set grid lw 2
set output 'ex3.png'
set term pngcairo size 1272, 900
@@ -86,6 +89,8 @@ set xrange[0:0.5]
replot
reset
+set grid lw 2
+
set term pngcairo size 1000, 800
set output 'ex4.png'
@@ -105,6 +110,7 @@ plot 'ex4_UE.plot' axis x1y1 with lines title "U(E)",\
f41(x) lt 10 notitle , f42(x) axis x1y2 lt 10 notitle
reset
+set grid lw 2
set output 'ex6_1.png'
set title "ВАХ Солнечной батареи"