From 89d26d5d0e8ff2b026cc99606868699f6fcc08db Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Mon, 18 Nov 2024 23:40:21 +0300 Subject: added tempalte --- tempalte/Makefile | 18 ++++++++++++++++++ tempalte/README.md | 5 +++++ tempalte/compile_flags.txt | 4 ++++ tempalte/include | 1 + tempalte/main.cpp | 14 ++++++++++++++ tempalte/plots.gp | 14 ++++++++++++++ 6 files changed, 56 insertions(+) create mode 100644 tempalte/Makefile create mode 100644 tempalte/README.md create mode 100644 tempalte/compile_flags.txt create mode 120000 tempalte/include create mode 100644 tempalte/main.cpp create mode 100644 tempalte/plots.gp (limited to 'tempalte') diff --git a/tempalte/Makefile b/tempalte/Makefile new file mode 100644 index 0000000..eb309ff --- /dev/null +++ b/tempalte/Makefile @@ -0,0 +1,18 @@ + +CFLAGS = -std=c++2c -mavx -Iinclude -ggdb + +.PHONY: all run_main clean gnuplot + +run: gnuplot + +gnuplot: plots.gp run_main + gnuplot $< + +run_main: main + ./main + +main: main.cpp include/* + $(CXX) -o $@ $< $(CFLAGS) + +clean: + rm -fr main *.png *.plot diff --git a/tempalte/README.md b/tempalte/README.md new file mode 100644 index 0000000..96fd716 --- /dev/null +++ b/tempalte/README.md @@ -0,0 +1,5 @@ + + +# Обработка <> прака + + diff --git a/tempalte/compile_flags.txt b/tempalte/compile_flags.txt new file mode 100644 index 0000000..34ae930 --- /dev/null +++ b/tempalte/compile_flags.txt @@ -0,0 +1,4 @@ +-Iinclude +-std=c++2c +-mavx2 + diff --git a/tempalte/include b/tempalte/include new file mode 120000 index 0000000..2225752 --- /dev/null +++ b/tempalte/include @@ -0,0 +1 @@ +../libprakpp/include/ \ No newline at end of file diff --git a/tempalte/main.cpp b/tempalte/main.cpp new file mode 100644 index 0000000..b1ce4e1 --- /dev/null +++ b/tempalte/main.cpp @@ -0,0 +1,14 @@ +#include + +#include "include/praktable.hpp" + +using table = prak::table; + +void ex1(void) { + table t; +} + +int main() { + ex1(); + return 0; +} diff --git a/tempalte/plots.gp b/tempalte/plots.gp new file mode 100644 index 0000000..702408a --- /dev/null +++ b/tempalte/plots.gp @@ -0,0 +1,14 @@ +set term pngcairo size 1000, 800 +set tmargin at screen 0.95 + +f1(x) = a1*x+b1 +fit f1(x) '.plot' using 1:2:3 yerr via a1, b1 + +set output '' +set label "" at graph 0.5, graph 1.025 center +set xlabel "" +set ylabel "" + +plot '.plot' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \ + f1(x) title "" lc rgb "red", \ + -- cgit v1.2.3-70-g09d2