Annotation of OpenXM/src/asir-doc/parts/builtin/misc.texi, Revision 1.2
1.1 noro 1: @node $B$=$NB>(B,,, $BAH$_9~$_H!?t(B
2: @section $B$=$NB>(B
3:
4: @menu
5: * ctrl::
6: * debug::
7: * error::
8: * help::
9: * time::
10: * cputime tstart tstop::
11: * heap::
12: * version::
13: * shell::
14: * map::
15: * flist::
16: * delete_history::
17: * get_rootdir::
1.2 ! noro 18: * getopt::
1.1 noro 19: @end menu
20:
21: @node ctrl,,, $B$=$NB>(B
22: @subsection @code{ctrl}
23: @findex ctrl
24:
25: @table @t
26: @item ctrl("@var{switch}"[,@var{obj}])
27: :: $B4D6-@_Dj(B
28: @end table
29:
30: @table @var
31: @item return
32: $B@_Dj$5$l$F$$$kCM(B
33: @item switch
34: $B%9%$%C%AL>(B
35: @item obj
36: $B%Q%i%a%?(B
37: @end table
38:
39: @itemize @bullet
40: @item
41: @b{Asir} $B$N<B9T4D6-$N@_DjJQ99(B, $B;2>H$r9T$&(B.
42: @item @var{switch} $B$N$_$N>l9g(B, $B$=$N%9%$%C%A$N8=:_$N>uBV$rJV$9(B.
43: @item @var{obj} $B$,M?$($i$l$F$$$k$H$-(B, $B$=$NCM$r@_Dj$9$k(B.
44: @item
45: $B%9%$%C%A$OJ8;zNs$H$7$FF~NO$9$k(B. $B$9$J$o$A%@%V%k%/%)!<%H$G0O$`(B.
46: @item
47: $B%9%$%C%A$O<!$NDL$j(B.
48: @table @code
49: @item cputime
50: on $B$N;~(B CPU time $B$*$h$S(B GC time $B$rI=<((B, off $B$N;~(B $BI=<($7$J$$(B. @code{cputime()}
51: $B$r;2>H(B.
52: @code{ctrl("cputime",@var{onoff})} $B$O(B @code{cputime(@var{onoff})} $B$HF1$8$G$"$k(B.
53: @item nez
54: EZGCD $B$N%"%k%4%j%:%`$N@ZBX$((B. $B%G%U%)%k%H$G(B 1 $B$G$"$j(B, $B$H$/$K@ZBX$($kI,MW(B
55: $B$O$J$$(B.
56: @item echo
57: on $B$N;~$OI8=`F~NO$r7+$jJV$7$F=PNO$7(B, off $B$N;~$OI8=`F~NO$r7+$jJV$5$J$$(B.
58: @code{output} $B%3%^%s%I$rMQ$$$k:]$KM-8z$G$"$k(B.
59: @item bigfloat
60: on $B$N;~(B, $BF~NO$5$l$?IbF0>.?t$O(B @b{bigfloat} $B$KJQ49$5$l(B, $BIbF0>.?t1i;;$O(B
61: @b{PARI} (@xref{pari}) $B$K$h$j9T$o$l$k(B. $B%G%U%)%k%H$NM-8z7e?t$O(B 9 $B7e$G$"$k(B.
62: $BM-8z7e?t$rA}$d$7$?$$;~$K$O(B @code{setprec()} $B$rMQ$$$k(B.
63: off $B$N;~(B, $BF~NO$5$l$?IbF0>.?t$O(B, $BG\@:EYIbF0>.?t$KJQ49$5$l$k(B.
64: @cindex PARI
65: @item adj
66: $B%,!<%Y%C%8%3%l%/%7%g%s$NIQEY$NJQ99(B. 1 $B0J>e$NM-M}?t$,;XDj$G$-$k(B.
67: $B%G%U%)%k%HCM$O(B 3. 1 $B$K6a$$Dx(B, $B%,!<%Y%C%8%3%l%/%7%g%s$;$:$K%R!<%W$r(B
68: $BBg$-$/$H$k$h$&$K$J$k(B. $B@0?tCM$O%3%^%s%I%i%$%s$G;XDj$G$-$k(B.
69: @xref{$B%3%^%s%I%i%$%s%*%W%7%g%s(B}.
70: @item verbose
71: on $B$N;~(B, $BH!?t$N:FDj5A;~$K%a%C%;!<%8$rI=<($9$k(B.
72: @item hex
73: 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,
74: $B4V$K(B @samp{|} $B$r$O$5$s$G(B 8 $B7e$4$H$K6h@Z$C$FI=<($5$l$k(B.
75: @item ox_batch
76: 1 $B$N$H$-(B, $BAw?.%P%C%U%!$,$$$C$Q$$$K$J$C$?;~$N$_<+F0E*$K(B flush.
77: 0 $B$N$H$-(B, $B%G!<%?(B, $B%3%^%s%IAw?.Kh$K(B flush. ($B%G%U%)%k%HCM$O(B 0.)
78: @xref{$BJ,;67W;;(B}
79: @item ox_check
80: 1 $B$N$H$-(B, $BAw?.%G!<%?$rAj<j%W%m%;%9$,<u$1<h$l$k$+$I$&$+%A%'%C%/$9$k(B.
81: 0 $B$N$H$-$7$J$$(B. ($B%G%U%)%k%HCM$O(B 1.)
82: @xref{$BJ,;67W;;(B}
83: @end table
84: @end itemize
85:
86: @table @t
87: @item $B;2>H(B
88: @fref{cputime tstart tstop}, @fref{output},
89: @fref{pari}, @fref{setprec}, @fref{eval}.
90: @end table
91:
92: @node debug,,, $B$=$NB>(B
93: @subsection @code{debug}
94: @findex debug
95:
96: @table @t
97: @item debug
98: :: $B%G%P%C%0%b!<%I$KF~$k(B.
99: @end table
100:
101: @itemize @bullet
102: @item
103: @code{debug} $B$OL50z?t$NH!?t$G$"$k$,(B, @samp{()} $B$J$7$G8F$S=P$;$k(B.
104: @item
105: $B%G%P%C%0%b!<%I$KF~$k$H%W%m%s%W%H$,(B @code{(debug)} $B$H$J$j(B, $B%3%^%s%I(B
106: $B<u$1IU$1>uBV$H$J$k(B. @code{quit} $B$rF~NO$9$k$H%G%P%C%,$+$iH4$1$k(B.
107: @item
108: $B%G%P%C%0%b!<%I$K$D$$$F$N>\:Y$O(B @xref{$B%G%P%C%,(B}.
109: @end itemize
110:
111: @example
112: [1] debug;
113: (debug) quit
114: 0
115: [2]
116: @end example
117:
118: @node error,,, $B$=$NB>(B
119: @subsection @code{error}
120: @findex error
121:
122: @table @t
123: @item error(@var{message})
124: :: $B%W%m%0%i%`Cf$G6/@)E*$K%(%i!<$rH/@8$5$;$k(B.
125: @end table
126:
127: @table @var
128: @item message
129: $BJ8;zNs(B
130: @end table
131:
132: @itemize @bullet
133: @item
134: $B0lHL$K(B, $B0z?t$N4V0c$$$J$I(B, $BB39TIT2DG=$J%(%i!<$,AH$_9~$_H!?t$K$*$$$F(B
135: $BH/@8$7$?;~(B, $B%H%C%W%l%Y%k$KLa$kA0$K(B, $B2DG=$J$i$P$=$N%(%i!<$N;~E@$G(B
136: $B%G%P%C%0%b!<%I$KF~$k(B. @code{error()} $B$O(B, $B%f!<%6H!?t$NFbIt$G$3$N(B
137: $BF0:n$HF1MM$NF0:n$r9T$o$;$k$?$a$NH!?t$G$"$k(B.
138: @item
139: $B0z?t$O(B, @code{error()} $B$,8F$S=P$5$l$k:]$KI=<($5$l$k%a%C%;!<%8$G(B,
140: $BJ8;zNs$G$"$k(B.
141: @item
142: $B%f!<%6H!?t$K$*$$$F(B, $BJQ?t$r%A%'%C%/$7$F(B, $B$"$jF@$J$$CM$N>l9g$K(B @code{error()}
143: $B$r8F$S=P$9$h$&$K$7$F$*$1$P(B, $B$=$N;~E@$G<+F0E*$K%G%P%C%0%b!<%I$KF~$l$k(B.
144: @end itemize
145:
146: @example
147: % cat mod3
148: def mod3(A) @{
149: if ( type(A) >= 2 )
150: error("invalid argument");
151: else
152: return A % 3;
153: @}
154: end$
155: % asir
156: [0] load("mod3");
157: 1
158: [3] mod3(5);
159: 2
160: [4] mod3(x);
161: invalid argument
162: stopped in mod3 at line 3 in file "./mod3"
163: 3 error("invalid argument");
164: (debug) print A
165: A = x
166: (debug) quit
167: return to toplevel
168: [4]
169: @end example
170:
171: @table @t
172: @item $B;2>H(B
173: @fref{debug}.
174: @end table
175:
176: @node help,,, $B$=$NB>(B
177: @subsection @code{help}
178: @findex help
179:
180: @table @t
181: @item help(["@var{function}"])
182: :: $BH!?t$N@bL@$rI=<($9$k(B.
183: @end table
184:
185: @table @var
186: @item return
187: 0
188: @item function
189: $BH!?tL>(B
190: @end table
191:
192: @itemize @bullet
193: @item
194: $BL50z?t$N;~(B, $B:G>.8B$N@bL@$,I=<($5$l$k(B. $BH!?tL>$,0z?t$H$7$FM?$($i$l$?(B
195: $B$H$-(B, $BI8=`%i%$%V%i%j%G%#%l%/%H%j$K$"$k(B @samp{help} $B$H$$$&%G%#%l%/%H%j(B
196: $B$KF1L>$N%U%!%$%k$,$"$l$P(B, $B4D6-JQ?t(B @code{PAGER} $B$K@_Dj$5$l$F$$$k%3%^%s%I(B,
197: $B$"$k$$$O(B @samp{more} $B$r8F$S=P$7$F$=$N%U%!%$%k$rI=<($9$k(B.
198: @item
199: Windows $BHG$G$O(B, $B%3%^%s%I%i%$%s$+$i$N%X%k%W8F$S=P$7$OL$%5%]!<%H$@$,(B,
200: $B%a%K%e!<$+$i(B HTML $B7A<0$N$b$N$r8F$S=P$7MQ$$$k$3$H$,$G$-$k(B.
201: @end itemize
202:
203: @node time,,, $B$=$NB>(B
204: @subsection @code{time}
205: @findex time
206:
207: @table @t
208: @item time()
209: :: $B%;%C%7%g%s3+;O$+$i8=:_$^$G$N(B CPU $B;~4V$*$h$S(B GC $B;~4V$rI=<($9$k(B
210: @end table
211:
212: @table @var
213: @item return
214: $B%j%9%H(B
215: @end table
216:
217: @itemize @bullet
218: @item
219: CPU $B;~4V$*$h$S(B GC $B;~4V$NI=<($K4X$9$k%3%^%s%I$G$"$k(B.
220: @item
221: GC $B;~4V$H$O(B, $B%,!<%Y%8%3%l%/%?$K$h$j>CHq$5$l$?$H8+$J$5$l$k;~4V(B,
222: CPU $B;~4V$O(B, $BA4BN$N(B CPU $B;~4V$+$i(B GC $B;~4V$r0z$$$?;D$j$G(B, $BC10L$OIC$G$"$k(B.
223: @item
224: @code{time()} $B$O0z?t$J$7$G(B, $B%;%C%7%g%s3+;O$+$i8=:_$^$G$N(B CPU $B;~4V(B,
225: GC $B;~4V(B, $B8=:_$^$G$KMW5a$5$l$?%a%b%j$N$N$YMFNL(B, $B$*$h$S%;%C%7%g%s3+;O$+$i(B
226: $B8=:_$^$G$N7P2a;~4V$NI=<($r$9$k(B.
227: $B$9$J$o$A(B, @code{[CPU $B;~4V(B ($BIC(B), GC $B;~4V(B ($BIC(B), $B%a%b%jNL(B ($B%o!<%I(B), $B7P2a;~4V(B ($BIC(B)]}
228: $B$J$k%j%9%H$rJV$9(B. 1 $B%o!<%I$ODL>o(B 4 $B%P%$%H$G$"$k(B.
229: @item
230: $B7W;;$N<B9T3+;O;~(B, $B=*N;;~$N(B @code{time()} $B$+$i(B, $B$=$N7W;;$KBP$9$k(B
231: CPU $B;~4V(B, GC $B;~4V$,$o$+$k(B.
232: @item
233: $B%a%b%jNL$OB?G\D9?t$G$O$J$$$?$a(B, $B$"$kCM$r1[$($k$HL50UL#$JCM$H$J$k$?$a(B
234: $B$"$/$^$G$bL\0B$H$7$FMQ$$$k$Y$-$G$"$k(B.
235: @item
236: @code{ctrl()} $B$d(B @code{cputime()} $B$K$h$j(B @code{cputime} $B%9%$%C%A$,(B
237: on $B$K$J$C$F$$$k>l9g$K$O(B, $B%H%C%W%l%Y%k$NJ8$r0l$D$NC10L$H$7$F(B,
238: $B$=$N<B9T;~4V$,I=<($5$l$k(B. $B$7$+$7(B, $B%W%m%0%i%`$NFbIt$J$I$G(B, $BFCDj$N(B
239: $B7W;;$KBP$9$k7W;;;~4V$rCN$j$?$$;~$K$O(B, @code{time()} $B$J$I$r;H$&(B
240: $BI,MW$,$"$k(B.
241: @item
242: @code{getrusage()} $B$,;H$($k(B UNIX $B>e$G$O(B @code{time()} $B$O?.Mj@-$N$"$kCM(B
243: $B$rJV$9$,(B, Windows 95, 98 $B>e$G$O;~9o$rMQ$$$k$[$+J}K!$,$J$$$?$a7P2a;~4V$=$N$b$N(B
244: $B$,I=<($5$l$k(B. $B$h$C$F(B, $BBT$A>uBV$,$"$k$H(B, $B$=$l$b7P2a;~4V$K2C;;$5$l$k(B.
245: @end itemize
246:
247: @example
248: [72] T0=time();
249: [2.390885,0.484358,46560,9.157768]
250: [73] G=hgr(katsura(4),[u4,u3,u2,u1,u0],2)$
251: [74] T1=time();
252: [8.968048,7.705907,1514833,63.359717]
253: [75] ["CPU",T1[0]-T0[0],"GC",T1[1]-T0[1]];
254: [CPU,6.577163,GC,7.221549]
255: @end example
256:
257: @table @t
258: @item $B;2>H(B
259: @fref{cputime tstart tstop}.
260: @end table
261:
262: @node cputime tstart tstop,,, $B$=$NB>(B
263: @subsection @code{cputime}, @code{tstart}, @code{tstop}
264: @findex cputime
265: @findex tstart
266: @findex tstop
267:
268: @table @t
269: @item cputime(@var{onoff})
270: :: $B0z?t$,(B 0 $B$J$i$P(B @code{cputime} $B$NI=<($r;_$a$k(B. $B$=$l0J30$J$i$PI=<($r9T$&(B.
271: @item tstart()
272: :: CPU time $B7WB,3+;O(B.
273: @item tstop()
274: :: CPU time $B7WB,=*N;$*$h$SI=<((B.
275: @end table
276:
277: @table @var
278: @item return
279: 0
280: @item onoff
281: $B%U%i%0(B ($BG$0U(B)
282: @end table
283:
284: @itemize @bullet
285: @item
286: @code{cputime()} $B$O(B, $B0z?t$,(B 0 $B$J$i$P(B CPU time $B$NI=<($r;_$a$k(B. $B$=$l0J30$J$i$PI=<($r9T$&(B.
287: @item
288: @code{tsart} $B$O0z?t$J$7(B, @samp{()} $B$J$7$G(B, CPU time $B7WB,$r3+;O$9$k(B.
289: @item
290: @code{tstop} $B$O0z?t$J$7(B, @samp{()} $B$J$7$G(B, CPU time $B7WB,$r=*N;(B,
291: $B$*$h$SI=<($9$k(B.
292: @item
293: @code{cputime(@var{onoff})} $B$O(B @code{ctrl("cputime",@var{onoff})} $B$HF1$8$G$"$k(B.
294: @item
295: @code{tstart}, @code{tstop} $B$O(B, $BF~$l;R$K$7$F;H$o$l$k$3$H$OA[Dj$7$F$$$J$$(B
296: $B$?$a(B, $B$=$N$h$&$J2DG=@-$,$"$k>l9g$K$O(B, @code{time()} $B$K$h$k7WB,$r9T$&(B
297: $BI,MW$,$"$k(B.
298: @item
299: @code{cputime()} $B$K$h$k(B on, off $B$O(B, $BC1$KI=<($N(B on, off $B$G$"$j(B, $B%H%C%W%l%Y%k(B
300: $B$N0l$D$NJ8$KBP$9$k7WB,$O>o$K9T$o$l$F$$$k(B. $B$h$C$F(B, $B7W;;$r;O$a$F$+$i$G$b(B,
301: $B7W;;=*N;A0$K%G%P%C%,$KF~$C$F(B @code{cputime(1)} $B$r<B9T$5$;$l$P7W;;;~4V$O(B
302: $BI=<($5$l$k(B.
303: @end itemize
304:
305: @example
306: [49] tstart$
307: [50] fctr(x^10-y^10);
308: [[1,1],[x+y,1],[x^4-y*x^3+y^2*x^2-y^3*x+y^4,1],[x-y,1],
309: [x^4+y*x^3+y^2*x^2+y^3*x+y^4,1]]
310: [51] tstop$
311: 80msec + gc : 40msec
312: @end example
313:
314: @table @t
315: @item $B;2>H(B
316: @fref{time}, @fref{ctrl}.
317: @end table
318:
319: @node heap,,, $B$=$NB>(B
320: @subsection @code{heap}
321: @findex heap
322:
323: @table @t
324: @item heap()
325: :: $B8=:_$N%R!<%W$NBg$-$5$rJV$9(B. ($BC10L(B:$B%P%$%H(B)
326: @end table
327:
328: @table @var
329: @item return
330: $B<+A3?t(B
331: @end table
332:
333: @itemize @bullet
334: @item
335: $B8=:_$N%R!<%W$NBg$-$5(B($BC10L(B : $B%P%$%H(B) $B$rJV$9(B. $B%R!<%W$H$O(B, @b{Asir} $B$N(B
336: $B$5$^$6$^$J?t<0$d(B, $B%f!<%6%W%m%0%i%`$J$I$,$*$+$l$k%a%b%j$NNN0h$G(B, $B%,!<%Y%8(B
337: $B%3%l%/%?$K$h$j4IM}$5$l$F$$$k(B. $B%W%m%0%i%`$NF0:nCf$O(B, $B%R!<%W$NBg$-$5$O(B
338: $BC1D4Hs8:>/$G$"$j(B, $B<B%a%b%j$NNL$r$3$($FBg$-$/$J$C$?>l9g$K$O(B, OS $B$K$h$k(B
339: $B%9%o%C%W%(%j%"$X$NFI$_=q$-$,$[$H$s$I$N7W;;;~4V$r@j$a$k$3$H$K$J$k(B.
340: @item
341: $B<B%a%b%j$,>/$J$$>l9g$K$O(B, $B5/F0;~$N(B @code{-adj} $B%*%W%7%g%s$K$h$j(B,
342: GC $B<gBN$N@_Dj$r9T$C$F$*$/I,MW$,$"$k(B.
343: @end itemize
344:
345: @example
346: % asir -adj 16
347: [0] load("fctrdata")$
348: 0
349: [97] cputime(1)$
350: 0msec
351: [98] heap();
352: 524288
353: 0msec
354: [99] fctr(Wang[8])$
355: 3.190sec + gc : 3.420sec
356: [100] heap();
357: 1118208
358: 0msec
359: [101] quit;
360: % asir
361: [0] load("fctrdata")$
362: 0
363: [97] cputime(1)$
364: 0msec
365: [98] heap();
366: 827392
367: 0msec
368: [99] fctr(Wang[8])$
369: 3.000sec + gc : 1.180sec
370: [100] heap();
371: 1626112
372: 0msec
373: [101] quit;
374: @end example
375:
376: @table @t
377: @item $B;2>H(B
378: @fref{$B%3%^%s%I%i%$%s%*%W%7%g%s(B}.
379: @end table
380:
381: @node version,,, $B$=$NB>(B
382: @subsection @code{version}
383: @findex version
384:
385: @table @t
386: @item version()
387: :: @b{Asir} $B$N%P!<%8%g%s$rJV$9(B.
388: @end table
389:
390: @table @var
391: @item return
392: $B<+A3?t(B
393: @end table
394:
395: @itemize @bullet
396: @item
397: @b{Asir} $B$N%P!<%8%g%s$r(B 10 $B?J(B 6 $B7e$N<+A3?t$GJV$9(B. $B:G=i$N(B 2 $B7e$,(B
398: $B@>Nq$N2<(B 2 $B7e(B, $B<!$N(B 2 $B7e$,7n(B, $B:G8e$N(B 2 $B7e$,F|$rI=$9(B.
399: @end itemize
400:
401: @example
402: [0] version();
403: 990831
404: @end example
405:
406: @node shell,,, $B$=$NB>(B
407: @subsection @code{shell}
408: @findex shell
409:
410: @table @t
411: @item shell(@var{command})
412: :: @var{command} $B$r%7%'%k%3%^%s%I$H$7$F<B9T$9$k(B.
413: @end table
414:
415: @table @var
416: @item return
417: $B<+A3?t(B
418: @item command
419: $BJ8;zNs(B
420: @end table
421:
422: @itemize @bullet
423: @item
424: @var{command} $B$r(B C $B$N(B @code{system()} $BH!?t$K$h$j%7%'%k%3%^%s%I$H$7$F<B9T$9$k(B.
425: $B%7%'%k$N=*N;%9%F!<%?%9$rJV$9(B.
426: @end itemize
427:
428: @example
429: [0] shell("ls");
430: alg da katsura ralg suit
431: algt defs.h kimura ratint test
432: alpi edet kimura3 robot texput.log
433: asir.o fee mfee sasa wang
434: asir_symtab gr mksym shira wang_data
435: base gr.h mp snf1 wt
436: bgk help msubst solve
437: chou hom p sp
438: const ifplot proot strum
439: cyclic is r sugar
440: 0
441: [1]
442: @end example
443:
444: @node map,,, $B$=$NB>(B
445: @subsection @code{map}
446: @findex map
447:
448: @table @t
449: @item map(@var{function},@var{arg0},@var{arg1},...)
450: :: $B%j%9%H(B, $BG[Ns$N3FMWAG$KH!?t$rE,MQ$9$k(B.
451: @end table
452:
453: @table @var
454: @item return
455: @var{arg0} $B$HF1$87?$N%*%V%8%'%/%H(B
456: @item function
457: $BH!?tL>(B
458: @item arg0
459: $B%j%9%H(B, $B%Y%/%H%k(B, $B9TNs(B
460: @item arg1, ...
461: $BG$0U(B ($B;D$j$N0z?t(B)
462: @end table
463:
464: @itemize @bullet
465: @item
466: @var{arg0} $B$N3FMWAG$r:G=i$N0z?t(B, @var{arg1} $B0J2<$N;D$j$N0z?t$H$7$F(B
467: $BH!?t(B @var{function} $B$r8F$S=P$7(B, @var{arg0} $B$NBP1~$9$kMWAG$N0LCV$K(B
468: $BH!?t8F$S=P$7$N7k2L$,F~$C$?F1$87?$N%*%V%8%'%/%H$r@8@.$7$FJV$9(B.
469: @item
470: @var{function} $B$O(B, $B%@%V%k%/%)!<%H$N$J$$H!?tL>$rMQ$$$k(B.
471: @item
472: @var{function} $B$K%W%m%0%i%`JQ?t$O;H$($J$$(B.
473: @item
474: @var{arg0} $B$,%j%9%H(B, $B%Y%/%H%k(B, $B9TNs0J30$N>l9g(B, $BC1$K(B @var{arg0},
475: @var{arg1}, ... $B$r0z?t$H$7$F(B @var{function} $B$r8F$S=P$7$=$N(B
476: $B7k2L$rJV$9(B.
477: @end itemize
478:
479: @example
480: [82] def afo(X) @{ return X^3; @}
481: [83] map(afo,[1,2,3]);
482: [1,8,27]
483: @end example
484:
485: @node flist,,, $B$=$NB>(B
486: @subsection @code{flist}
487: @findex flist
488:
489: @table @t
490: @item flist()
491: :: $B8=:_Dj5A$5$l$F$$$kH!?tL>$rJ8;zNs%j%9%H$H$7$FJV$9(B.
492: @end table
493:
494: @table @var
495: @item return
496: $BJ8;zNs$N%j%9%H(B
497: @end table
498:
499: @itemize @bullet
500: @item
501: $B8=:_Dj5A$5$l$F$$$kAH$_9~$_H!?t(B, $B%f!<%6Dj5AH!?t$NH!?tL>$rJ8;zNs%j%9%H(B
502: $B$H$7$FJV$9(B.
503: @item
504: $B%7%9%F%`H!?t$N8e$K%f!<%6Dj5AH!?t$,B3$/(B.
505: @end itemize
506:
507: @example
508: [77] flist();
509: [defpoly,newalg,mainalg,algtorat,rattoalg,getalg,alg,algv,...]
510: @end example
511:
512: @node delete_history,,, $B$=$NB>(B
513: @subsection @code{delete_history}
514: @findex delete_history
515:
516: @table @t
517: @item delete_history([@var{index}])
518: :: $B%R%9%H%j$r>C5n$9$k(B.
519: @end table
520:
521: @table @var
522: @item return
523: 0
524: @item index
525: $B>C5n$7$?$$%R%9%H%j$NHV9f(B
526: @end table
527:
528: @itemize @bullet
529: @item
530: $B0z?t$,$J$$$H$-(B, $B$3$l$^$G7W;;$7$?%R%9%H%j$rA4$F>C5n$9$k(B.
531: @item
532: $B0z?t$,$"$k$H$-(B, $B$=$NHV9f$N7k2L$N$_>C5n$9$k(B.
533: @item
534: $B$3$3$G%R%9%H%j$H$O(B, $BHV9f$D$-$N%W%m%s%W%H$KBP$7$F$NF~NO$rI>2A$7$FF@$i$l$?<0(B
535: $B$G(B, $B$3$N<0$O(B @code{@@@var{number}} $B$K$h$j<h$j=P$9$3$H$,$G$-$k(B. $B$3$N$3$H$O(B,
536: $B%,!<%Y%C%8%3%l%/%7%g%s$N:]$K$b$3$N<0$,@8$-;D$k$3$H$r0UL#$9$k(B.
537: @item
538: $BBg$-$J<0$,%R%9%H%j$H$7$F;D$C$?>l9g(B, $B0J9_$N%a%b%j4IM}$K;Y>c$rMh$9>l9g$,B?$$(B
539: $B$?$a(B, @code{bsave()} $B$J$I$G%U%!%$%k$K%;!<%V$7$F(B, @code{delete_history()}
540: $B$K$h$j%R%9%H%j$r>C5n$7$F$*$/$N$,M-8z$G$"$k(B.
541: @end itemize
542:
543: @example
544: [0] (x+y+z)^100$
545: [1] @@0;
546: ...
547: [2] delete_history(0);
548: [3] @@0;
549: 0
550: @end example
551:
552: @node get_rootdir,,, $B$=$NB>(B
553: @subsection @code{get_rootdir}
554: @findex get_rootdir
555:
556: @table @t
557: @item get_rootdir()
558: :: Asir $B$N%k!<%H%G%#%l%/%H%jL>$r<h$j=P$9(B
559: @end table
560:
561: @table @var
562: @item return
563: $BJ8;zNs(B
564: @end table
565:
566: @itemize @bullet
567: @item
568: UNIX $BHG$N>l9g(B, $B4D6-JQ?t(B @code{ASIR_LIBDIR} $B$,Dj5A$5$l$F$$$k>l9g$K$O$=$NCM(B, $B$5$l$F$$$J$$>l9g(B
569: $B$K$O(B @samp{/usr/local/lib/asir} $B$rJV$9(B.
570: @item
571: Windows $BHG$N>l9g(B, @samp{asirgui.exe} $B$N$"$k%G%#%l%/%H%j(B (@samp{bin} $B$H$$$&L>A0$N$O$:$G$"$k(B)
572: $B$N?F%G%#%l%/%H%j$,JV$5$l$k(B.
573: @item
574: $B$3$N4X?t$,JV$9%G%#%l%/%H%jL>$r4p=`$H$7$?AjBP%Q%9L>$r;XDj$9$k$3$H$K$h$j(B, $B%$%s%9%H!<%k(B
575: $B$5$l$?>l=j$K$h$i$J$$%U%!%$%kFI$_9~$_%W%m%0%i%`$r=q$/$3$H$,$G$-$k(B.
576: @end itemize
1.2 ! noro 577:
! 578:
! 579: @node getopt,,, $B$=$NB>(B
! 580: @subsection @code{getopt}
! 581: @findex getopt
! 582:
! 583: @table @t
! 584: @item getopt(@var{key})
! 585: :: $B%*%W%7%g%s$NCM$rJV$9(B.
! 586: @end table
! 587:
! 588: @table @var
! 589: @item return
! 590: $BG$0U(B
! 591: @end table
! 592:
! 593: @itemize @bullet
! 594: @item
! 595: $B%f!<%6Dj5A4X?t$O(B, $B8GDj8D?t0z?t$G$7$+@k8@$G$-$J$$(B. $B%f!<%6Dj5A4X?t$G(B
! 596: $B2DJQ8D0z?t$r<B8=$9$kJ}K!$N0l$D$H$7$F(B, $B%*%W%7%g%s$K$h$k0z?t$N;XDj(B
! 597: $B$,$"$k(B (@pxref{$B%*%W%7%g%s;XDj(B}). $B;XDj$5$l$?%*%W%7%g%s$r4X?tFb$G(B
! 598: $B<u$1<h$k$?$a$K$3$N4X?t$rMQ$$$k(B.
! 599: @item
! 600: $B4X?t8F$S=P$7$N:]$K(B @var{key} $B$,%*%W%7%g%s$H$7$F;XDj$5$l$F$$$k(B
! 601: $B>l9g$K$O(B, $B$=$NCM$rJV$9(B. $B$b$7;XDj$,$J$$>l9g$K$O(B, VOID $B7?%*%V%8%'%/%H(B
! 602: ($B7?<1JL;R(B -1) $B$rJV$9(B. @code{getopt()} $B$,JV$7$?CM$N7?$r(B @code{type()}
! 603: $B$GD4$Y$k$3$H$G(B, $B$=$N%*%W%7%g%s$,;XDj$5$l$?$+$I$&$+D4$Y$k$3$H$,$G$-$k(B.
! 604: @item
! 605: $B4X?t8F$S=P$7$K$*$1$k%*%W%7%g%s$N;XDj$O(B, $B@55,$N0z?t$J$i$S$N8e$m$K(B,
! 606:
! 607: @example
! 608: xxx(A,B,C,D|x=X,y=Y,z=Z)
! 609: @end example
! 610:
! 611: $B$H$$$&Iw$K(B, @samp{|} $B$KB3$/(B, @var{key=value} $B$N(B @samp{,} $B$G6h@Z$i$l$?(B
! 612: $BJB$S$rCV$/$3$H$G9T$&(B.
! 613: @end itemize
! 614:
! 615: @table @t
! 616: @item $B;2>H(B
! 617: @fref{$B%*%W%7%g%s;XDj(B}, @fref{type}.
! 618: @end table
! 619:
1.1 noro 620:
621:
622:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>