%%% 7.Jun.1999 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% INCLUDE: euler.eps
\documentclass[12pt]{jarticle}
\usepackage[dvips]{graphicx}
\def\id{\hspace*{24pt}}
%-------------------------------------------------------------------%
\begin{document}
\title{gnuplot�λȤ���}
\author{}
\date{}
\maketitle

���ͥǡ����򥰥�ղ�����Τ�ͭ�Ѥʥ��եȤȤ��ơ�gnuplot ��Ҳ𤹤롣

\section{������gnuplot�ε�ư}

�ޤ� PC ���顢Astec-X ��ư����������ơ����������롣
�����Ѥμ���� 8��6��򻲾ȡ�

���� gnuplot��ư���롣

\id{\tt ah\% gnuplot}

����ȡ�
\begin{verbatim}
    G N U P L O T
    unix version ...
\end{verbatim}
�Ȥ��ä���å������θ塢�ץ���ץȤ�{\tt ah\% }����\\
\id{\tt gnuplot>}\\
�ˤ���롣


\section{�ǡ����ե�����}
������$x$��������$y$��������$z$���ĤΤ褦�˥ǡ������¤٤Ƥ�����
�ޤ���{\tt \#}�ǻϤޤ�Ԥϥ����ȹԤȤ���̵�뤵��롣���Ȥ��С�
\begin{verbatim}
    # x    y     dy/dx
    0.00  0.01  0.10e+01
    0.47  0.52  0.21e+00
    1.00  0.61  0.86e-01
\end{verbatim}
�Τ褦�ʥǡ�����ե�����{\em datafile}�Ȥ�����¸���Ƥ�����gnuplot��\\
\id{\tt gnuplot> plot'}{\em datafile}{\tt '}\\
�Ȥ���ȡ������ܤ�$x$��ɸ�������ܤ�$y$��ɸ�Ȥ��ƥ���դ�������롣
\section{����Ū�ʥ��ޥ��}
\subsection{plot}
{\tt plot}�ǥǡ�����ץ��åȤ��롣ʣ���Υǡ�����Ťͤ�ɽ������ˤ�\\
\id{\tt gnuplot> plot'}{\em datafile1}{\tt ','}{\em datafile2}{\tt ',}$\cdots$\\
�Τ褦��{\tt ,}�Ƕ��ڤ롣�ޤ���{\tt replot}���Ѥ��롣\\
\id{\tt gnuplot> plot'}{\em datafile1}{\tt '}\\
\id{\tt gnuplot> replot'}{\em datafile2}{\tt '}\\
�ե�����̾{\tt '}{\em datafile}{\tt '}�θ�˼��Τ褦�ʥ��ץ�����Ĥ�
�뤳�Ȥ��Ǥ��롣
\begin{itemize}
\item {\tt using} $l_x${\tt :}$l_y$\\
$l_x$���ܤ�$x$��$l_y$���ܤ�$y$�Ȥ��ƥץ��åȤ��롣
\item {\tt title'}{\em title}{\tt '}\\
�ƥǡ�����ɽ��{\em title}��Ĥ��롣
\item {\tt with lines}\\
�ǡ����������Ƿ�֡�¾��{\tt linespoints}��{\tt dots}�ʤɤ����롣
\end{itemize}
¾�ˤ�spline��֤ʤ�¿���ε�ǽ������äƤ��롣
\subsection{set}
{\tt set}�ˤ��ɽ�ꡦɽ�������ϰϤʤɤ������Ԥʤ����Ȥ��Ǥ��롣
\begin{itemize}
\item {\tt set title'}{\em title}{\tt '}\\
����դ�ɽ��{\em title}��Ĥ��롣
\item {\tt set xlabel'}{\em label}{\tt '}\\
$x$���˸��Ф�{\em label}��Ĥ��롣
$y$���ξ���{\tt set ylabel}��Ȥ���
\end{itemize}
������{\tt plot}�������˹Ԥʤ���
{\tt plot}������������Ԥʤä�����\\
\id{\tt gnuplot> replot}\\
��ɽ����ľ����¾�ˤ�{\tt set xrange}��{\tt set label}��
{\tt set grid}�ʤɤ����롣
\subsection{help}
help���ޥ�ɤˤ�ꡢ���ޥ��{\em command}�������򸫤뤳�Ȥ��Ǥ��롣\\
\id{\tt gnuplot> help} {\em command}\\
���ޥ�ɤξܤ��������Ȥ����٤ʻ���ˡ�ˤĤ��Ƥ�{\tt help}�򻲾ȡ�
\section{�ؿ�}
$\sin,\cos$�ʤɤδؿ���Ʊ�ͤ˥ץ��åȤ��뤳�Ȥ��Ǥ��롣\\
\id{\tt gnuplot> plot sin(x)}\\
������{\tt ''}�Ǥ�����ʤ���
��§�黻{\tt +},{\tt -},{\tt *},{\tt /}��Ҿ�{\tt **}�ʤɡ�
�ޤ��߼�Ψ{\tt pi}�Ȥ��ä������Ȥ��롣���Ȥ���
$\frac{1}{\sqrt{\pi}}\exp(-x^2)$��ץ��åȤ���ˤ�\\
\id{\tt gnuplot> plot exp(-x**2)/sqrt(pi)}\\
�Ȥ��롣
\section{����դΰ���}
����դ��������ˤϥݥ��ȥ�����ץȷ����ǽ��Ϥ��롣\\
\id{\tt gnuplot> set terminal postscript}\\
\id{\tt gnuplot> set output'}{\em filename.ps}{\tt '}\\
\id{\tt gnuplot> replot}\\
�Ȥ���ȡ�����ޤǲ��̤˽��Ϥ��Ƥ�����̤�ݥ��ȥ�����ץȷ�����
�ե����� {\em filename.ps}�˽��Ϥ��뤳�Ȥ��Ǥ롣\\
\id{\tt wind\% lp -d} {\em printername} {\em filename.ps}\\
�ˤ�ꡢ�ץ�󥿡�{\em printername}�ǰ������뤳�Ȥ��Ǥ��롣
\section{gnuplot�ν�λ}
gnuplot��λ���륳�ޥ�ɤ�{\tt quit}��{\tt exit}��
\section{����¾}
�ۤȤ�ɤΥ��ޥ�ɡ����ץ�����㤨��{\tt with lines}��
{\tt w l}�Τ褦��û�̷����Ѥ��뤳�Ȥ��Ǥ��롣
�ܤ����ϥޥ˥奢��ޤ���{\tt help}�򻲾ȡ�
\section{��}
Eulerˡ�ˤ��
$\frac{d^2}{dx^2}y=-y,\ y(0)=0,\ \frac{d}{dx}y(0)=1$
�ο��Ͳ����ˤȤ롣\\
�ޤ��ץ�������
\begin{verbatim}
        ...
      open(10,file='euler.dat')
      write(10,200) '# x, y, z'
        ...
      do i=1,N
        ...
        write(10,210) x,y,z
      end do
 200  format(a)
        ...
\end{verbatim}
�Ȥ��ƥǡ����ե�����ʤ����Ǥ�euler.dat�Ȥ����ˤ˥ǡ�����񤭽Ф���
gnuplot��ư����
\begin{verbatim}
    gnuplot> set title'd^2y/dx^2=-y'
    gnuplot> set xlabel'x'
    gnuplot> set ylabel'y(x)'
    gnuplot> plot'euler.dat' title"Euler's method",sin(x)
\end{verbatim}
�Ȥ���ȡ��ޤΤ褦�ʥ���դ�����롣
%--- FIG -----------------------------------------------------------%
\begin{center}
\includegraphics[width=0.7\linewidth,clip]{euler.eps}
\end{center}
\end{document}
%%%%% EOF %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

