set output "parab.eps"
set terminal postscript eps enhanced 17
set size 0.4,0.5
unset border
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 3 pt 0
set style line 3 lt 3 lw 1 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2)
set ytics axis nomirror in ("1" 1, "2" 2, "3" 3, "4" 4)
set xrange [-2.4:2.4];
set yrange [-0.5:4.5]
set arrow from 0,0 to 2.8
set arrow from 0,0 to 0,4.5
set nokey
set label "0" at -0.4,-0.35
set label "x" at 2.5,-0.3 font "Times-Italic,20"
set label "y" at -0.5,4.5 font "Times-Italic,20"
unset key
plot x*x w l ls 2
set terminal postscript eps enhanced 17
set output "basic_graph.eps"
set size 0.7,1.5
unset border
set multiplot
unset key
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 4 pt 0
set style line 3 lt 2 lw 2 pt 0
set style line 4 lt 3 lw 1 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("-3" -3, "-2" -2, "-1" -1, "1" 1, "2" 2, "3" 3)
set ytics axis nomirror in ("-3" -3, "-2" -2, "-1" -1, "1" 1, "2" 2, "3" 3)
set xrange [-3.4:3.4];
set yrange [-3.4:3.4]
set arrow from 0,0 to 3.4
set arrow from 0,0 to 0,3.4
set label "0" at -0.4,-0.35
set label "x" at 3.4,-0.4 font "Times-Italic,20"
set label "y" at -0.5,3.7 font "Times-Italic,20"
set origin 0.0,1.0; set size 0.37,0.5
set title offset -5,0 "y=2x-1 "
plot 2*x-1 ls 2, 2*x ls 3
set origin 0.35,1.0; set size 0.37,0.5
set title "y= x^2/4"
plot x*x/4 ls 2, x*x ls 3
set origin 0.0,0.5; set size 0.37,0.5
set title "y= -x^2"
plot -x*x ls 2, x*x ls 3
set origin 0.35,0.5; set size 0.37,0.5
set title "y= 2x^2+4x+1"
plot 2*x*x+4*x+1 ls 2, x*x ls 3
set origin 0.0,0.0; set size 0.37,0.5
set title "y= -1/x"
plot -1/x ls 2, 1/x ls 3
set origin 0.35,0.0; set size 0.37,0.5
set title "y=2/(x-1)+1"
set arrow nohead from -3.4,1 to 3.4,1 ls 4
set arrow nohead from 1,-3.4 to 1,3.4 ls 4
plot 2/(x-1)+1 ls 2, 1/x ls 3
set output "x_plus_1_over_x.eps"
set terminal postscript eps enhanced
set size 0.4,0.5
unset border
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 3 pt 0
set style line 3 lt 2 lw 1 pt 0
set style line 4 lt 3 lw 2 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("-3" -3, "-2" -2, "-1" -1, "1" 1, "2" 2, "3" 3)
set ytics axis nomirror in ("-3" -3, "-2" -2, "-1" -1, "1" 1, "2" 2, "3" 3)
set xrange [-3.6:3.6]
set yrange [-3.6:3.6]
set arrow from 0,0 to 3.6,0
set arrow from 0,0 to 0,3.6
set key right bottom
set label "0" at -0.4,-0.35
set label "x" at 3.6,-0.2 font "Times-Italic,20"
set label "y" at -0.6,3.6 font "Times-Italic,20"
plot x t "y=x" ls 3, 1/x t "y=1/x" ls 4, x+1/x t "y=x+1/x" ls 2
set terminal postscript eps enhanced 18
set output "xxx-x.eps"
set size 0.4,0.65
unset border
unset key
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 4 pt 0
set style line 3 lt 3 lw 2 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2)
set ytics axis nomirror in ("-4" -4, "-3" -3, "-2" -2, "-1" -1, "1" 1, "2" 2, "3" 3, "4" 4)
set xrange [-2.4:2.4]
set yrange [-2.8:2.8]
set arrow from 0,0 to 2.4,0
set arrow from 0,0 to 0,2.8
set label "0" at -0.4,-0.5
set label "x" at 2.4,-0.2 font "Times-Italic,20"
set label "y" at -0.5,2.8 font "Times-Italic,20"
plot x*x*x-x ls 2, x*x*x ls 3, -x ls 3
set output "xx_and_sqrt_x.eps"
set terminal postscript eps enhanced
set size 0.4,0.55
unset border
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 2 pt 0
set style line 3 lt 2 lw 2 pt 0
set style line 4 lt 3 lw 1 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("1" 1, "2" 2)
set ytics axis nomirror in ("1" 1, "2" 2)
set xrange [-0.9:2.4]
set yrange [-1.1:2.4]
set arrow from 0,0 to 2.4,0
set arrow from 0,0 to 0,2.4
set key right bottom
set label "0" at -0.2,-0.18
set label "x" at 2.4,-0.2 font "Times-Italic,20"
set label "y" at -0.2,2.4 font "Times-Italic,20"
plot x*x t "y=x^2" ls 2, sqrt(x) t "y=sqrt(x)" ls 3, x t "y=x" ls 4
set output "x_or_xx_etc.eps"
set terminal postscript eps enhanced
set size 0.35,0.6
unset border
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 2 pt 0
set style line 3 lt 2 lw 1 pt 0
set style line 4 lt 3 lw 3 pt 0
set style line 5 lt 4 lw 3 pt 0
set style line 6 lt 5 lw 5 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("0.5" 0.5, "1" 1)
set ytics axis nomirror in ("0.5" 0.5, "1" 1)
set xrange [-0.05:1.05]
set yrange [-0.05:1.05]
set arrow from 0,0 to 1.1,0
set arrow from 0,0 to 0,1.1
set key bmargin
set label "0" at -0.1,-0.1
set label "x" at 1.1,-0.1 font "Times-Italic,20"
set label "y" at -0.13,1.1 font "Times-Italic,20"
plot x t "y=x" ls 2, x*x t "y=x^2, y=x^{1/2}" ls 3, x*x*x t "y=x^3, y=x^{1/3}" ls 4, x*x*x*x t "y=x^4, y=x^{1/4}" ls 5, \\
sqrt(x) noti ls 3, exp(log(x)*0.3333) noti ls 4, sqrt(sqrt(x)) noti ls 5
set output "xx_minus_yy_eq_1.eps"
set terminal postscript eps enhanced
set size 0.4,0.56
unset border
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 2 pt 0
set style line 3 lt 2 lw 1 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2)
set ytics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2)
set xrange [-2.6:2.6]
set yrange [-2.6:2.6]
set arrow from 0,0 to 2.6,0
set arrow from 0,0 to 0,2.6
unset key
set label "0" at -0.3,-0.26
set label "x" at 2.5,-0.2 font "Times-Italic,20"
set label "y" at -0.4,2.6 font "Times-Italic,20"
set parametric
plot cosh(t),sinh(t) w l ls 2, -cosh(t),sinh(t) w l ls 2, t,t w l ls 3, -t,t w l ls 3
cat < dummy.txt
-4.7123 -2.5
-4.7123 2.5
-1.5707 2.5
-1.5707 -2.5
1.5707 -2.5
1.5707 2.5
4.7123 2.5
4.7123 -2.5
EOF
set terminal postscript eps enhanced
set size 0.5,0.3
unset border
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 3 pt 0
set style line 3 lt 3 lw 1 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("-2{/Symbol p}" -6.28, "-{/Symbol p}" -3.14, "{/Symbol p}" 3.14, "2{/Symbol p}" 6.28)
set ytics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2)
set xrange [-7:7];
set yrange [-1.5:1.5]
set arrow from 0,0 to 7,0
set arrow from 0,0 to 0,1.5
set nokey
set label "0" at -0.5,-0.2
set label "x" at 7,-0.3 font "Times-Italic,20"
set label "y" at -0.5,1.5 font "Times-Italic,20"
set output "cos.eps"
plot cos(x) ls 2, 0.0000001*x+1 ls 3, 0.0000001*x-1 ls 3
set yrange [-2.5:2.5]
unset arrow
set arrow from 0,0 to 7,0
set arrow from 0,0 to 0,2.5
unset label
set label "0" at -0.5,-0.2
set label "x" at 7,-0.3 font "Times-Italic,20"
set label "y" at -0.6,2.7 font "Times-Italic,20"
set size 0.5,0.35
set output "tan.eps"
plot tan(x) ls 2, "dummy.txt" u 1:2 w l ls 3
set output "exp_log.eps"
set terminal postscript eps enhanced 17
set size 0.6
set size ratio 1
unset border
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 3 pt 0
set style line 3 lt 3 lw 1 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2)
set ytics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2)
set xrange [-2.8:2.8];
set yrange [-2.8:2.5]
set arrow from 0,0 to 2.8 ls 1
set arrow from 0,0 to 0,2.5 ls 1
set nokey
set label "0" at -0.4,-0.35
set label "x" at 2.9,-0.3 font "Times-Italic,20"
set label "y" at -0.5,2.5 font "Times-Italic,20"
set label "exp x" at 1.1,2.6 font "Times,22"
set label "ln x" at 2.5,1.3 font "Times,22"
unset key
plot exp(x) ls 2, log(x) ls 2, x ls 3
set output "Gauss_fnc.eps"
set terminal postscript eps enhanced 16
set size 0.5,0.3
unset border
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 3 pt 0
set style line 3 lt 3 lw 1 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2)
set ytics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2)
set xrange [-2.8:2.8];
set yrange [-0.5:1.5]
set arrow from 0,0 to 2.8 ls 1
set arrow from 0,0 to 0,1.5 ls 1
set nokey
set label "0" at -0.4,-0.35
set label "x" at 2.9,-0.2 font "Times-Italic,20"
set label "y" at -0.3,1.6 font "Times-Italic,20"
unset key
plot exp(-x*x) ls 2
echo a | awk '{for (i=1; i<=1000; i=i*10) {x=log(i); print x, 0; print x, 10; print "";}}' > dummy_xm.txt
echo a | awk '{for (i=1; i<10; i++) {x=log(i); print x, 0; print x, 10; print "";}}' > dummy_x.txt
echo a | awk '{for (i=10; i<100; i=i+10) {x=log(i); print x, 0; print x, 10; print "";}}' >> dummy_x.txt
echo a | awk '{for (i=100; i<=1000; i=i+100) {x=log(i); print x, 0; print x, 10; print "";}}' >> dummy_x.txt
echo a | awk '{for (y=1; y<=9; y++) {print 0, y; print log(1000), y; print "";}}' >> dummy_yn.txt
echo a | awk '{print log(300), 7; print log(40), 4; print log(5), 1}' > dummy_sample.txt
set terminal postscript eps enhanced 20
set size 0.5,0.6
#unset border
set style line 1 lt 1 lw 3 pt 0
set style line 2 lt 1 lw 1 pt 0
set style line 3 lt 3 lw 1 pt 7 ps 1.5
set zeroaxis ls 1
set ytics axis nomirror in ("0.1" 0, "1" log(10), "10" log(100), "100" log(1000))
set xtics axis nomirror in ("0" 0, "2" 2, "4" 4, "6" 6, "8" 8, "10" 10)
set yrange [0:6.908];
set xrange [0:10]
set nokey
set label "A" at 6.8,5.1
set label "B" at 3.8,2.9
set label "C" at 0.8,1.0
set output "log_paper.eps"
plot "dummy_xm.txt" u 2:1 w l ls 1, "dummy_x.txt" u 2:1 w l ls 2, "dummy_yn.txt" u 2:1 w l ls 2, "dummy_sample.txt" u 2:1 w p ls 3
echo a | awk '{print log(300), log(200); print log(20), log(70); print log(2), log(30)}' > dummy_sample.txt
set terminal postscript eps enhanced 20
set size 0.5,0.6
set size ratio 1
#unset border
set style line 1 lt 1 lw 3 pt 0
set style line 2 lt 1 lw 1 pt 0
set style line 3 lt 3 lw 1 pt 7 ps 1.5
set zeroaxis ls 1
set xtics axis nomirror in ("0.1" 0, "1" log(10), "10" log(100), "100" log(1000))
set ytics axis nomirror in ("0.1" 0, "1" log(10), "10" log(100), "100" log(1000))
set xrange [0:6.908]
set yrange [0:6.908]
set nokey
set label "P" at 5.3,4.9
set label "Q" at 2.5,3.8
set label "R" at 0.3,2.9
set output "log_log_paper.eps"
plot "dummy_xm.txt" u 1:2 w l ls 1, "dummy_x.txt" u 1:2 w l ls 2, \
"dummy_xm.txt" u 2:1 w l ls 1, "dummy_x.txt" u 2:1 w l ls 2, "dummy_sample.txt" u 1:2 w p ls 3
set terminal postscript eps enhanced 14
set output "log2_ln.eps"
set size 0.4,0.6
unset border
set key bottom right
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 3 pt 0
set style line 3 lt 2 lw 2 pt 0
set style line 4 lt 3 lw 4 pt 0
set zeroaxis ls 1
set xtics axis nomirror in ("-1" -1, "1" 1, "2" 2, "3" 3)
set ytics axis nomirror in ("-3" -3, "-2" -2, "-1" -1, "1" 1, "2" 2)
set xrange [-1.5:3.7]
set yrange [-3.9:2.2]
set arrow from 0,0 to 3.7,0
set arrow from 0,0 to 0,2.2
set label "0" at -0.4,-0.35
set label "x" at 3.2,-0.5 font "Times-Italic,20"
set label "y" at -0.6,2.2 font "Times-Italic,20"
plot log (x)/log (2) t "(1) log_2 x " ls 2, log (x) t "(2) ln x " ls 3, log (1+x) t "(3) ln (1+x)" ls 4
# Pitagorus
echo "0 0" > dummy.txt
set output "Pitag.eps"
set terminal postscript eps enhanced 22
set size 0.5,0.42
set size ratio 0.5
unset border
set style line 1 lt 1 lw 2 pt 0
#set zeroaxis ls 1
unset zeroaxis
set xrange [0:1.2]
set yrange [0:0.6]
set nokey
unset xtics
unset ytics
set arrow nohead from 0,0 to 1,0
set arrow nohead from 0,0 to 1,0.5774
set arrow nohead from 1,0.5774 to 1.0,0.0
set arrow nohead from 0.75,0.433 to 1.0,0.0 lt 2 lw 2
set arrow nohead from 0.9,0.1 to 1.0,0.1
set arrow nohead from 0.9,0.1 to 0.9,0.0
set arrow nohead from 0.8,0.346 to 0.887,0.396
set arrow nohead from 0.837,0.483 to 0.887,0.396
set label "A" at -0.08,-0.03
set label "D" at 0.7,0.48
set label "B" at 0.97,0.64
set label "C" at 0.97,-0.06
plot "dummy.txt" u 1:2 ls 1
# sin x \approx x
echo a | awk '{for (t=0; t<3.14/6; t=t+0.02) print cos(t), sin(t)}' > dummy.txt
set output "sinx_x.eps"
set terminal postscript eps enhanced 22
set size 0.5,0.42
set size ratio 0.5
unset border
set style line 1 lt 1 lw 2 pt 0
#set zeroaxis ls 1
unset zeroaxis
set xrange [0:1.2]
set yrange [0:0.6]
set nokey
unset xtics
unset ytics
set arrow nohead from 0,0 to 1,0
set arrow nohead from 0,0 to 0.866,0.5
set arrow nohead from 0,0 to 1,0.5774 lt 2 lw 2
set arrow nohead from 0.866,0.5 to 0.866,0.0 lt 2 lw 2
set arrow nohead from 1,0.5774 to 1.0,0.0 lt 2 lw 2
set label "O" at -0.08,-0.03
set label "P" at 0.85,0.57
set label "Q" at 0.97,0.64
set label "R" at 0.83,-0.06
set label "S" at 0.97,-0.06
set label "{/Symbol q}" at 0.24,0.07
plot "dummy.txt" u 1:2 w l ls 1, sqrt(1-x*x) w l lt 2 lw 2
echo "0 5" > dummy.txt
set output "throw_fall.eps"
set terminal postscript eps enhanced 20
set size 0.5,0.6
unset border
set style line 1 lt 1 lw 2 pt 0
set style line 2 lt 1 lw 2 pt 7 ps 2
set zeroaxis ls 1
set xtics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2, "3" 3, "4" 4)
set ytics axis nomirror in ("-2" -2, "-1" -1, "1" 1, "2" 2, "3" 3, "4" 4, "5" 5, "6" 6, "7" 7, "8" 8)
set xrange [-1.3:3.3];
set yrange [-0.5:7.7]
set arrow from 0,0 to 3.3
set arrow from 0,0 to 0,7.7
set arrow from 0.0,5.0 to 0.4,6.5
set nokey
set label "t=0" at 0.1,4.5
set label "O" at -0.3,-0.5
set label "x" at 3.2,-0.3 font "Times-Italic,20"
set label "y" at -0.5,7.6 font "Times-Italic,20"
unset key
plot 5+4*x-2*x*x w l 1, "dummy.txt" u 1:2 w p ls 2
set output "det2D.eps"
set terminal postscript eps enhanced 20
set size 0.4,0.65
unset border
set style line 1 lt 1 lw 2 pt 0
set zeroaxis ls 1
unset xtics
unset ytics
set xrange [-1:5]
set yrange [-1:5]
set arrow from 0,0 to 5,0
set arrow from 0,0 to 0,5
set label "O" at -0.6,-0.26
set label "x" at 4.7,-0.3 font "Times-Italic,20"
set label "y" at -0.5,4.7 font "Times-Italic,20"
set label "A" at 3.2,1
set label "B" at 0.5,3.0
set label "C" at 4.2,4.1
set label "D" at 3.8,3.0
set label "E" at 2.5,-0.4
unset key
set arrow from 0,0 to 3,1 lt 1 lw 3
set arrow from 0,0 to 1,3 lt 1 lw 3
set arrow nohead from 1,3 to 4,4
set arrow nohead from 3,1 to 4,4
set arrow nohead from 1,3 to 3.65,3 lt 2 lw 2
set arrow nohead from 3,1 to 2.673,0 lt 2 lw 2
plot 0.000001*x