2 # $Id: simple.dem,v 1.4 2006/06/30 02:17:22 sfeam Exp $
4 # Requires data files "[123].dat" from this directory,
5 # so change current working directory to this directory before running.
6 # gnuplot> set term <term-type>
7 # gnuplot> load 'simple.dem'
11 plot [-10:10] sin(x),atan(x),cos(atan(x))
12 pause -1 "Hit return to continue"
16 plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))
17 pause -1 "Hit return to continue"
21 plot [-3:5] asin(x),acos(x)
22 pause -1 "Hit return to continue"
24 plot [-30:20] besj0(x)*0.12e1 with impulses, (x**besj0(x))-2.5 with points
25 pause -1 "Hit return to continue"
28 plot [-10:10] real(sin(x)**besj0(x))
29 pause -1 "Hit return to continue"
31 set key bmargin center horizontal
32 plot [-5*pi:5*pi] [-5:5] real(tan(x)/atan(x)), 1/x
33 pause -1 "Hit return to continue"
38 plot [-30:20] sin(x*20)*atan(x)
39 pause -1 "Hit return to continue"
41 plot [-19:19] '1.dat'with impulses ,'2.dat' ,'3.dat' with lines
42 pause -1 "Hit return to continue"
44 plot [-19:19] '1.dat'with impulses ,'2.dat' thru f(x) ,'3.dat' with lines
45 pause -1 "Hit return to continue"