=================================================================== RCS file: /home/cvs/OpenXM/src/asir-doc/parts/builtin/misc.texi,v retrieving revision 1.15 retrieving revision 1.21 diff -u -p -r1.15 -r1.21 --- OpenXM/src/asir-doc/parts/builtin/misc.texi 2003/10/21 05:16:35 1.15 +++ OpenXM/src/asir-doc/parts/builtin/misc.texi 2016/08/29 04:56:58 1.21 @@ -1,4 +1,4 @@ -@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/misc.texi,v 1.14 2003/10/19 04:57:00 ohara Exp $ +@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/misc.texi,v 1.20 2016/08/26 04:56:07 takayama Exp $ \BJP @node $B$=$NB>(B,,, $BAH$_9~$_H!?t(B @section $B$=$NB>(B @@ -16,6 +16,8 @@ * time:: * cputime tstart tstop:: * timer:: +* currenttime:: +* sleep:: * heap:: * version:: * shell:: @@ -91,7 +93,7 @@ on $B$N;~(B, $BH!?t$N:FDj5A;~$K%a%C%;!<%8$rI=<($9$k 0 $B$N$H$-%W%m%s%W%H$rI=<($7$J$$(B. 1 $B$N$H$-I8=`%W%m%s%W%H$rI=<((B. C $B%9%?%$%k$N%U%)%^%C%HJ8;zNs$r$b$A$$$k$H%f!<%6Dj5A$N%W%m%s%W%H(B. $BNc(B(asirgui $B$G$OIT2D(B): -@code{ ctrl("prompt",asciitostr([0x1b])+"[32m[%d]:= "+asciitostr([0x1b])+"[0m")} +@code{ ctrl("prompt","\033[32m[%d]:= \033[0m")} @item hex 1 $B$N$H$-(B, $B@0?t$O(B 0x $B$G;O$^$k(B 16 $B?J?t$H$7$FI=<($5$l$k(B. -1 $B$N$H$-(B, 16 $B?J?t$O(B, $B4V$K(B @samp{|} $B$r$O$5$s$G(B 8 $B7e$4$H$K6h@Z$C$FI=<($5$l$k(B. @@ -115,6 +117,16 @@ 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. ($B%G%U%)%k%HCM$O(B 1.) @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$^$7$$(B. +($B%G%U%)%k%HCM$O(B 0.) +@xref{$BJ,;67W;;(B}. @end table \E \BEG @@ -149,7 +161,7 @@ This command will be useful when used with command @co If `on', floating operations will be done by @b{PARI} system with arbitrary precision floating point operations. 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 operation routines with a fixed precision operations of standard floating double. @@ -169,7 +181,8 @@ If the value is 0, then prompt is not output. If the value is 1, then the standard prompt is output. Asir prompt can be customized by giving a C-style format string. Example (for unix asir); -@code{ ctrl("prompt",asciitostr([0x1b])+"[32m[%d]:= "+asciitostr([0x1b])+"[0m")} +@code{ ctrl("prompt","\033[32m[%d]:= \033[0m")} + @item hex If 1 is set, integers are displayed as hexadecimal numbers with prefix @code{0x}. if -1 is set, hexadecimal numbers are displayed with @@ -195,6 +208,18 @@ The default value is 'on'. If 'on' Asir forces the exchange of mathcaps at the communication startup. The default value is 'on'. @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}. @end table \E @end itemize @@ -203,7 +228,7 @@ The default value is 'on'. \JP @item $B;2>H(B \EG @item References @fref{cputime tstart tstop}, @fref{output}, -@fref{pari}, @fref{setprec}, @fref{eval deval}. +@fref{pari}, @fref{setbprec setprec}, @fref{eval deval}. @end table \JP @node debug,,, $B$=$NB>(B @@ -355,8 +380,8 @@ return to toplevel $B$"$k$$$O(B @samp{more} $B$r8F$S=P$7$F$=$N%U%!%$%k$rI=<($9$k(B. @item $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} -$B$K$"$k%U%!%$%k$,I=<($5$l$k(B. $B$=$&$G$J$$>l9g(B, @samp{help-eg} +@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-en} $B$K$"$k%U%!%$%k$,I=<($5$l$k(B. @item Windows $BHG$G$O(B, $B%3%^%s%I%i%$%s$+$i$N%X%k%W8F$S=P$7$OL$%5%]!<%H$@$,(B, @@ -373,8 +398,8 @@ the file is displayed by a command set to the environm @item If the @code{LANG} environment variable is set and its value begins with @code{"japan"} or @code{"ja_JP"}, then the file in -@samp{help-jp} is displayed. If its value does not begin with -@code{"japan"} or @code{"ja_JP"}, then the file in @samp{help-eg} +@samp{help-ja} is displayed. If its value does not begin with +@code{"japan"} or @code{"ja_JP"}, then the file in @samp{help-en} is displayed. @item On Windows HTML-style help is available from the menu. @@ -487,7 +512,7 @@ for a reply to interruption prompting are added to the @table @t \JP @item $B;2>H(B \EG @item References -@fref{cputime tstart tstop}. +@fref{cputime tstart tstop}, @fref{currenttime}. @end table \JP @node cputime tstart tstop,,, $B$=$NB>(B @@ -584,7 +609,7 @@ the debug-mode and execute @code{cputime(1)}. @table @t \JP @item $B;2>H(B \EG @item References -@fref{time}, @fref{ctrl}. +@fref{time}, @fref{currenttime}, @fref{ctrl}. @end table \JP @node timer,,, $B$=$NB>(B @@ -595,9 +620,7 @@ the debug-mode and execute @code{cputime(1)}. @table @t @item timer(@var{interval},@var{expr},@var{val}) \JP :: $B@)8B;~4V$D$-$G7W;;$r(B +\EG @node currenttime,,, Miscellaneouses +@subsection @code{currenttime} +@findex currenttime + +@table @t +@item currenttime() +\JP :: $B8=:_;~9o$rl9g(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$Nl9g(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 \EG @node heap,,, Miscellaneouses @subsection @code{heap} @@ -760,8 +848,9 @@ at the activation of @b{Asir}. (@xref{Command line opt @b{Asir} $B$N%P!<%8%g%s$r<+A3?t$GJV$9(B. \E \BEG -Command @code{version()} returns the version identification number -, an integer of @b{Asir} in use. +@item +Command @code{version()} returns the version identification number, +an integer of @b{Asir} in use. \E @end itemize @@ -859,6 +948,12 @@ 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{arg1}, ... $B$r0z?t$H$7$F(B @var{function} $B$r8F$S=P$7$=$N(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