Annotation of OpenXM/src/asir-doc/exp/exp-ja.texi, Revision 1.20
1.20 ! takayama 1: %% $OpenXM: OpenXM/src/asir-doc/exp/exp-ja.texi,v 1.19 2005/05/04 00:08:38 takayama Exp $
1.1 takayama 2: \input texinfo
3: @iftex
4: @catcode`@#=6
5: @def@fref#1{@xrefX[#1,,@code{#1},,,]}
6: @def@b#1{{@bf@gt #1}}
7: @catcode`@#=@other
8: @end iftex
9: @overfullrule=0pt
10: @c -*-texinfo-*-
11: @comment %**start of header
12: @comment --- $B$*$^$8$J$$=*$j(B ---
13:
14: @comment --- GNU info $B%U%!%$%k$NL>A0(B ---
15: @setfilename xyzman
16:
17: @comment --- $B%?%$%H%k(B ---
18: @settitle $B<B83E*;EMM$N4X?t(B
19:
20: @comment %**end of header
21: @comment %@setchapternewpage odd
22:
23: @comment --- $B$*$^$8$J$$(B ---
24: @ifinfo
25: @macro fref{name}
26: @ref{\name\,,@code{\name\}}
27: @end macro
28: @end ifinfo
29:
30: @iftex
31: @comment @finalout
32: @end iftex
33:
34: @titlepage
35: @comment --- $B$*$^$8$J$$=*$j(B ---
36:
37: @comment --- $B%?%$%H%k(B, $B%P!<%8%g%s(B, $BCx<TL>(B, $BCx:n8"I=<((B ---
38: @title $B<B83E*;EMM$N4X?t(B
39: @subtitle Risa/Asir $B<B83E*;EMM4X?t@bL@=q(B
40: @subtitle 1.0 $BHG(B
1.19 takayama 41: @subtitle 2005 $BG/(B 5 $B7n(B
1.1 takayama 42:
1.16 ohara 43: @author by Risa/Asir committers
1.1 takayama 44: @page
45: @vskip 0pt plus 1filll
46: Copyright @copyright{} Risa/Asir committers
47: 2004. All rights reserved.
48: @end titlepage
49:
50: @comment --- $B$*$^$8$J$$(B ---
51: @synindex vr fn
52: @comment --- $B$*$^$8$J$$=*$j(B ---
53:
54: @comment --- @node $B$O(B GNU info, HTML $BMQ(B ---
55: @comment --- @node $B$N0z?t$O(B node-name, next, previous, up ---
56: @node Top,, (dir), (dir)
57:
58: @comment --- @menu $B$O(B GNU info, HTML $BMQ(B ---
59: @comment --- chapter $BL>$r@53N$KJB$Y$k(B ---
60: @comment --- $B$3$NJ8=q$G$O(B chapter XYZ, Chapter Index $B$,$"$k(B.
61: @comment --- Chapter XYZ $B$K$O(B section XYZ$B$K$D$$$F(B, section XYZ$B$K4X$9$k4X?t$,$"$k(B.
62: @menu
63: * Experimental Functions::
64: * Index::
65: @end menu
66:
67: @comment --- chapter $B$N3+;O(B ---
68: @comment --- $B?F(B chapter $BL>$r@53N$K(B. $B?F$,$J$$>l9g$O(B Top ---
69: @node $B<B83E*;EMM$N4X?t(B,,, Top
70: @chapter $B<B83E*;EMM$N4X?t(B
71:
72: @comment --- section $BL>$r@53N$KJB$Y$k(B. ---
73: @menu
74: * $B<B83E*;EMM$N4X?t@bL@=q$K$D$$$F(B::
75: * $B<B83E*;EMM$N4X?t(B::
76: @end menu
77:
78: @comment --- section ``XYZ$B$K$D$$$F(B'' $B$N3+;O(B --- section XYZ$B$K$D$$$F$N?F$O(B chapter XYZ
79: @node $B<B83E*;EMM$N4X?t@bL@=q$K$D$$$F(B,,, XYZ
80: @section $B<B83E*;EMM$N4X?t@bL@=q$K$D$$$F(B
81:
82: @comment --- $B=qBN;XDj$K$D$$$F(B ---
83: @comment --- @code{} $B$O%?%$%W%i%$%?BNI=<((B ---
84: @comment --- @var{} $B$O<P;zBNI=<((B ---
85: @comment --- @b{} $B$O%\!<%k%II=<((B ---
86: @comment --- @samp{} $B$O%U%!%$%kL>$J$I$NI=<((B ---
87:
88: $B$3$N@bL@=q$G$O(B
89: @b{Asir} $B$KF3F~$5$l$?<B83E*;EMM$N4X?t$K$D$$$F@bL@$9$k(B.
90: $B@5<0$J4X?t$H$7$FF3F~$5$l$?$b$N$N5-=R$O(B Risa/Asir $B%^%K%e%"%k(B
91: $B$K0\F0$5$l$k(B.
92: ChangeLog $B$N9`L\$O(B www.openxm.org $B$N(B cvsweb $B$G(B
93: $B%=!<%9%3!<%I$rFI$`;~$N=u$1$K$J$k>pJs$,=q$+$l$F$$$k(B.
94:
95: @comment --- section ``$B<B83E*4X?t(B'' $B$N3+;O(B ---
96: @node $B<B83E*;EMM$N4X?t(B,,, $B<B83E*;EMM$N4X?t(B
97: @section $B<B83E*;EMM$N4X?t(B
98:
99: @comment --- section ``$B<B83E*4X?t(B'' $B$N(B subsection xyz_abc
100: @comment --- subsection xyz_pqr xyz_stu $B$,$"$k(B.
101: @menu
1.2 takayama 102: * quotetotex::
103: * quotetotex_env::
104: * objtoquote::
1.3 takayama 105: * copyright::
1.2 takayama 106: * string_to_tb::
107: * tb_to_string::
108: * write_to_tb::
1.3 takayama 109: * dp_gr_main::
1.4 takayama 110: * asir-port.sh::
111: * asir-install.sh::
112: * get_struct_name::
113: * get_element_names::
114: * get_element_at::
115: * put_element_at::
1.6 takayama 116: * dp_initial_term::
117: * dp_order::
118: * dp_weyl_gr_main::
1.8 takayama 119: * list::
120: * mapat::
1.9 takayama 121: * set_print_function::
1.12 takayama 122: * small_jacobi::
1.13 takayama 123: * flatten_quote::
1.15 takayama 124: * sprintf::
125: * quote_to_funargs::
126: * funargs_to_quote::
1.19 takayama 127: * get_function_name::
1.15 takayama 128: * remove_paren::
1.17 takayama 129: * set_secure_mode::
130: * set_secure_flag::
1.1 takayama 131: @end menu
132:
1.3 takayama 133: @comment --- $B"~"~"~"~(B $B4X?t(B quotetotex, quotetotex_env $B$N@bL@(B $B"~"~"~"~(B
1.1 takayama 134: @comment --- $B8D!9$N4X?t$N@bL@$N3+;O(B ---
135: @comment --- section $BL>$r@53N$K(B ---
1.2 takayama 136: @node quotetotex quotetotex_env,,, $B<B83E*;EMM$N4X?t(B
137: @subsection @code{quotetotex}, @code{quotetotex_env}
1.1 takayama 138: @comment --- $B:w0zMQ%-!<%o!<%I(B
1.2 takayama 139: @findex quotetotex
140: @findex quotetotex_env
1.1 takayama 141:
142: @comment --- $B4X?t$N4JC1$J@bL@(B ---
143: @table @t
1.2 takayama 144: @item quotetotex(@var{q})
145: :: @var{q} $B$r(B latex $B7A<0$GI=8=$7$?J8;zNs$KJQ49$9$k(B.
146: @item quotetotex_env(@var{key},@var{value})
147: :: quotetotex $B$NF0:n$r@)8f$9$k%Q%i%a!<%?$rJQ99$9$k(B.
148: @item quotetotex_env()
149: :: quotetotex $B$NF0:n$r@)8f$9$k%Q%i%a!<%?$N8=:_CM$rLa$9(B.
150: @item quotetotex_env(0)
151: :: quotetotex $B$NF0:n$r@)8f$9$k%Q%i%a!<%?$r%G%U%)!<%k%HCM$KLa$9(B.
1.1 takayama 152: @end table
153:
154: @comment --- $B0z?t$N4JC1$J@bL@(B ---
155: @table @var
156: @item return
1.2 takayama 157: $BJ8;zNs(B(quotetotex) $B$^$?$O(B $B%j%9%H$^$?$O%*%V%8%'%/%H(B(quotetotex_env)
158: @item q
159: quote
160: @item key
161: $BJ8;zNs(B
162: @item value
163: $B%*%V%8%'%/%H(B
1.1 takayama 164: @end table
165:
166: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
167: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
168: @comment --- @bullet $B$O9uE@IU$-(B ---
169: @itemize @bullet
170: @item
1.2 takayama 171: quotetotex $B$O(B @var{q} $B$r(B latex $B7A<0$GI=8=$7$?J8;zNs$KJQ49$9$k(B.
172: @item
173: $B0J2<(B quotetotex_env $B$N%Q%i%a!<%?$N0UL#$r@bL@$9$k(B.
174: @item
175: conv_rule: 3 $B%S%C%H$rMQ$$$FJQ49%k!<%k$r;XDj$9$k(B.
176: 0$B%S%C%HL\$O(B symbol_table $B$K$h$kJQ49$r9T$&$+(B,
177: 1$B%S%C%HL\$OE:;zJQ49$r9T$&$+(B,
1.3 takayama 178: 2$B%S%C%HL\$O(B d $B$+$i;O$^$kJQ?tL>$rHyJ,:nMQAG$H$_$J$7$F=hM}$9$k$+(B,
1.2 takayama 179: $B$r0UL#$9$k(B.
180: $B$?$H$($P(B conv_rule $B$H$7$F(B 3 $B$r;XDj$9$k$H(B,
181: 0$B%S%C%HL\(B, 1 $B%S%C%HL\$,(B 1 $B$H$J$k$N$G(B
182: symbol_table $B$K$h$kJQ49$r9T$$(B, $BE:;zJQ49$r$*$3$J$&(B.
183: $BE:;zJQ49$O?t;z$H1Q;z$N6-L\$*$h$S(B _ $B5-9f$r6h@Z$j$H$9$k(B.
184: symbol_table $B$K$h$kJQ49$,:G=i$KE,MQ$5$l$k(B.
185: alpha, beta, $BEy$O<+F0E*$r%.%j%7%cJ8;z$KJQ49$9$k%F!<%V%k$O(B
186: $BFbB"$:$_(B.
187: @item
1.5 takayama 188: dp_vars_prefix: $BJ,;6I=8=B?9`<0$O(B
189: @tex
190: $x_0, x_1, \cdots$
191: @end tex
192: $B$NB?9`<0$H$7$F(B latex $B7A<0$KJQ49$5$l$k$,$3$N(B
193: x $B$NItJ,$rJQ99$9$k(B.
194: @item
195: dp_vars_origin: $B%$%s%G%C%/%9$N;O$^$j$NCM$r;XDj$9$k(B.
196: $B%G%U%)!<%k%H$O(B 0.
1.1 takayama 197: @item
1.2 takayama 198: dp_vars_hweyl: $BJ,;6I=8=B?9`<0$r%o%$%kBe?t$N85$H$_$J$7$F(B
1.3 takayama 199: latex $B7A<0$KJQ49$9$k(B.
1.2 takayama 200: $B6v?t8DJQ?t$,$"$k$H$-$O(B $B:G=i$NH>J,$r(B
201: @tex
202: $x_0, x_1, \cdots$
203: @end tex
204: $B$K(B
205: $B8eH>$NH>J,$r(B
206: @tex
207: $\partial_0, \partial_1, \cdots$
208: @end tex
209: $B$KJQ49$9$k(B.
210: $B4q?t8D$N>l9g$O:G8e$NJQ?t$,F1;~2=JQ?t$H$7$F(B h $B$GI=<($5$l$k(B.
1.5 takayama 211: @item
212: dp_dvars_prefix: dp_vars_hweyl $B$,(B 1 $B$N;~$K8eH>ItJ,$N(B prefix $B$r;XDj$9$k(B.
213: $B%G%U%)!<%k%H$O(B @tex $\partial$ @end tex
214: @item
215: dp_dvars_origin: dp_vars_hweyl $B$,(B 1 $B$N;~$N%$%s%G%C%/%9$N;O$^$j$NCM(B.
1.2 takayama 216: @item
217: conv_func: $B%f!<%6Dj5A$NJQ494X?t$r$h$V(B.
218: @item
219:
1.1 takayama 220: @end itemize
221:
222: @comment --- @example$B!A(B@end example $B$O<B9TNc$NI=<((B ---
223: @example
1.2 takayama 224: [3] quotetotex(quote(1/(x+1)));
225: \frac@{ 1@} @{ ( @{x@}+ 1)@}
226: [4] quotetotex(objtoquote(diff(x^x,x)));
227: @{x@}^@{ @{x@}- 1@} @{x@}+ \log( @{x@}) @{x@}^@{ @{x@}@}
228: [5] quotetotex_env("conv_rule",3);
229: [6] quotetotex(objtoquote( (alpha2beta+x_i_j)^2));
230: @{\alpha@}_@{2,\beta@}^@{ 2@} + 2 @{x@}_@{i,j@} @{\alpha@}_@{2,\beta@}+ @{x@}_@{i,j@}^@{ 2@}
1.1 takayama 231: @end example
232:
233: @comment --- $B;2>H(B($B%j%s%/(B)$B$r=q$/(B ---
234: @table @t
235: @item $B;2>H(B
1.2 takayama 236: @ref{objtoquote}
1.3 takayama 237: print_tex_form(contrib)
1.1 takayama 238: @end table
239:
240: @comment --- ChangeLog $B$r=q$/(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
241: @noindent
242: ChangeLog
243: @itemize @bullet
1.5 takayama 244: @item
245: $B$3$N4X?t$O(B 2004$BG/(B2$B7nKv$+$i(B3$B7n$K$+$1$F(B asir $B$r(B
246: knoppix $BHG(B texmacs $B$KBP1~$5$;$k$?$a$K=q$+$l$?(B.
247: Asir-contrib $B$N(B print_tex_form $B$,$=$N867?$G$"$j(B, $B$=$l$r8zN(2=$7$^$?(B
248: $B=PNO7A<0$r2~A1$7$?(B.
249: OpenXM/src/kxx/ox_texmacs.c, OpenXM/src/texmacs $B$b;2>H(B.
250: @item
251: OpenXM/src/asir-contrib/packages/src/noro_print.rr 1.1--1.8,
252: noro_print_default.rr 1.1--1.3 $B$b;2>H(B.
253: @item
254: $BJQ99$r<u$1$?%U%!%$%k$O(B OpenXM_contrib2/asir2000 $B$N2<$N<!$N%U%!%$%k(B.
1.3 takayama 255: builtin/strobj.c 1.14--1.43,
256: include/ca.h 1.46, io/cexpr.c 1.18, io/pexpr.c 1.32, io.sexpr.c 1.29,
257: parse/arith.c 1.12, parse/parse.h 1.28--1.29,
258: parse/quote.c 1.7--1.8, 1.12.
259: @item
260: knoppix/math $B$O(B $BJ!2,Bg3X$N_@ED$5$s$,Cf?4$H$J$j3+H/$5$l$F$$$k(B.
1.5 takayama 261: @item
262: dp_dvars_prefix, *_origin $B$O(B builtin/strobj.c 1.46 $B$GF3F~$5$l$?(B.
263: @item
264: Todo: quotetoterminalform ($BJ,;6I=8=B?9`<0$N8+0W$$=PNO(B).
1.3 takayama 265: @end itemize
266:
267:
268:
269: @comment --- $B"~"~"~"~(B $B4X?t(B objtoquote $B$N@bL@(B $B"~"~"~"~(B
270: @node objtoquote,,, $B<B83E*;EMM$N4X?t(B
271: @subsection @code{objtoquote}
272: @findex objtoquote
273:
274: @comment --- $B4X?t$N4JC1$J@bL@(B ---
275: @table @t
276: @item objtoquote(@var{ob})
277: :: $B%*%V%8%'%/%H$H(B quote $B7?$N%G!<%?$KJQ49$9$k(B.
278: @end table
279:
280: @table @var
281: @item return
282: quote
283: @item ob
284: $B%*%V%8%'%/%H(B
285: @end table
286:
287: @itemize @bullet
288: @item
289: @code{objtoquote(ob)} $B$O(B, @var{ob} $B$r(B quote $B7?$N%G!<%?$KJQ49$9$k(B.
290: @end itemize
291:
292: @example
293: [1150] quotetolist(quote(1+2));
294: [b_op,+,[internal,1],[internal,2]]
295: [1151] quotetolist(objtoquote(1+x));
296: [b_op,+,[internal,x],[internal,1]]3
297: @end example
298:
299: @table @t
300: @item $B;2>H(B
301: @ref{quotetotex} @ref{quotetolist}
302: @end table
303:
304: @comment --- ChangeLog $B$r=q$/(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
305: @noindent
306: ChangeLog
307: @itemize @bullet
308: @item $B$3$N4X?t$O(B quotetotex $B$NA0=hM}$r$9$k$?$a$K=q$+$l$?(B.
309: @item asir-contrib $B$N4X?t(B quote_to_quote $B$b;2>H(B.
310: @item OpenXM_contrib2/asir2000/builtin/print.c 1.16.
311: @end itemize
312:
313:
314: @comment --- $B"~"~"~"~(B $B4X?t(B copyright $B$N@bL@(B $B"~"~"~"~(B
315: @node copyright,,, $B<B83E*;EMM$N4X?t(B
316: @subsection @code{copyright}
317: @findex copyright
318:
319: @comment --- $B4X?t$N4JC1$J@bL@(B ---
320: @table @t
321: @item copyright()
322: :: Risa/Asir $B$N(B copyright $BI=<($rJ8;zNs$H$7$FLa$9(B.
323: @end table
324:
325: @table @var
326: @item return
327: $BJ8;zNs(B
328: @end table
329:
330: @itemize @bullet
331: @item
332: Risa/Asir $B$N(B copyright $BI=<($rJ8;zNs$H$7$FLa$9(B.
333: @end itemize
334:
335: @example
336: [1150] copyright();
337: This is Risa/Asir, Version 20040312 (Kobe Distribution).
338: Copyright (C) 1994-2000, all rights reserved, FUJITSU LABORATORIES LIMITED.
339: Copyright 2000-2003, Risa/Asir committers, http://www.openxm.org/.
340: GC 6.2(alpha6) copyright 1988-2003, H-J. Boehm, A. J. Demers, Xerox, SGI, HP.
341: PARI 2.0.17, copyright 1989-1999, C. Batut, K. Belabas, D. Bernardi,
342: H. Cohen and M. Olivier.
343: @end example
344:
345: @comment --- ChangeLog $B$r=q$/(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
346: @noindent
347: ChangeLog
348: @itemize @bullet
349: @item $B$3$N4X?t$O(B texmacs $BMQ$K=q$+$l$?(B (2004-03).
350: @item OpenXM_contrib2/asir2000 $B$N2<$N0J2<$N%U%!%$%k$r$_$h(B. builtin/miscf.c 1.21,
351: parse/glob.c 1.47.
352: @end itemize
353:
354:
355:
356: @comment --- $B"~"~"~"~(B $B4X?t(B string_to_tb, ... $B$N@bL@(B $B"~"~"~"~(B
357: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
358: @node string_to_tb tb_to_string write_to_tb,,, $B<B83E*;EMM$N4X?t(B
359: @subsection @code{string_to_tb}, @code{tb_to_string}, @code{write_to_tb}
360: @findex string_to_tb
361: @findex tb_to_string
362: @findex write_to_tb
363:
364: @comment --- $B4X?t$N4JC1$J@bL@(B ---
365: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
366: @table @t
367: @item string_to_tb(@var{s})
368: @itemx tb_to_string(@var{tb})
369: @itemx write_to_tb(@var{s},@var{tb})
370: :: $BJ8;zNs2DJQD9G[Ns7?(B(text buffer)$B$N%G!<%?$N=hM}(B
371: @end table
372:
373: @table @var
374: @item return
375: $BJ8;zNs2DJQD9G[Ns7?(B(string_to_tb), $BJ8;zNs7?(B(tb_to_string)
376: @item s
377: $BJ8;zNs(B
378: @item tb
379: $BJ8;zNs2DJQD9G[Ns7?(B
380: @end table
381:
382: @itemize @bullet
383: @item
384: @code{string_to_tb(@var{s})} $B$O(B, $BJ8;zNs(B @var{s} $B$r$O$8$a$NMWAG$H$9$k(B
385: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H$r@8@.$9$k(B.
386: @item
387: @code{tb_to_string_(@var{tb})} $B$O(B,
388: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H(B @var{tb} $B$+$iDL>o$NJ8;zNs%*%V%8%'%/%H$r@8@.$9$k(B.
389: @item
390: @code{write_to_tb(@var{s},@var{tb})} $B$O(B, $BJ8;zNs(B @var{s} $B$r(B
391: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H(B @var{tb} $B$X=q$-=P$9(B.
392: @item @var{SS} $B$rJ8;zNsJQ?t$H$9$k$H$-(B,
393: @var{SS} += "$BJ8;zNs(B" $B$G(B @var{SS} $B$XJ8;zNs$r=q$-B-$7$F$$$/$3$H$,$G$-$k$,(B,
394: $BL5BL$J%a%b%j$rBgNL$K>CHq$9$k(B.
395: $BBe$j$K4X?t(B @code{write_to_tb} $B$rMQ$$$k$Y$-$G$"$k(B.
396: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H$OJ8;zNs$N2DJQD9$NG[Ns$G$"$j%a%b%j4IM}$KM%$7$$(B
397: $B%G!<%?9=B$$G$"$k(B.
398: @end itemize
399:
400: @example
401: [219] T=string_to_tb("");
402:
403: [220] write_to_tb("Hello",T);
404: 0
405: [221] write_to_tb(" world!",T);
406: 0
407: [222] tb_to_string(T);
408: Hello world!
409: @end example
410:
411:
412: @comment --- ChangeLog $B$r=q$/(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
413: @noindent
414: ChangeLog
415: @itemize @bullet
1.5 takayama 416: @item
417: $B$3$N4X?t$O(B 2004-3 $B$K(B print_tex_form $B$r8zN(2=$9$k$?$a$K=q$+$l$?(B.
418: @item
419: OpenXM_contrib2/asir2000 $B$N2<$N0J2<$N%U%!%$%k$r8+$h(B.
1.3 takayama 420: io/ox_asir.c 1.52, builtin/strobj.c 1.12--1.13, 1.16,
421: engine/str.c 1.5, parse/quote.c 1.9.
1.5 takayama 422: @item
423: rtostr $B$,(B text buffer $B7?$N%G!<%?$K4X$7$F$*$=$+$C$?(B. $BB.EY$N2~A1$O(B
424: asir2000/io/pexpr_body.c 1.2, asir2000/parse/lex.c 1.32.
1.3 takayama 425: @end itemize
426:
427:
428:
429: @comment --- $B"~"~"~"~(B $B4X?t(B dp_gr_main $B$N@bL@(B $B"~"~"~"~(B
430: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
431: @node dp_gr_main,,, $B<B83E*;EMM$N4X?t(B
432: @subsection @code{dp_gr_main}
433: @findex dp_gr_main
434:
435: @comment --- $B4X?t$N4JC1$J@bL@(B ---
436: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
437: @table @t
438: @item dp_gr_main(@var{f} | v=@var{vv}, order=@var{oo}, homo=@var{n}, matrix=@var{m}, block=@var{b}, sugarweight=@var{sw})
439: :: dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9(B.
440: @end table
441:
442: @table @var
443: @item return
444: $B%j%9%H(B ($B%0%l%V%J4pDl(B. $B:F5"I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B)
445: @item f
446: $B%j%9%H(B ($BF~NOB?9`<07O(B. $B:F5"I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B)
447: @item vv
448: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
449: @item oo
450: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
451: @item n
452: 0 $B$+(B1 (homogenization $B$r$9$k$+(B)
453: @item m
454: $B=g=x$r(B matrix $B$GI=8=$9$k>l9g(B (cf. dp_ord).
455: @item b
456: ???
457: @item sw
1.5 takayama 458: Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. $BA4$F$NMWAG$OHsIi(B.
1.3 takayama 459: @end table
460:
461: @itemize @bullet
462: @item
463: @code{dp_gr_main(@var{f})} $B$O(B, @var{f} $B$N%0%l%V%J4pDl$r7W;;$9$k(B.
464: $B%0%l%V%J4pDl$O=g=x$rJQ$($k$H$=$N7A$,JQ$o$k(B. asir $B$G$O$$$^$^$G=g=x$N;XDjJ}K!$,(B
465: $B7OE}$@$C$F$$$J$+$C$?(B.
466: dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B.
467: @comment ~taka/this03/misc-2003/A2/dp
468: @item $B=g=x(B order $B$O<!$NJ8K!$GDj5A$9$k(B. @{, @} $B$O(B 0 $B2s0J>e$N7+$jJV$7$r0UL#$9$k(B.
1.11 ohara 469: @example
1.3 takayama 470: order : '[' orderElement { ',' orderElement } ']'
1.5 takayama 471: orderElement : weightVec | builtinOrder
1.3 takayama 472: weightVec : '[' weightElement { ',' weightElement } ']'
473: builtiniOrder : '[' orderName ',' setOfVariables ']'
474: weightElement : NUMBER | setOfVariables ',' NUMBER
475: setOfVariables: V | range(V,V)
1.11 ohara 476: orderName : @@grlex | @@glex | @@lex
477: @end example
1.3 takayama 478: $B$3$3$G(B @code{V} $B$O(B $BJQ?tL>(B, @code{NUMBER} $B$O@0?t$r$"$o$i$9(B.
479: $BNc(B1: @code{v=[x,y,z,u,v], order=[[x,10,y,5,z,1],[@@grlex,range(x,v)]]}
480: $B$O(B @code{x},@code{y},@code{z} $B$,$=$l$>$l(B weight 10, 5, 1 $B$r$b$D(B
481: $B=g=x$GHf3S$7$?$"$H(B, @code{[x,y,z,u,v]} $B$K$D$$$F$N(B
482: graded reverse lexicographic order $B$r(B tie-breaker $B$H$7$FMQ$$$k$3$H$r0UL#$9$k(B.
1.5 takayama 483: $B;29M=q(B: B.Sturmfels: Gr\"obner Bases and Convex Polytopes (1995).
484: M.Saito, B.Sturmfels, N.Takayama:
485: Gr\"obner Deformations of Hypergeometric Differential Equations (2000).
486: @item
487: $B=g=xMWAG(B (orderElement) $B$N;XDjJ}K!$O(B
488: (1) $BJQ?tL>$^$?$O(B range$B$G;XDj$5$l$?JQ?t$N=89g$H=E$_$NCM$N7+$jJV$7(B
489: (2) $B=E$_$NCM$rJQ?t%j%9%H$N=gHV$KJB$Y$kJ}K!(B
490: (3) $BJQ?tL>$^$?$O(B range$B$G;XDj$5$l$?JQ?t$N=89g$H=g=xL>$NAH(B
491: $B$N;0DL$j$N4pACE*J}K!$,$"$k(B.
492: $B;w$?;XDjJ}K!$,(B Macaulay, Singular, CoCoA, Kan/sm1 $BEy$N4DO@%7%9%F%`$G(B
493: $B;HMQ$5$l$F$$$?(B. Risa/Asir $B$N;XDjJ}K!$O$3$l$i$N%7%9%F%`$N;XDjJ}K!$r;29M$K(B
494: $B$5$i$K2~NI$r2C$($?$b$N$G=@Fp@-$,9b$$(B.
1.3 takayama 495: @item
496: order $B$N(B tie-breaker $B$O(B grlex $B$,%G%U%)!<%k%H(B.
497: @item
498: $BJ,;6I=8=B?9`<0$r0z?t$H$7$?$H$-$O7k2L$bJ,;6I=8=B?9`<0$H$7$FLa$k(B.
499: order $B;XDj$K$b$A$$$k%G%U%)!<%k%H$NJQ?tL>$O$3$N$H$-(B x0, x1, x2, ... $B$H$J$k(B.
1.5 takayama 500: @item
501: $B%*%W%7%g%s$NCM$O(B option_list $B%-!<%o!<%I$rMQ$$$F%j%9%H$GM?$($F$b$h$$(B.
502: $B2<$NNc$r;2>H(B.
1.3 takayama 503: @end itemize
504:
505: @example
506: [218] load("cyclic");
507: [219] V=vars(cyclic(4));
508: [c0,c1,c2,c3]
509: [220]dp_gr_main(cyclic(4) | v=V, order=[[c0,10,c1,1],[c2,5],[@@grlex,range(c0,c3)]]);
510: [ 10 1 0 0 ]
511: [ 0 0 5 0 ]
512: [ R R R R ]
513: [(-c3^6+c3^2)*c2^2+c3^4-1,c3^2*c2^3+c3^3*c2^2-c2-c3,
514: (c3^4-1)*c1+c3^5-c3,(c2-c3)*c1+c3^4*c2^2+c3*c2-2*c3^2,-c1^2-2*c3*c1-c3^2,
515: c0+c1+c2+c3]
516:
517: [1151] F=map(dp_ptod,katsura(4), vars(katsura(4)));
518: [(1)*<<1,0,0,0,0>>+(2)*<<0,1,0,0,0>>+ ... ]
519: [1152] dp_gr_main(F | order=[[range(x0,x3),1]]);
520: [ 1 1 1 1 0 ]
521: [ R R R R R ]
522: [(47774098944)*<<0,0,0,0,13>>+ ... ]
1.5 takayama 523:
524: [1153] Opt=[["v",[x,y]], ["order",[[x,5,y,1]]]];
525: [[v,[x,y]],[order,[[x,5,y,1]]]]
526: [1154] dp_gr_main([x^2+y^2-1,x*y-1] | option_list=Opt);
527: [ 5 1 ]
528: [ R R ]
529: [-y^4+y^2-1,x+y^3-y]
1.3 takayama 530: @end example
531:
532: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
533: @noindent
534: ChangeLog
535: @itemize @bullet
536: @item $B$3$N4X?t$O(B 2003-12 $B$+$i(B 2004-2 $B$N;O$a$KBg$-$J=$@5$,9T$o$l$?(B.
537: @item
538: @code{setOfVariables}$B$NI=8=$N$?$a$K(B range $B%*%V%8%'%/%H$,F3F~$5$l$?(B.
539: @item
540: $B%0%l%V%J4pDl$O=g=x$rJQ$($k$H$=$N7A$,JQ$o$k(B. asir $B$G$O$$$^$^$G=g=x$N;XDjJ}K!$,(B
541: $B7OE}$@$C$F$$$J$+$C$?(B.
542: dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B.
543: @item
544: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
545: builtin/gr.c 1.56--1.57,
546: builtin/dp-supp.c 1.27--1.31 (create_composite_order_spec),
547: builtin/dp.c 1.46--1.48 (parse_gr_option),
548: engine/Fgfs.c 1.20,
549: engine/dist.c 1.27--1.28
550: engine/nd.c 1.89,
551: include/ca.h 1.42--1.43,
552: io/pexpr.c 1.28,
553: io/sexpr.c 1.26,
554: parse/arith.c 1.11,
555: parse/glob.c 1.44-1.45,
556: parse/lex.c 1.29,
557: parse/parse.h 1.23--1.26
1.5 takayama 558: @item
559: Todo: return $B%-!<%o!<%I$GLa$jCM$N%G!<%?$r(B quote $B$N%j%9%H$K$G$-$k$h$&$K(B.
560: attribute, ring $B9=B$BN(B.
1.1 takayama 561: @end itemize
562:
563: @comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B
564: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
1.3 takayama 565: @node asir-install.sh,,, $B<B83E*;EMM$N4X?t(B
566: @subsection @code{asir-port.sh}, @code{asir-install.sh}
567: @findex asir-port.sh
568: @findex asir-install.sh
1.1 takayama 569:
570: @comment --- $B4X?t$N4JC1$J@bL@(B ---
571: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
572: @table @t
1.3 takayama 573: @item asir-install.sh
574: @itemx asir-port.sh
575: :: $B$3$l$O(B asir $B$NFbIt%3%^%s%I$G$O$J$$(B. asir $B$r%M%C%H%o!<%/$+$i%@%&%s%m!<%I$+$D<B9T$9$k%7%'%k%9%/%j%W%H(B
576: @end table
577:
578:
579: @itemize @bullet
580: @item
581: asir-port.sh $B$O(B knoppix $B@lMQ$G$"$k(B.
1.10 ohara 582: $B$3$N%3%^%s%I$O(B asir $B$N%P%$%J%j$*$h$S(B FLL $B$GG[I[$G$-$J$$ItJ,$r(B
1.3 takayama 583: ftp.math.kobe-u.ac.jp $B$h$j%@%&%s%m!<%I$7$F(B
584: /home/knoppix/.asir-tmp $B$X%;!<%V$7$F(B, $B<B9T$9$k(B.
585: .asirrc $B$*$h$S(B .TeXmacs/plugins/ox/progs/init-ox.scm $B$b%@%&%s%m!<%I$9$k(B.
586: @item
587: asir-install.sh $B$O(B Debian GNU Linux / openxm-binary*.deb $B@lMQ$G$"$k(B.
588: asir-install.sh $B$O(B asir $B$r%@%&%s%m!<%I$7$F(B /usr/local/OpenXM/bin $B$*$h$S(B
589: /usr/local/OpenXM/lib/asir $B$X%$%s%9%H!<%k$9$k(B.
590: @end itemize
591:
592:
593: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
594: @noindent
595: ChangeLog
596: @itemize @bullet
597: @item
598: $B$3$l$i$N%7%'%k%9%/%j%W%H$O(B knoppix/math $B$N$?$a$K(B 2004/2, 3 $B7n$K=q$+$l$?(B.
599: @item
600: knoppix/math $B$OJ!2,Bg3X$N_@ED$5$s$,Cf?4$H$J$j3+H/$5$l$F$$$k(B.
601: @item
602: OpenXM/misc/packages/Linux/Debian $B$N2<$NA4$F$N%U%!%$%k(B (2004-2-22 $B$+$i(B
603: 2004-3 $B$NKv$^$G(B). ( ~taka/this03/misc-2003/A3/knoppix-03-05 ($B%W%i%$%Y!<%H%U%!%$%k(B) $B$b8+$h(B.)
604: OpenXM/src/asir-port $B$N2<$N<!$N3F%U%!%$%k(B.
605: Makefile 1.1--1.8, asir-install.sh 1.1--1.2, asir-port.sh 1.1--1.6.
606: @end itemize
607:
1.4 takayama 608:
609: @node get_struct_name,,, $B<B83E*;EMM$N4X?t(B
610: @subsection @code{get_struct_name}, @code{get_element_names}, @code{get_element_at}, @code{put_element_at}
611: @findex get_struct_name
612: @findex get_element_names
613: @findex get_element_at
614: @findex put_element_at
615:
616: @comment --- $B4X?t$N4JC1$J@bL@(B ---
617: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
618: @table @t
619: @item get_struct_name(@var{s})
620: @itemx get_element_names(@var{s})
621: @itemx get_element_at(@var{s},@var{key})
622: @itemx put_element_at(@var{s},@var{key},@var{obj})
623: :: $B9=B$BN(B @var{s} $B$KBP$9$kA`:n(B
624: @end table
625:
626: @table @var
627: @item return
628: $BJ8;zNs(B (get_struct_name),
629: $BJ8;zNs$N%j%9%H(B (get_element_names),
630: $B%*%V%8%'%/%H(B (get_element_at),
631: $B%*%V%8%'%/%H(B (put_element_at)
632: @item s
633: $B9=B$BN(B
634: @item key
635: $BJ8;zNs(B
636: @item obj
637: $B%*%V%8%'%/%H(B
638: @end table
639:
640: @itemize @bullet
641: @item
642: @code{get_struct_name(s)} $B$O(B, $B9=B$BN(B @var{s} $B$NL>A0$rLa$9(B.
643: @item
644: @code{get_element_names(s)} $B$O(B, $B9=B$BN$N%a%s%P!<$NL>A0$N%j%9%H$rLa$9(B.
645: @item
646: @code{get_element_at(s,key)} $B$O9=B$BN(B s $B$N%a%s%P!<(B key $B$NCM$rLa$9(B.
647: @item
648: @code{put_element_at(s,key,obj)} $B$O9=B$BN(B s $B$N%a%s%P!<(B key $B$NCM$r(B obj $B$K@_Dj$9$k(B.
649: @end itemize
650:
651: @example
652: [219] struct point { x, y, color};
653: [220] P = newstruct(point);
654: {0,0,0}
655: [221] P->x = 10$ P->y=5$ P->color="red"$
656: [222] get_element_names(P);
657: [x,y,color]
658: [223] put_element_at(P,"color","blue");
659: blue
660: [224] P->color;
661: bule
662: @end example
663:
664: @table @t
665: @item $B;2>H(B
666: @ref{newstruct}, @ref{struct}
667: @end table
668:
669: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
670: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
671: @noindent
672: ChangeLog
673: @itemize @bullet
674: @item $B9=B$BN$NDj5A$rCN$i$:$K9=B$BN$r07$&%f!<%64X?t$r=q$/$H$-$KJXMx(B.
675: asir-contrib $B$N(B noro_print.rr $B$r8+$h(B.
676: @item OpenXM_contrib2/asir2000/builtin/compobj.c 1.8.
677: @end itemize
678:
1.6 takayama 679: @comment --- $B"~"~"~"~(B $B4X?t(B dp_gr_main $B$N@bL@(B $B"~"~"~"~(B
680: @node dp_weyl_gr_main,,, $B<B83E*;EMM$N4X?t(B
681: @subsection @code{dp_weyl_gr_main}
682: @findex dp_weyl_gr_main
683:
684: @comment --- $B4X?t$N4JC1$J@bL@(B ---
685: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
686: @table @t
687: @item dp_weyl_gr_main(@var{f} | v=@var{vv}, order=@var{oo}, homo=@var{n}, matrix=@var{m}, block=@var{b}, sugarweight=@var{sw})
688: :: dp_weyl_gr_main $B$N?7$7$$%$%s%?%U%'!<%9(B. dp_gr_main $B$HF1$87A<0$G$"$k(B.
689: @end table
690:
691: @table @var
692: @item return
693: $B%j%9%H(B ($B%0%l%V%J4pDl(B. $B:F5"I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B)
694: @item f
695: $B%j%9%H(B ($BF~NOB?9`<07O(B. $B:F5"I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B)
696: @item vv
697: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
698: @item oo
699: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
700: @item n
701: 0 $B$+(B1 (homogenization $B$r$9$k$+(B). [$B%F%9%H$^$@(B]
702: @item m
703: $B=g=x$r(B matrix $B$GI=8=$9$k>l9g(B (cf. dp_ord). [$B%F%9%H$^$@(B]
704: @item b
705: ???
706: @item sw
707: Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. $BA4$F$NMWAG$OHsIi(B. [$B%F%9%H$^$@(B]
708: @end table
709:
710: @itemize @bullet
711: @item
712: @code{dp_weyl_gr_main(@var{f})} $B$O(B, @var{f} $B$N%0%l%V%J4pDl$r7W;;$9$k(B.
713: $B%0%l%V%J4pDl$O=g=x$rJQ$($k$H$=$N7A$,JQ$o$k(B. asir $B$G$O$$$^$^$G=g=x$N;XDjJ}K!$,(B
714: $B7OE}$@$C$F$$$J$+$C$?(B.
715: dp_weyl_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B.
716: $B;XDjJ}K!$K$D$$$F$O(B dp_gr_main $B$N%^%K%e%"%k$r;2>H(B.
717: @item
718: $BJ,;6I=8=B?9`<0$N3F%b%N%_%"%k$ND9$5$,6v?t$N$H$-$O%o%$%kBe?t(B
719: K[x_1, ..., x_n, d_1, ..., d_n]
720: $B$G7W;;$,$*$3$J$o$l$k(B. $B%o%$%kBe?t$G$O(B x_i $B$H(B d_i $B$OHs2D49$J3]$1;;5,B'(B
721: d_i x_i = x_i d_i +1 $B$r$_$?$7(B, x_i $B$H(B x_j $B$d(B d_i $B$H(B d_j $B$O2D49$G$"$k(B.
722: $B$^$?(B i $B$H(B j $B$,0[$J$k>l9g$O(B x_i $B$H(B d_j $B$b2D49$G$"$k(B.
723: @item
724: $BJ,;6I=8=B?9`<0$N3F%b%N%_%"%k$ND9$5$,4q?t$N$H$-$OF1<!2=%o%$%kBe?t(B
725: K[x_1, ..., x_n, d_1, ..., d_n, h]
726: $B$G7W;;$,$*$3$J$o$l$k(B. $BF1<!2=%o%$%kBe?t$G$O(B x_i $B$H(B d_i $B$OHs2D49$J3]$1;;5,B'(B
727: d_i x_i = x_i d_i + h^2
728: $B$r$_$?$7(B, h $B$OG$0U$N85$H2D49(B, $B$=$NB>$NJQ?t$b%o%$%kBe?t$HF1MM$J2D49@-$N5,B'$r$_$?$9(B.
729: $B>\$7$/$O(B dp_gr_main $B$G;2>H$7$?(B Saito, Sturmfels, Takayama $B$N652J=q$r$_$h(B.
730: @end itemize
731:
732: @example
733: [1220] F=sm1.gkz([ [[1,1,1,1],[0,1,3,4]], [0,0]]); /* Command in asir-contrib*/
734: [[x4*dx4+x3*dx3+x2*dx2+x1*dx1,4*x4*dx4+3*x3*dx3+x2*dx2,-dx1*dx4+dx2*dx3,-dx2^2*dx4+dx1*dx3^2,dx1^2*dx3-dx2^3,-dx2*dx4^2+dx3^3],[x1,x2,x3,x4]]
735: [1221] V=[x1,x2,x3,x4,dx1,dx2,dx3,dx4]$
1.7 takayama 736: [1222] dp_weyl_gr_main(F[0] | v=V, order=[[dx1,1,dx2,1,dx3,1,dx4,1]]);
737: ...
1.6 takayama 738: [1238] FF=map(dp_ptod,F[0],V);
739: [(1)*<<1,0,0,0,1,0,0,0>>+(1)*<<0,1,0,0,0,1,0,0>>+(1)*<<0,0,1,0,0,0,1,0>>+(1)*<<0,0,0,1,0,0,0,1>>,(1)*<<0,1,0,0,0,1,0,0>>+(3)*<<0,0,1,0,0,0,1,0>>+(4)*<<0,0,0,1,0,0,0,1>>,0,0,0,0]
740:
741: [1244] FF=map(dp_ptod,F[0],V);
742: [(1)*<<1,0,0,0,1,0,0,0>>+(1)*<<0,1,0,0,0,1,0,0>>+(1)*<<0,0,1,0,0,0,1,0>>+(1)*<<0,0,0,1,0,0,0,1>>,(1)*<<0,1,0,0,0,1,0,0>>+(3)*<<0,0,1,0,0,0,1,0>>+(4)*<<0,0,0,1,0,0,0,1>>,(1)*<<0,0,0,0,0,1,1,0>>+(-1)*<<0,0,0,0,1,0,0,1>>,(1)*<<0,0,0,0,1,0,2,0>>+(-1)*<<0,0,0,0,0,2,0,1>>,(-1)*<<0,0,0,0,0,3,0,0>>+(1)*<<0,0,0,0,2,0,1,0>>,(1)*<<0,0,0,0,0,0,3,0>>+(-1)*<<0,0,0,0,0,1,0,2>>]
743:
744: dp_weyl_gr_main(FF | v=V, order=[[0,0,0,0,1,1,1,1]]);
745:
1.7 takayama 746: [1246] dp_weyl_gr_main(FF | v=V, order=[[dx1,1,dx2,1,dx3,1,dx4,1]]);
1.6 takayama 747: [ 0 0 0 0 1 1 1 1 ]
748: [ R R R R R R R R ]
1.7 takayama 749: ...
1.6 takayama 750:
751: @end example
752:
753: @table @t
754: @item $B;2>H(B
755: @ref{dp_gr_main}
756: @end table
757:
758: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
759: @noindent
760: ChangeLog
761: @itemize @bullet
762: @item dp_gr_main $B$N%$%s%?%U%'!<%9$,(B dp_weyl_gr_main $B$X$bF3F~$5$l$?(B.
763: @item
764: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
765: builtin/dp-supp.c 1.32--1.33
766: builtin/dp.c 1.49--1.50
767: @end itemize
768:
769: @comment --- $B"~"~"~"~(B $B4X?t(B dp_initial_term $B$N@bL@(B $B"~"~"~"~(B
770: @node dp_initial_term,,, $B<B83E*;EMM$N4X?t(B
771: @subsection @code{dp_initial_term}
772: @findex dp_initial_term
773:
774: @comment --- $B4X?t$N4JC1$J@bL@(B ---
775: @table @t
776: @item dp_initial_term(@var{f} | v=@var{vv}, order=@var{oo})
777: :: dp_initial_term $B$OM?$($i$l$?(B weight $B$KBP$9$k@hF,9`$NOB$rLa$9(B.
778: @end table
779:
780: @table @var
781: @item return
782: $BJ,;6I=8=B?9`<0$^$?$OJ,;6I=8=B?9`<0$N%j%9%H(B.
783: @item f
784: $BJ,;6I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B.
785: @item vv
786: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
787: @item oo
788: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
789: @end table
790:
791: @itemize @bullet
792: @item
793: dp_initial_term $B$OM?$($i$l$?(B weight w $B$KBP$9$k@hF,9`$NOB$rLa$9(B.
794: $B$3$l$OB?$/$N652J=q$G(B @tex ${\rm in}_w(f)$ @end tex
795: $B$H=q$+$l$F$$$k(B.
796: @item
797: $B=g=x$rI=$9%j%9%H$O(B dp_gr_main $B$GDj5A$7$?J8K!$K=>$&(B.
798: $B$3$N%j%9%H$N@hF,$,(B weight vector $B$GL5$$>l9g$O%(%i!<$H$J$k(B.
799: $B$?$H$($P(B order=[[@@lex,...]] $B$O%(%i!<$H$J$k(B.
800: @item
801: $B7k2L$OM?$($i$l$?=g=x$K4X$7$F%=!<%H$5$l$F$k$o$1$G$O$J$$(B.
802: @end itemize
803:
804: @example
805: [1220] F=<<2,0,0>>+<<1,1,0>>+<<0,0,1>>;
806: (1)*<<2,0,0>>+(1)*<<1,1,0>>+(1)*<<0,0,1>>
807: [1220] dp_initial_term(F | order=[[1,1,1]]);
808: [ 1 1 1 ]
809: [ R R R ]
810: (1)*<<2,0,0>>+(1)*<<1,1,0>>
811: [1221] dp_initial_term(F | v=[x,y,z], order=[[x,1]]);
812: [ 1 0 0 ]
813: [ R R R ]
814: (1)*<<2,0,0>>
815: @end example
816:
817: @table @t
818: @item $B;2>H(B
819: @ref{dp_gr_main}, @ref{dp_weyl_gr_main}, @ref{dp_order}, @ref{dp_hm}
820: @end table
821:
822: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
823: @noindent
824: ChangeLog
825: @itemize @bullet
826: @item
827: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
828: builtin/dp-supp.c 1.32
829: builtin/dp.c 1.49
830: @end itemize
831:
832: @comment --- $B"~"~"~"~(B $B4X?t(B dp_order $B$N@bL@(B $B"~"~"~"~(B
833: @node dp_order,,, $B<B83E*;EMM$N4X?t(B
834: @subsection @code{dp_order}
835: @findex dp_order
836:
837: @comment --- $B4X?t$N4JC1$J@bL@(B ---
838: @table @t
839: @item dp_order(@var{f} | v=@var{vv}, order=@var{oo})
840: :: dp_order $B$OM?$($i$l$?(B weight $B$KBP$9$k<!?t$N:GBgCM$rLa$9(B.
841: @end table
842:
843: @table @var
844: @item return
845: $B?t$+?t$N%j%9%H(B
846: @item f
847: $BJ,;6I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B.
848: @item vv
849: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
850: @item oo
851: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
852: @end table
853:
854: @itemize @bullet
855: @item
856: $B=g=x$rI=$9%j%9%H$O(B dp_gr_main $B$GDj5A$7$?J8K!$K=>$&(B.
857: $B$3$N%j%9%H$N@hF,$,(B weight vector $B$GL5$$>l9g$O%(%i!<$H$J$k(B.
858: $B$?$H$($P(B order=[[@@lex,...]] $B$O%(%i!<$H$J$k(B.
859: @item
860: dp_order $B$OM?$($i$l$?(B weight w $B$KBP$9$k<!?t$N:GBgCM$rLa$9(B.
861: $B$3$l$r(B @tex ${\rm ord}_w(f)$ @end tex
862: $B$H=q$/O@J8$d652J=q$b$"$k(B.
863: @item
864: $B0z?t$,%j%9%H$N>l9g3FMWAG$N<!?t$,7W;;$5$l$k(B.
865: @end itemize
866:
867: @example
868: [1220] F=<<2,0,0>>+<<1,1,0>>+<<0,0,1>>;
869: (1)*<<2,0,0>>+(1)*<<1,1,0>>+(1)*<<0,0,1>>
870: [1222] dp_order(F | order=[[1,1,1]]);
871: [ 1 1 1 ]
872: [ R R R ]
873: 2
874: [1223] dp_order(F | v=[x,y,z], order=[[x,1]]);
875: [ 1 0 0 ]
876: [ R R R ]
877: @end example
878:
879: @table @t
880: @item $B;2>H(B
881: @ref{dp_gr_main}, @ref{dp_weyl_gr_main}, @ref{dp_initial_term}, @ref{dp_hm}
882: @end table
883:
884: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
885: @noindent
886: ChangeLog
887: @itemize @bullet
888: @item
889: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
890: builtin/dp-supp.c 1.32
891: builtin/dp.c 1.49
892: @end itemize
893:
1.8 takayama 894:
895: @comment mapat
896: @node mapat,,, $B<B83E*;EMM$N4X?t(B
897: @subsection @code{mapat}
898: @findex mapat
899:
900: @table @t
901: @item mapat(@var{fname},@var{pos}[,@var{arg0}, @var{arg1}, ...])
902: :: @var{pos} $B$KBP$9$k(B map $B4X?t(B
903: @end table
904:
905: @table @var
906: @item return
907: $B%*%V%8%'%/%H(B
908: @item pos
909: $B@0?t(B
910: @item arg0, arg1, arg2, ...
911: $B%*%V%8%'%/%H(B
912: @end table
913:
914: @itemize @bullet
915: @item
916: @code{map} $B4X?t$O(B 0 $BHVL\$N0z?t$KBP$7$F$7$+F0:n$7$J$$$,(B, @code{mapat}
917: $B4X?t$O;XDj$7$?HV9f$N0z?t$KBP$7$F(B @code{map} $B4X?t$r<B9T$9$k(B.
918: @item
919: @code{mapat(fname,0,A0,A1,...)} $B$O(B
920: @code{map(fname,A0,A1,...)} $B$KEy2A$G$"$k(B.
921: @item
922: $B<!$NI{:nMQ$,$"$k(B. $B$^$@=q$$$F$J$$(B.
923: @end itemize
924:
925: @example
926: [219] mapat(deg,1,x^2+y^3+x+y,[x,y]);
927: [2,3]
1.10 ohara 928: [220] mapat(subst,1,x+y+z,[x,y,z],2);
929: [y+z+2,x+z+2,x+y+2]
1.8 takayama 930: @end example
931:
932: @table @t
933: @item $B;2>H(B
934: @ref{map}
935: @end table
936:
937: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
938: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
939: @noindent
940: ChangeLog
941: @itemize @bullet
942: @item $B$3$N4X?t$O(B 2004-6-22 $B$K%3%_%C%H$5$l$?(B.
943: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/pf.c, subst.c $B$G$"$k(B.
944: @end itemize
945:
946: @comment list
947: @node list,,, $B<B83E*;EMM$N4X?t(B
948: @subsection @code{list}
949: @findex list
950:
951: @table @t
952: @item list([@var{arg0}, @var{arg1}, ...])
953: :: list $B$r@8@.$9$k(B.
954: @end table
955:
956: @table @var
957: @item return
958: $B%j%9%H(B
959: @item arg0, arg1, arg2, ...
960: $B%*%V%8%'%/%H(B
961: @end table
962:
963: @itemize @bullet
964: @item
965: @var{arg0}, @var{arg1}, ... $B$rMWAG$H$9$k%j%9%H$r@8@.$9$k(B.
966: @end itemize
967:
968: @example
969: [219] list(1,2,3);
970: [1,2,3]
971: [220] list(1,2,[3,4]);
972: [1,2,[3,4]]
973: @end example
974:
975: @table @t
976: @item $B;2>H(B
977: @ref{cons}
978: @end table
979:
980: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
981: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
982: @noindent
983: ChangeLog
984: @itemize @bullet
985: @item $B$3$N4X?t$O(B 2004-6-22 $B$K%3%_%C%H$5$l$?(B.
986: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/list.c $B$G$"$k(B.
987: @end itemize
988:
1.9 takayama 989:
990: @node set_print_function,,, $B<B83E*;EMM$N4X?t(B
991: @subsection @code{set_print_function}
992: @findex set_print_function
993:
994: @comment --- $B4X?t$N4JC1$J@bL@(B ---
995: @table @t
996: @item set_print_function([@var{fname}])
997: :: $B2hLLI=<(MQ$N4X?t$rEPO?(B
998: @end table
999:
1000: @table @var
1001: @item return
1002: $B@0?t(B
1003: @item fname
1004: $BJ8;zNs(B
1005: @end table
1006:
1007: @itemize @bullet
1008: @item
1009: @code{set_print_function} $B$O(B @code{fname(F)} $B$rDL>o$N2hLLI=<(4X?t$NBe$o$j$K$h$V(B.
1010: @code $B0z?t$,$J$$>l9g$O2hLLI=<(4X?t$r%G%U%)!<%k%H$XLa$9(B.
1011: @code Asir-contrib $B$O$3$N4X?t$rMQ$$$F=PNO4X?t$r(B Asir-contrib $BMQ$KJQ99$7$F$$$k(B.
1012: @end itemize
1013:
1014: @example
1015: [219] def my_output(F) {
1016: print("Out: ",0); print(rtostr(F));
1017: }
1018: [220] set_print_function("my_output");
1019: Out: 0
1020: [221] 1+2;
1021: Out: 3
1022: @end example
1023:
1024: @table @t
1025: @item $B;2>H(B
1026: @ref{rtostr}
1027: @end table
1028:
1029: @noindent
1030: ChangeLog
1031: @itemize @bullet
1032: @item $B$3$N4X?t$O(B 2001-9-4 $B$K(B asir-contrib $B$N$?$a$KF3F~$5$l$?(B.
1033: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/print.c 1.11 $B$G$"$k(B.
1034: @end itemize
1.8 takayama 1035:
1036:
1.12 takayama 1037: @node small_jacobi,,, $B<B83E*;EMM$N4X?t(B
1038: @subsection @code{small_jacobi}
1039: @findex small_jacobi
1040:
1041: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1042: @table @t
1043: @item small_jacobi(@var{a},@var{m})
1044: :: Jacobi $B5-9f$N7W;;(B
1045: @end table
1046:
1047: @table @var
1048: @item return
1049: $B@0?t(B
1050: @item arg1, arg2
1051: $B@0?t(B
1052: @end table
1053:
1054: @itemize @bullet
1055: @item
1056: @var{m} $B$,AG?t$N$H$-$O(B Legendre $B5-9f$H$h$P$l(B,
1057: x^2 = @var{a} mod @var{m} $B$K2r$,$"$k$H$-(B 1, $B2r$,$J$$$H$-(B -1 $B$r$b$I$9(B.
1058: @item
1059: Jacobi $B5-9f$O(B Legendre $B5-9f$N@Q$GDj5A$5$l$k(B ($B=iEy@0?tO@$NK\;2>H(B).
1060: @item
1061: $B$3$N4X?t$O(B machine int $B$NHO0O$G(B jacobi $B5-9f$r7W;;$9$k(B.
1062: @end itemize
1063:
1064: @example
1065: [1286] small_jacobi(2,3);
1066: -1
1067: [1287] small_jacobi(2,7);
1068: 1
1069: @end example
1070:
1071: @table @t
1072: @item $B;2>H(B
1073: http://members.jcom.home.ne.jp/yokolabo/asirlib/
1074: $B$b8+$F$M(B.
1075: @end table
1076:
1077: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
1078: @noindent
1079: ChangeLog
1080: @itemize @bullet
1.13 takayama 1081: @item $B$3$N4X?t$NM3Mh$OITL@(B.
1082: @end itemize
1083:
1084:
1.20 ! takayama 1085: @node flatten_quote,,, $B<B83E*;EMM$N4X?t(B
! 1086: @subsection @code{flatten_quote}
! 1087: @findex flatten_quote
1.13 takayama 1088:
1089: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1090: @table @t
1.20 ! takayama 1091: @item flatten_quote(@var{q},@var{op})
1.13 takayama 1092: :: quote $B$N3g8L$r$H$j$5$k(B.
1093: @end table
1094:
1095: @table @var
1096: @item return
1097: Quote
1098: @item q
1099: Quote
1100: @item op
1101: $B1i;;;R$rI=$9J8;zNs(B.
1102: @end table
1103:
1104: @itemize @bullet
1105: @item
1106: Quote $B7?$N%G!<%?$OLZ9=B$$r$7$F$$$k(B
1107: ( quotetolist $B;2>H(B ).
1108: @code{quote_flatten()} $B$O(B, @var{q} $B$NCf$K$"$i$l$k1i;;;R(B @var{op}
1109: $B$N;R6!%N!<%I$rJ?Ey$K$9$k(B.
1110: $B$D$^$j1i;;;R(B @var{op} $B$K4X$9$k3g8L$E$1$,$"$C$?>l9g$=$l$r$9$Y$F$H$j$5$k(B.
1111: $B$?$H$($P(B (1+2)+(3+4) $B$H$$$&I=8=$r(B 1+2+3+4 $B$KJQ49$9$k(B.
1112: @item
1113: $B8=:_$N<BAu$G$O(B n-ary $B$N1i;;;R$ODj5A$5$l$F$$$J$$$N$G(B,
1.20 ! takayama 1114: 1+2+3 $B$O<B$O(B 1+(2+3) $B$HI=8=$5$l$F$$$k(B.
! 1115: $B$D$^$j(B + $B1i;;;R$O1&7k9gE*$G$"$k(B.
! 1116: @item R=0; for (I=0; I<N; I++) R = R+ P[I]; $B$J$kB-$7;;$r7+$jJV$9$H(B,
! 1117: + $B$O:87k9gE*$K$J$k(B. $B1&7k9gE*$KJQ49$9$k$K$O(B flatten_quote $B$r8F$V(B.
! 1118: @item $BL>A0$O(B quote_flatten $B$G$J$/(B flatten_quote $B$G$"$k(B.
1.13 takayama 1119: @end itemize
1120:
1121: @example
1122: [1288] flatten_quote(quote((1+2)+(3+4*(x+3))),"+");
1123: quote(1+2+3+4*(x+3))
1124: [1289] flatten_quote(quote( (x*y)*(p*3)-(x*y)*z),"*");
1125: quote(x*y*p*3-x*y*z)
1126: [1290] quotetolist(quote(1+2+3));
1127: [b_op,+,[b_op,+,[internal,1],[internal,2]],[internal,3]]
1128: @end example
1129:
1130: @table @t
1131: @item $B;2>H(B
1132: @ref{quotetolist}, @ref{print_tex_form}(contrib)
1133: @end table
1134:
1135: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
1136: @noindent
1137: ChangeLog
1138: @itemize @bullet
1139: @item
1140: $B$3$N4X?t$O(B 2004-7-7 $B$+$i(B 2004-7-8 $B$K$+$1$F(B
1141: quote $B$K4X$9$kA`:n$r8&5f$9$k$?$a$K<B83E*$K=q$+$l$?(B.
1142: OpenXM/fb $B$GC_@Q$5$l$?8x<0$NITMW$J3g8L$r$H$j$O$:$7(B, tex $B7A<0$KJQ49$9$k$N$K(B
1143: $B1~MQ(B.
1144: @item
1145: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B
1146: builtin/strobj.c 1.47,
1.14 takayama 1147: parse/eval.c 1.35,
1148: parse/parse.h 1.31,
1149: parse/quote.c 1.14--1.16.
1150: @end itemize
1151:
1152: @node assoc,,, $B<B83E*;EMM$N4X?t(B
1153: @subsection @code{assoc}
1154: @findex assoc
1155:
1156: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1157: @table @t
1158: @item assoc(@var{a},@var{b})
1159: :: $BO"A[%j%9%H$r$D$/$k(B
1160: @end table
1161:
1162: @table @var
1163: @item return
1164: List
1165: @item a
1166: List
1167: @item b
1168: List
1169: @end table
1170:
1171: @itemize @bullet
1172: @item $B%j%9%H(B @var{a}, @var{b} $B$h$j(B
1173: [[@var{a}[0],@var{b}[0]], [@var{a}[1],@var{b}[1]], ...]
1174: $B$J$k?7$7$$%j%9%H$r@8@.$9$k(B.
1175: @end itemize
1176:
1177: $B2<$NNc$G$O(B @code{A} $B$KF0J*$NL>A0$,(B,
1178: @code{B} $B$KB-$NK\?t$,F~$C$F$$$k(B.
1179: @code{assoc(A,B)} $B$GF0J*$HB-$NK\?t$r%Z%"$K$7$?%j%9%H$r@8@.$9$k(B.
1180:
1181: @example
1182: [1192] A=["dog","cat","snake"];
1183: [dog,cat,snake]
1184: [1193] B=[4,4,0];
1185: [4,4,0]
1186: [1194] assoc(A,B);
1187: [[dog,4],[cat,4],[snake,0]]
1188: @end example
1189:
1190: @table @t
1191: @item $B;2>H(B
1192: @ref{cons}, @ref{append}
1193: @end table
1194:
1195: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
1196: @noindent
1197: ChangeLog
1198: @itemize @bullet
1199: @item
1200: $B$3$N4X?t$O(B 2004-6-28 $B$K=q$+$l$?(B.
1201: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B
1202: builtin/list.c 1.9
1.13 takayama 1203: parse/eval.c 1.35,
1204: parse/parse.h 1.31,
1205: parse/quote.c 1.14--1.16.
1.12 takayama 1206: @end itemize
1.13 takayama 1207:
1.15 takayama 1208:
1209: @node sprintf,,, $B<B83E*;EMM$N4X?t(B
1210: @subsection @code{sprintf}
1211: @findex sprintf
1212:
1213: @table @t
1214: @item sprintf(@var{format}[,@var{args}])
1215: :: C $B$K;w$?%W%j%s%H4X?t(B
1216: @end table
1217:
1218: @table @var
1219: @item return
1220: $BJ8;zNs(B
1221: @item format
1222: $BJ8;zNs(B
1223: @item args
1224: $B%*%V%8%'%/%H(B
1225: @end table
1226:
1227: @itemize @bullet
1228: @item
1229: $B%U%)!<%^%C%HJ8;zNs(B @var{format } $B$K$7$?$,$$(B @var{args} $B$rJ8;zNs$KJQ49$9$k(B.
1230: @item
1231: $B%U%)!<%^%C%HJ8;zNs$NCf$K(B @code{%a} (any) $B$,MxMQ2DG=(B.
1232: @var{args} $B$N8D?t$O%U%)!<%^%C%HJ8;zNs$NCf$N(B @code{%a} $B$N8D?t$KEy$7$/$9$k$3$H(B.
1233: @end itemize
1234:
1235: @example
1236: [0] sprintf("%a: rat = %a",10,x^2-1);
1237: 10: rat = x^2-1
1238: @end example
1239:
1240: @table @t
1241: @item $B;2>H(B
1242: @ref{rtostr}
1243: @end table
1244:
1245: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
1246: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1247: @noindent
1248: ChangeLog
1249: @itemize @bullet
1250: @item
1251: $B$3$N4X?t$O(B 2004-7-13 $B$K%3%_%C%H$5$l$?(B.
1252: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/strobj (1.50) $B$G$"$k(B.
1253: @item
1254: @code{%a} $B$O(B Maple $B$N(B sprintf $B$N??;w$+(B.
1255: @end itemize
1256:
1257:
1258: @node quote_to_funargs,,, $B<B83E*;EMM$N4X?t(B
1259: @subsection @code{quote_to_funargs}, @code{funargs_to_quote}, @code{remove_paren}
1260: @findex quote_to_funargs
1261: @findex funargs_to_quote
1262: @findex remove_paren
1263:
1264: @table @t
1265: @item quote_to_funargs(@var{q})
1266: :: quote $B$r(B funarg $B7A<0(B($B%j%9%H(B) $B$X(B.
1267: @item funargs_to_quote(@var{f})
1268: :: funarg $B7A<0$r(B quote $B$X(B.
1.19 takayama 1269: @item get_function_name(@var{f})
1270: :: funarg $B7A<0$N(B op $B$rJ8;zNs$X(B.
1.15 takayama 1271: @item remove_paren(@var{q})
1272: :: $B>e$N4X?t$rMQ$$$F=q$+$l$?M>J,$J3g8L$r<h$j5n$k(B simplifier (asir-contrib $B%^%K%e%"%k$X(B: todo)
1273: @end table
1274:
1275: @table @var
1276: @item return
1277: quote(funargs_to_quote, remove_paren) $B$+(B $B%j%9%H(B(quote_to_funargs)
1278: @item q
1279: quote
1280: @item f
1281: $B%j%9%H(B
1282: @end table
1283:
1284: @itemize @bullet
1285: @item
1286: @code{quote_to_funargs} $B$O(B quote $B7?$N%G!<%?(B ($BFbItE*$K$O(B FNODE) $B$r(B
1287: quote $B$X$NI|852DG=$J7A$G%j%9%H$XJQ49$9$k(B.
1288: @code{quotetolist} $B$O(B quote $B$r%j%9%H$XJQ49$9$k$,(B, $B0lIt$N>pJs$r<N$F$k$?$a(B
1289: $B$b$H$N(B quote $B$NI|85$O$G$-$J$$(B.
1290: @item
1.19 takayama 1291: @code{quote_to_funargs} $B$NLa$jCM$O(B [fid, op, arg1, arg2, ...]
1292: $B$J$k7A<0$r$7$F$$$k(B.
1293: $B$3$3$G(B op $B$O(B node $B$NL>A0$G$"$j(B,
1294: $B4X?t(B @code{get_function_name} $B$rMQ$$$F?M4V$,FI$a$k7A<0(B
1295: $B$G<h$j$@$;$k(B.
1296: $B$?$H$($P(B @code{get_function_name(quote_to_funargs(quote(1+2))[1])}
1297: $B$O(B "+" $B$rLa$9(B.
1298: @item
1299: $BL>A0(B@code{get_function_name} $B$O$=$N$&$AJQ99$5$l$k$@$m$&(B.
1.15 takayama 1300: @item
1301: $B2<$NNc$G(B
1302: quote_to_funargs(FA[2]);
1303: [34,[b_op,+,[internal,x],[internal,1]]]
1.19 takayama 1304: $B$H$J$k(B.
1305: 34 $B$O(B @code{I_PAREN} $B$r0UL#$9$k(B.
1306: $B?t$H0UL#$NBP1~I=$O(B @code{OpenXM/src/asir-contrib/packages/src/noro_simplify.rr}
1307: $B$^$?$O(B @code{OpenXM_contrib2/asir2000/parse/parse.h} $B$r8+$h(B.
1308: $B0J2<$N(B fid $B$,(B 0, 1, 2, ... $B$KBP1~$E$1$i$l$F$$$k(B.
1309: I_BOP, I_COP, I_AND, I_OR, I_NOT, I_CE,
1310: I_PRESELF, I_POSTSELF,
1311: I_FUNC, I_FUNC_OPT, I_IFUNC, I_MAP, I_RECMAP, I_PFDERIV,
1312: I_ANS, I_PVAR, I_ASSPVAR,
1313: I_FORMULA, I_LIST, I_STR, I_NEWCOMP, I_CAR, I_CDR, I_CAST,
1314: I_INDEX, I_EV, I_TIMER, I_GF2NGEN, I_GFPNGEN, I_GFSNGEN,
1315: I_LOP, I_OPT, I_GETOPT, I_POINT, I_PAREN, I_MINUS,
1316: I_NARYOP
1.15 takayama 1317: @end itemize
1318:
1319: $B<!$NNc$G$O(B (x+1)+(x+2) $B$N3g8L$r$O$:$7$F(B x+1+x+2 $B$KJQ49$7$F$$$k(B.
1320: @example
1321: [0] ctrl("print_quote",1) $
1322:
1323: [1] Q=quote((x+1)+(x+2));
1324: [b_op,+,[u_op,(),[b_op,+,[internal,x],[internal,1]]],
1325: [u_op,(),[b_op,+,[internal,x],[internal,2]]]]
1326:
1327: [2] FA=quote_to_funargs(Q);
1328: [0,<...quoted...>,
1329: [u_op,(),[b_op,+,[internal,x],[internal,1]]],
1330: [u_op,(),[b_op,+,[internal,x],[internal,2]]]]
1331:
1332: [3] FA2=quote_to_funargs(FA[2])[1];
1333: [b_op,+,[internal,x],[internal,1]]
1334:
1335: [4] FA3=quote_to_funargs(FA[3])[1];
1336: [b_op,+,[internal,x],[internal,2]]
1337:
1338: [5] funargs_to_quote([FA[0],FA[1],FA2,FA3]);
1339: [b_op,+,[b_op,+,[internal,x],[internal,1]],
1340: [b_op,+,[internal,x],[internal,2]]]
1341: @end example
1342:
1343: $B<!$NNc$O(B OpenXM/asir-contrib $BHG$N(B asir $B$G<B9T(B.
1344: @example
1345: [1287] load("noro_simplify.rr");
1346: 1
1347: [1293] noro_simplify.remove_paren(quote( f(1-(x))));
1348: quote(f(1-x))
1349: @end example
1350:
1.19 takayama 1351: funargs_to_quote $B$rMQ$$$F4{B8$N(B quote $B$N;R6!$rCV$-49$($F(B
1352: $B?7$7$$(B quote $B$r$D$/$j=P$;$k(B.
1353: @example
1354: [1184] R=quote_to_funargs(quote(a+(b+c)));
1355: [0,<...quoted...>,<...quoted...>,<...quoted...>]
1356: [1185] T=quote_to_funargs(quote(1+2));
1357: [0,<...quoted...>,<...quoted...>,<...quoted...>]
1358: [1186] funargs_to_quote([0,R[1],R[2],T[2]]);
1359: quote(a+1)
1360: @end example
1361:
1.15 takayama 1362: @table @t
1363: @item $B;2>H(B
1364: @ref{quotetolist}
1365: @end table
1366:
1.17 takayama 1367:
1.15 takayama 1368: @noindent
1369: ChangeLog
1370: @itemize @bullet
1371: @item
1372: $B$3$l$i$N4X?t$O(B 2004-7-8 $B$+$i3+H/$N$O$8$^$C$F$$$k(B quote $B$N(B simplification $B4XO"(B
1373: $B$N<B83E*4X?t$G$"$k(B.
1374: $BJQ99$r$&$1$?%=!<%9%3!<%I$OB?4t$K$o$?$k$N$G$^$@=q$+$J$$(B.
1375: @item
1376: $B3g8L$r<h$j5n$kLdBj$O(B OpenXM/fb $B$,C_$($F$$$k8x<0$r(B tex $B$Ge:No$KI=<($9$k$N$,F05!$N0l$D(B.
1377: @item
1378: 2004-6-26 $B$N7W;;Be?t%;%_%J!<$K$*$$$F(B, $BCf@n$5$s$,(B simplifier $B$K$D$$$F$$$m$$$mLdBjDs5/(B
1379: $B$r$7$?(B ($B7W;;Be?t%;%_%J!<%S%G%*;2>H(B).
1.19 takayama 1380: @item parse/quote.c $B$N(B {\tt strcut fid_spec fid_spec_tab[] }
1381: $B$NItJ,$K=q$$$F$"$k7A<0$K(B @code{funargs_to_quote} $B$OJQ49$9$k(B.
1.17 takayama 1382: @end itemize
1383:
1384: @node set_secure_flag,,, $B<B83E*;EMM$N4X?t(B
1385: @subsection @code{set_secure_flag}, @code{set_secure_mode}
1386: @findex set_secure_flag
1387: @findex set_secure_mode
1388:
1389: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1390: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1391: @table @t
1392: @item set_secure_flag(@var{fname},@var{m})
1393: @itemx set_secure_mode(@var{m})
1394: :: $B4X?t$N<B9T8"8B$r@_Dj$9$k(B. (web $B%5!<%S%9MQ(B)
1395: @end table
1396:
1397: @table @var
1398: @item return
1399: $B@0?t(B
1400: @item fname
1401: $BJ8;zNs(B
1402: @item m
1403: $B@0?t(B
1404: @end table
1405:
1406: @itemize @bullet
1.18 takayama 1407: @item @code{set_secure_flag}, @code{set_secure_mode} $B$O(B
1408: asir $B$r(B web $B%5!<%PEy$G8x3+$9$k$?$a$K2C$($i$l$?4X?t(B.
1409: @code{set_secure_flag} $B$G8x3+$9$k4X?t$r;XDj$9$k(B.
1.17 takayama 1410: @code{secure_mode} $B$,(B 1 $B$N>l9g$O(B @code{set_secure_flag} $B$G;XDj$5$l$?(B
1411: $B4X?t$7$+<B9T$G$-$J$$(B.
1.18 takayama 1412: $B4X?t$N<B9TESCf$G$O(B @code{secure_mode} $B$,(B 0 $B$H$J$C$F$$$k$N$G(B,
1.17 takayama 1413: $BG$0U$N4X?t$r<B9T$G$-$k(B.
1414: $B$^$?%(%i!<$N;~Ey$O(B, @code{secure_mode} $B$O(B 1 $B$K<+F0E*$KI|5"$9$k(B.
1415: $B$?$@$7(B @code{def} $B$O<B9T$G$-$J$$(B.
1416: $B8x3+$9$k4X?t$G$O(B, $B$=$N=hM}Cf$OG$0U$N4X?t$,<B9T$G$-$k$N$G(B,
1417: security $B$K==J,Cm0U$7$?<BAu$r$9$kI,MW$,$"$k(B.
1418: @item
1419: @code{set_secure_flag} $B$O(B, @var{fname} $B$N(B secure flag $B$r(B @var{m}
1420: $B$K$9$k(B.
1.18 takayama 1421: $B8x3+$9$kL?Na$O(B 1 $B$K@_Dj$9$k(B.
1.17 takayama 1422: @item
1423: @var{set_secure_mode(1)} $B$G(B @code{secure_mode} $B$,(B 1 $B$H$J$j(B,
1424: $B8x3+$5$l$?4X?t$7$+<B9T$G$-$J$/$J$k(B.
1425: quit $BEy$b<B9T$G$-$J$$$N$GCm0U(B.
1.18 takayama 1426: @item @code{ timer } $B$N0z?t$H$7$F(B secure_flag $B$r@_Dj$7$F$$$J$$4X?t$r(B
1427: $B;XDj$7$F<B9T$7$F$b%(%i!<$,I=<($5$l$J$$(B.
1428: $B$3$N$H$-$O(B, @code{ ctrl("error_in_timer",1) } $B$r<B9T$7$F$*$/(B.
1.17 takayama 1429: @end itemize
1430:
1431: @example
1432: [1194] set_secure_flag("print_input_form_",1);
1433: 1
1434: [1195] set_secure_flag("fctr",1);
1435: 1
1436: [220] set_secure_mode(1);
1437: 1
1438: [1197] fctr((x-1)^3);
1439: [[1,1],[x-1,3]]
1440: [1198] fctr(shell("ls"));
1441: evalf : shell not permitted
1442: return to toplevel
1443: @end example
1444:
1445: @table @t
1446: @item $B;2>H(B
1447: @ref{timer}
1448: @end table
1449:
1450: @noindent
1451: ChangeLog
1452: @itemize @bullet
1.18 takayama 1453: @item @code{set_secure_flag}, @code{set_secure_mode} $B$O(B asir $B$r(B
1454: web $B%5!<%PEy$G8x3+$9$k$?$a$K2C$($i$l$?4X?t(B.
1455: sm1 $B$NF1MM$J4X?t(B RestrictedMode $B$G:NMQ$5$l$?J}K!$rMQ$$$F$$$k(B.
1456: $B$D$^$j(B, @code{set_secure_flag} $B$G8x3+$9$k4X?t$r;XDj$9$k(B.
1457: @code{secure_mode} $B$,(B 1 $B$N>l9g$O(B @code{set_secure_flag} $B$G;XDj$5$l$?(B
1458: $B4X?t$7$+<B9T$G$-$J$$(B.
1459: v$B4X?t$N<B9TESCf$G$O(B @code{secure_mode} $B$,(B 0 $B$H$J$C$F$$$k$N$G(B,
1460: $BG$0U$N4X?t$r<B9T$G$-$k(B.
1.17 takayama 1461: @item $B$3$N4X?t$O(B 2004-10-27 $B$+$i(B 2004-11-22 $B$K$+$1$F3+H/$5$l$?(B.
1462: @item cgiasir.sm1, cgi-asir.sh $B$HAH$_9g$o$;$F(B cgi $B%5!<%S%9$rDs6!$9$k$?$a$K(B
1463: $BMxMQ$9$k(B.
1464: cgi-asir.sh $B$G$O(B
1465: @code{CGI_ASIR_ALLOW} $B4D6-JQ?t$G8x3+$9$k%3%^%s%I$r;XDj$9$k(B.
1466: @item
1467: 1.24--1.25 OpenXM_contrib2/asir2000/builtin/miscf.c
1468: @item
1469: 1.36--1.38 OpenXM_contrib2/asir2000/parse/eval.c
1470: @item
1471: 1.6--1.7 OpenXM_contrib2/asir2000/parse/function.c
1472: @item
1473: 1.33 OpenXM_contrib2/asir2000/parse/parse.h
1.15 takayama 1474: @end itemize
1.13 takayama 1475:
1.19 takayama 1476: @comment ****************************************************************
1.8 takayama 1477: @comment --- $B"~"~"~"~(B $B0J2<B>$N4X?t$K$D$$$F??;w$7$F5-=R$9$k(B. $B"~"~"~"~(B
1.3 takayama 1478: @comment $B?7$7$$4X?t$N@bL@$r=q$/$?$a$N%F%s%W%l!<%H$G$"$k(B. $B>C$9$J(B.
1.4 takayama 1479: @comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B
1480: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
1481: @node xyz_pqr,,, $B<B83E*;EMM$N4X?t(B
1482: @subsection @code{xyz_pqr}, @code{syz_stu}
1483: @findex xyz_pqr
1484: @findex xyz_stu
1485:
1.3 takayama 1486: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1487: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1488: @table @t
1.1 takayama 1489: @item xyz_pqr(@var{arg1},@var{arg2}[,@var{flag}])
1490: @itemx xyz_stu(@var{arg1},@var{arg2})
1491: :: xyz $B$K4X$9$kA`:n(B.
1492: @end table
1493:
1494: @table @var
1495: @item return
1496: $B@0?t(B
1497: @item arg1, arg2
1498: $B@0?t(B
1499: @item flag
1500: 0 $B$^$?$O(B 1
1501: @end table
1502:
1503: @itemize @bullet
1.3 takayama 1504: @item $B$3$N9`L\$O?7$7$$4X?t$N@bL@$r=q$/$?$a$N%F%s%W%l!<%H$G$"$k(B. $B>C$9$J(B.
1.1 takayama 1505: @item
1506: @code{xyz_pqr()} $B$O(B, @var{arg1}, @var{arg2} $B$r(B pqr $B$9$k(B.
1507: @item
1508: @var{flag} $B$,(B 0 $B$G$J$$$H$-(B, $B%b%8%e%i7W;;$r9T$&(B.
1509: @item
1510: @code{xyz_stu()} $B$O(B stu $B%"%k%4%j%:%`$rMQ$$$k(B.
1511: @end itemize
1512:
1513: @example
1514: [219] xyz_pqr(1,2);
1515: 3
1516: [220] xyz_pqr(1,2,1);
1517: 3
1518: 0
1519: [221] xyz_stu(1,2);
1520: 3
1521: @end example
1522:
1523: @table @t
1524: @item $B;2>H(B
1525: @ref{xyz_abc}
1526: @end table
1527:
1.3 takayama 1528: @comment --- ChangeLog $B$r=q$/(B. $BF05!(B. $B%=!<%9%3!<%I$N0LCV(B. $BJQ99F|;~(B $B$J$I(B CVS$B%5!<%P$r8+$k$?$a(B
1529: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.1 takayama 1530: @noindent
1531: ChangeLog
1532: @itemize @bullet
1533: @item $B$3$N4X?t$O(B 2004-3-1 $B$+$i(B 2004-3-14 $B$K$+$1$F(B $B%"%k%4%j%:%`(B xyz ($BO@J8(B
1534: http://www.afo.org/xyz.pdf ) $B$rMQ$$$F=q$-D>$5$l$?(B.
1535: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B xxxyy.rr, ppp.c $B$G$"$k(B.
1536: @item $B$3$N4X?t$O(B 2000 $B:"$K$O$8$a$F$N%P!<%8%g%s$,=q$+$l$?(B. $B%=!<%9$O(B ppp.c $B$G$"$k(B.
1537: @end itemize
1.19 takayama 1538: @comment ****************************************************************
1.1 takayama 1539:
1540: @comment --- $B$*$^$8$J$$(B ---
1541: @node Index,,, Top
1542: @unnumbered Index
1543: @printindex fn
1544: @printindex cp
1545: @iftex
1546: @vfill @eject
1547: @end iftex
1548: @summarycontents
1549: @contents
1550: @bye
1551: @comment --- $B$*$^$8$J$$=*$j(B ---
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>