home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 334_02 / simple.dem < prev    next >
Text File  |  1991-02-05  |  1KB  |  41 lines

  1. #
  2. # Requires data files "[123].dat" from this directory,
  3. # so change current working directory to this directory before running.
  4. # gnuplot> set term <term-type>
  5. # gnuplot> load 'simple.demo'
  6. #
  7. set samples 50
  8. plot [-10:10] sin(x),atan(x),cos(atan(x))
  9. pause -1 "Hit return to continue"
  10.  
  11. set samples 100 
  12. plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))
  13. pause -1 "Hit return to continue"
  14.  
  15. set samples 200 
  16. plot [-3:5] asin(x),acos(x)
  17. pause -1 "Hit return to continue"
  18.  
  19. plot [-30:20] besj0(x)*0.12e1 with impulses, (x**besj0(x))-2.5 with points
  20. pause -1 "Hit return to continue"
  21.  
  22. set samples 400
  23. plot [-10:10] real(sin(x)**besj0(x))
  24. pause -1 "Hit return to continue"
  25.  
  26. plot [-5*pi:5*pi] [-5:5] real(tan(x)/atan(x)), 1/x
  27. pause -1 "Hit return to continue"
  28.  
  29. set autoscale
  30. set samples 800
  31. plot [-30:20] sin(x*20)*atan(x)
  32. pause -1 "Hit return to continue"
  33.  
  34. plot [-19:19] '1.dat'with impulses ,'2.dat' ,'3.dat' with lines
  35. pause -1 "Hit return to continue"
  36.  
  37. # undo what we have done above
  38. set samples 160
  39. set xrange [-10:10]
  40. set autoscale xy
  41.