[BACK]Return to misc.texi CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-doc / parts / builtin

Diff for /OpenXM/src/asir-doc/parts/builtin/misc.texi between version 1.16 and 1.26

version 1.16, 2003/11/27 03:43:37 version 1.26, 2018/09/06 05:42:43
Line 1 
Line 1 
 @comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/misc.texi,v 1.15 2003/10/21 05:16:35 takayama Exp $  @comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/misc.texi,v 1.25 2018/03/29 02:48:36 takayama Exp $
 \BJP  \BJP
 @node $B$=$NB>(B,,, $BAH$_9~$_H!?t(B  @node $B$=$NB>(B,,, $BAH$_9~$_H!?t(B
 @section $B$=$NB>(B  @section $B$=$NB>(B
Line 16 
Line 16 
 * time::  * time::
 * cputime tstart tstop::  * cputime tstart tstop::
 * timer::  * timer::
   * currenttime::
   * sleep::
 * heap::  * heap::
 * version::  * version::
 * shell::  * shell::
Line 36 
Line 38 
 @item ctrl("@var{switch}"[,@var{obj}])  @item ctrl("@var{switch}"[,@var{obj}])
 \JP :: $B4D6-@_Dj(B  \JP :: $B4D6-@_Dj(B
 \EG :: Sets the value of @var{switch}.  \EG :: Sets the value of @var{switch}.
   @item ctrl()
   \JP :: $B4D6-$NI=<((B
   \EG :: Show the values of @var{switch}'s.
   @item ctrl(|desc=1)
   \JP :: $B4D6-$*$h$S$=$NC;$$@bL@$NI=<((B
   \EG :: Show the values of @var{swtich}'s and short descriptions
 @end table  @end table
   
 @table @var  @table @var
Line 115  C $B%9%?%$%k$N%U%)%^%C%HJ8;zNs$r$b$A$$$k$H%f!<%6Dj5A$
Line 123  C $B%9%?%$%k$N%U%)%^%C%HJ8;zNs$r$b$A$$$k$H%f!<%6Dj5A$
 1 $B$N$H$-(B, OX server $B$H$N@\B33+;O;~$K(B, $B<+F0E*$K(B mathcap $B$N8r49$r9T$&(B.  1 $B$N$H$-(B, OX server $B$H$N@\B33+;O;~$K(B, $B<+F0E*$K(B mathcap $B$N8r49$r9T$&(B.
 ($B%G%U%)%k%HCM$O(B 1.)  ($B%G%U%)%k%HCM$O(B 1.)
 @xref{$BJ,;67W;;(B}.  @xref{$BJ,;67W;;(B}.
   @item debug_window
   1 $B$N;~(B debug_window $B$,%]%C%W%"%C%W$7$F3+$/(B.
   ($B%G%U%)%k%HCM$O(B 0.)
   @item fake_ox_reset
   1 $B$N$H$-(B, ox_reset $B$r<BAu$7$F$J$$%5!<%P!<$K$OBe$o$j$K(B ox_shutdown $B$rAw?.$9$k(B.
   ox_reset $B$N<BAu$NM-L5$O(B mathcap $B$N(B optional argument ($BBh;M0z?t(B)
   $B$KJ8;zNs(B no_ox_reset $B$,@_Dj$5$l$F$$$k$+$I$&$+$GH=CG$9$k(B.
   ox_pari $B$rMxMQ$9$k$H$-$O$3$N%U%i%0$r(B1$B$K$7$F$*$/$3$H$,K>$^$7$$(B.
   ($B%G%U%)%k%HCM$O(B 0.)
   @xref{$BJ,;67W;;(B}.
   @item plot_by_bigfloat
   N $B$N$H$-(B, 10$B?J?t$G$N@:EY$r(B N $B7e$H$7$F(B, bigfloat $B$rMQ$$$F(B plot $B$r9T$&(B.
   ($B%G%U%)%k%H$G$O(B double $B$rMQ$$$F(B plot $B$r9T$&(B.)
   @item evalef
   0 $B$N;~(B eval $B$N0z?t$,I>2A$5$l$?$H$-$=$l0J>eI>2A$G$-$J$/$J$C$?>l9g(B, $BITDj85%j%9%H$K(B
   $BEPO?$5$l$k(B. $B$?$H$($P(B eval(sin(0.1)) $B$H<B9T$9$k$H(B sin(0.1) $B$,$=$l0J>eI>2A$G$-$J$$$?$a(B
   $BITDj85%j%9%H$KEPO?$5$l$k(B.
   1 $B$N;~$O(B, $BEPO?$5$l$J$$(B.
   $B=iEy4X?t$N?tCMI>2A$r7+$jJV$79T$&;~$O$3$N%*%W%7%g%s$r;HMQ$9$Y$-$G$"$k(B.
   ($B%G%U%)%k%HCM$O(B 0.)
   @xref{ord}
 @end table  @end table
 \E  \E
 \BEG  \BEG
Line 149  This command will be useful when used with command @co
Line 178  This command will be useful when used with command @co
 If `on', floating operations will be done by @b{PARI} system with arbitrary  If `on', floating operations will be done by @b{PARI} system with arbitrary
 precision floating point operations.  precision floating point operations.
 Default precision is set to 9 digits.  To change the precision, use  Default precision is set to 9 digits.  To change the precision, use
 command @code{setprec}.  command @code{setbprec setprec}.
 If `off', floating operations will be done by @b{Asir}'s own floating  If `off', floating operations will be done by @b{Asir}'s own floating
 operation routines with a fixed precision operations of  operation routines with a fixed precision operations of
 standard floating double.  standard floating double.
Line 196  The default value is 'on'.
Line 225  The default value is 'on'.
 If 'on' Asir forces the exchange of mathcaps at the communication startup.  If 'on' Asir forces the exchange of mathcaps at the communication startup.
 The default value is 'on'.  The default value is 'on'.
 @xref{Distributed computation}.  @xref{Distributed computation}.
   @item debug_window
   When 1, a debug window pops up.
   (The default value is 0.)
   @item fake_ox_reset
   When 1, the function ox_reset sends ox_shutdown insread of ox_reset
   to servers which do not implement ox_reset protocol.
   It is checked by the optional argument (the fourth argument)
   containing the string "no_ox_reset"
   of mathcap if ox_reset is implemented or not.
   When you use ox_pari, it is recommended to set this flag 1.
   (The default value is 0.)
   @xref{Distributed computation}.
   @item plot_by_bigfloat
   If its value N is not equal to zero, then plotting is done by bigfloat.
   (The double numbers are used as the default.)
   @item evalef
   When it is set to 0, the arguments of eval are registered to the list of
   indeterminants when arguments are no longer to be simplified.
   For example, when this flag is 0, sin(0.1) is registered to the list of
   indeterminants when eval(sin(0.1)) is evaluated.
   When it is set to 1, arguments are numerically evaluated.
   It is recommended to turn on this option, when you repeat to evaluate elementary functions numerically.
   (The default value is 0.)
   @xref{ord}
 @end table  @end table
 \E  \E
 @end itemize  @end itemize
   
   @example
   [1917] ctrl();
   [[oxpari_start,0],[oxpari_id,-1],... snip ....,[plot_by_bigfloat,0],[debug_plot,0]]
   [1918] map(print,ctrl(|desc=1));
   [oxpari_start,0,oxpari starting function.]
   [oxpari_id,-1,Id of ox_pari.]
   ... snip ...
   [plot_by_bigfloat,0,If set to 1, computation is done by using MPFR bigfloat functions in ox_plot.]
   [debug_plot,0,If set to 1, ox_plot is executed with the message window.]
   @end example
   
 @table @t  @table @t
 \JP @item $B;2>H(B  \JP @item $B;2>H(B
 \EG @item References  \EG @item References
 @fref{cputime tstart tstop}, @fref{output},  @fref{cputime tstart tstop}, @fref{output},
 @fref{pari}, @fref{setprec}, @fref{eval deval}.  @fref{pari}, @fref{setbprec setprec}, @fref{eval deval}.
 @end table  @end table
   
   @noindent
   ChangeLog
   @itemize @bullet
   @item @xref{ChangeLog}
   \BEG
   @item plot_by_bigfloat switch is added on 2017.09.04. The following files are changed.
   \E
   \BJP
   @item plot_by_bigfloat $B%9%$%C%A$O(B 2017.09.04 $B$K2C$($i$l$?(B. $BJQ99$r<u$1$?%U%!%$%k$O2<5-$N$H$*$j(B.
   \E
   @item 1.54 ctrl.c,
     1.14 bf.c,
     1.75 tcpf.c,
     1.13 calc.c,
     1.36 if.c,
     1.25 ifplot.h,
     1.33 plotf.c
   @end itemize
   
 \JP @node debug,,, $B$=$NB>(B  \JP @node debug,,, $B$=$NB>(B
 \EG @node debug,,, Miscellaneouses  \EG @node debug,,, Miscellaneouses
 @subsection @code{debug}  @subsection @code{debug}
Line 356  return to toplevel
Line 439  return to toplevel
 $B$"$k$$$O(B @samp{more} $B$r8F$S=P$7$F$=$N%U%!%$%k$rI=<($9$k(B.  $B$"$k$$$O(B @samp{more} $B$r8F$S=P$7$F$=$N%U%!%$%k$rI=<($9$k(B.
 @item  @item
 $B4D6-JQ?t(B @code{LANG} $B$,@_Dj$5$l$F$$$k>l9g(B, $B$=$NCM$,(B @code{"japan"} $B$^$?$O(B  $B4D6-JQ?t(B @code{LANG} $B$,@_Dj$5$l$F$$$k>l9g(B, $B$=$NCM$,(B @code{"japan"} $B$^$?$O(B
 @code{"ja_JP"} $B$G;O$^$k$J$i(B, @samp{help} $B$NBe$o$j$K(B @samp{help-jp}  @code{"ja_JP"} $B$G;O$^$k$J$i(B, @samp{help} $B$NBe$o$j$K(B @samp{help-ja}
 $B$K$"$k%U%!%$%k$,I=<($5$l$k(B. $B$=$&$G$J$$>l9g(B, @samp{help-eg}  $B$K$"$k%U%!%$%k$,I=<($5$l$k(B. $B$=$&$G$J$$>l9g(B, @samp{help-en}
 $B$K$"$k%U%!%$%k$,I=<($5$l$k(B.  $B$K$"$k%U%!%$%k$,I=<($5$l$k(B.
 @item  @item
 Windows $BHG$G$O(B, $B%3%^%s%I%i%$%s$+$i$N%X%k%W8F$S=P$7$OL$%5%]!<%H$@$,(B,  Windows $BHG$G$O(B, $B%3%^%s%I%i%$%s$+$i$N%X%k%W8F$S=P$7$OL$%5%]!<%H$@$,(B,
Line 374  the file is displayed by a command set to the environm
Line 457  the file is displayed by a command set to the environm
 @item  @item
 If the @code{LANG} environment variable is set and its value  If the @code{LANG} environment variable is set and its value
 begins with @code{"japan"} or @code{"ja_JP"}, then the file in  begins with @code{"japan"} or @code{"ja_JP"}, then the file in
 @samp{help-jp} is displayed. If its value does not begin with  @samp{help-ja} is displayed. If its value does not begin with
 @code{"japan"} or @code{"ja_JP"}, then the file in @samp{help-eg}  @code{"japan"} or @code{"ja_JP"}, then the file in @samp{help-en}
 is displayed.  is displayed.
 @item  @item
 On Windows HTML-style help is available from the menu.  On Windows HTML-style help is available from the menu.
Line 488  for a reply to interruption prompting are added to the
Line 571  for a reply to interruption prompting are added to the
 @table @t  @table @t
 \JP @item $B;2>H(B  \JP @item $B;2>H(B
 \EG @item References  \EG @item References
 @fref{cputime tstart tstop}.  @fref{cputime tstart tstop}, @fref{currenttime}.
 @end table  @end table
   
 \JP @node cputime tstart tstop,,, $B$=$NB>(B  \JP @node cputime tstart tstop,,, $B$=$NB>(B
Line 585  the debug-mode and execute @code{cputime(1)}.
Line 668  the debug-mode and execute @code{cputime(1)}.
 @table @t  @table @t
 \JP @item $B;2>H(B  \JP @item $B;2>H(B
 \EG @item References  \EG @item References
 @fref{time}, @fref{ctrl}.  @fref{time}, @fref{currenttime}, @fref{ctrl}.
 @end table  @end table
   
 \JP @node timer,,, $B$=$NB>(B  \JP @node timer,,, $B$=$NB>(B
Line 596  the debug-mode and execute @code{cputime(1)}.
Line 679  the debug-mode and execute @code{cputime(1)}.
 @table @t  @table @t
 @item timer(@var{interval},@var{expr},@var{val})  @item timer(@var{interval},@var{expr},@var{val})
 \JP :: $B@)8B;~4V$D$-$G7W;;$r<B9T$9$k(B.  \JP :: $B@)8B;~4V$D$-$G7W;;$r<B9T$9$k(B.
 \BEG  \EG :: Compute an expression under the interval timer.
 :: Compute an expression under the interval timer.  
 \E  
 @end table  @end table
   
 @table @var  @table @var
Line 653  interval timer expired (VTALRM)
Line 734  interval timer expired (VTALRM)
 [11]  [11]
 @end example  @end example
   
   \JP @node currenttime,,, $B$=$NB>(B
   \EG @node currenttime,,, Miscellaneouses
   @subsection @code{currenttime}
   @findex currenttime
   
   @table @t
   @item currenttime()
   \JP :: $B8=:_;~9o$r<hF@(B
   \EG :: Get current time.
   @end table
   
   @table @var
   @item return
   \JP 1970$BG/(B1$B7n(B1$BF|(B0$B;~(B0$BJ,(B0$BIC$+$i$N7P2aIC?t(B.
   \EG UNIX time.
   @end table
   
   @itemize @bullet
   
   @item
   \JP @code{currenttime()} $B$O8=:_;~9o$rJV$9(B.  UNIX $B$N>l9g(B, time(3) $B$r8F$s$G$$$k$@$1$G$"$k(B.
   \EG See also time(3) in UNIX manuals.
   
   @end itemize
   
   @example
   [0] currenttime();
   1071639228
   [1]
   @end example
   
   \JP @node sleep,,, $B$=$NB>(B
   \EG @node sleep,,, Miscellaneouses
   @subsection @code{sleep}
   @findex sleep
   
   @table @t
   @item sleep(@var{interval})
   \JP :: $B%W%m%;%9$N<B9T$rDd;_(B
   \EG :: Suspend computation for an interval.
   @end table
   
   @table @var
   @item return
   1
   
   @item interval
   \JP $BDd;_;~4V(B ($B%^%$%/%mIC(B)
   \EG interval (micro second)
   @end table
   
   @itemize @bullet
   
   @item
   \JP @code{sleep()} $B$O(B, $B%W%m%;%9$N<B9T$rDd;_$9$k(B.  UNIX $B$N>l9g(B, usleep $B$r8F$s$G$$$k$@$1$G$"$k(B.
   \EG See also usleep(3) in UNIX manuals.
   
   @end itemize
   
   @example
   [0] sleep(1000);
   1
   [1]
   @end example
   
 \JP @node heap,,, $B$=$NB>(B  \JP @node heap,,, $B$=$NB>(B
 \EG @node heap,,, Miscellaneouses  \EG @node heap,,, Miscellaneouses
 @subsection @code{heap}  @subsection @code{heap}
Line 761  at the activation of @b{Asir}. (@xref{Command line opt
Line 907  at the activation of @b{Asir}. (@xref{Command line opt
 @b{Asir} $B$N%P!<%8%g%s$r<+A3?t$GJV$9(B.  @b{Asir} $B$N%P!<%8%g%s$r<+A3?t$GJV$9(B.
 \E  \E
 \BEG  \BEG
 Command @code{version()} returns the version identification number  @item
 , an integer of @b{Asir} in use.  Command @code{version()} returns the version identification number,
   an integer of @b{Asir} in use.
 \E  \E
 @end itemize  @end itemize
   
Line 860  cyclic        is            r             sugar
Line 1007  cyclic        is            r             sugar
 @var{arg0} $B$,%j%9%H(B, $B%Y%/%H%k(B, $B9TNs0J30$N>l9g(B, $BC1$K(B @var{arg0},  @var{arg0} $B$,%j%9%H(B, $B%Y%/%H%k(B, $B9TNs0J30$N>l9g(B, $BC1$K(B @var{arg0},
 @var{arg1}, ... $B$r0z?t$H$7$F(B @var{function} $B$r8F$S=P$7$=$N(B  @var{arg1}, ... $B$r0z?t$H$7$F(B @var{function} $B$r8F$S=P$7$=$N(B
 $B7k2L$rJV$9(B.  $B7k2L$rJV$9(B.
   @item
   @code{map} $B$N0z?t(B @var{function} $B$GM?$($i$l$kH!?t$O(B, $BFbItE*$K$bH!?t$H(B
   $B$7$F<BAu$5$l$F$$$J$1$l$P$J$i$J$$(B.  $B$=$&$G$J$1$l$P(B parse error $B$K$J$k(B.
   $BNc$($P(B @code{map} $B<+?H$d(B @code{car}, @code{cdr} $B$J$I$OFbItE*$K$OH!?t$G(B
   $B$O$J$/(B, Asir $B$NJ8K!$K$*$1$k%-!<%o!<%I$H$7$F<BAu$5$l$F$$$k(B.  $B$7$?$,$C$F(B
   @code{map} $B$N0z?t$K(B @code{map} $B$r$H$k$3$H$O$G$-$J$$(B.
 \E  \E
 \BEG  \BEG
 @item  @item
Line 890  returns the value of @var{function}(@var{arg0},@var{ar
Line 1043  returns the value of @var{function}(@var{arg0},@var{ar
 @findex flist  @findex flist
   
 @table @t  @table @t
 @item flist()  @item flist([mname])
 \JP :: $B8=:_Dj5A$5$l$F$$$kH!?tL>$rJ8;zNs%j%9%H$H$7$FJV$9(B.  \JP :: $B8=:_Dj5A$5$l$F$$$kH!?tL>$rJ8;zNs%j%9%H$H$7$FJV$9(B.
 \EG :: Returns the list of function names currently defined.  \EG :: Returns the list of function names currently defined.
   @item mname
   \JP $B%b%8%e!<%kL>(B
   \EG a module name
 @end table  @end table
   
 @table @var  @table @var
Line 905  returns the value of @var{function}(@var{arg0},@var{ar
Line 1061  returns the value of @var{function}(@var{arg0},@var{ar
 \BJP  \BJP
 @item  @item
 $B8=:_Dj5A$5$l$F$$$kAH$_9~$_H!?t(B, $B%f!<%6Dj5AH!?t$NH!?tL>$rJ8;zNs%j%9%H(B  $B8=:_Dj5A$5$l$F$$$kAH$_9~$_H!?t(B, $B%f!<%6Dj5AH!?t$NH!?tL>$rJ8;zNs%j%9%H(B
 $B$H$7$FJV$9(B.  $B$H$7$FJV$9(B. $B%b%8%e!<%kL>$,;XDj$5$l$?>l9g(B, $B$=$N%b%8%e!<%k$GDj5A$5$l$F$$$k(B
   $B4X?tL>$N$_$rJV$9(B.
 @item  @item
 $B%7%9%F%`H!?t$N8e$K%f!<%6Dj5AH!?t$,B3$/(B.  $B%7%9%F%`H!?t$N8e$K%f!<%6Dj5AH!?t$,B3$/(B.
 \E  \E
Line 913  returns the value of @var{function}(@var{arg0},@var{ar
Line 1070  returns the value of @var{function}(@var{arg0},@var{ar
 @item  @item
 Returns the list of names of built-in functions and user defined functions  Returns the list of names of built-in functions and user defined functions
 currently defined. The return value is a list of character strings.  currently defined. The return value is a list of character strings.
   If a module name is specified, only the names of functions defined in the module
   are returned.
 @item  @item
 The names of built-in functions are followed by those of user defined  The names of built-in functions are followed by those of user defined
 functions.  functions.

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.26

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>