Annotation of OpenXM/src/asir-doc/exp/exp-ja.texi, Revision 1.34
1.34 ! ohara 1: %% $OpenXM: OpenXM/src/asir-doc/exp/exp-ja.texi,v 1.33 2009/05/16 03:13:07 ohara 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.25 takayama 41: @subtitle 2008 $BG/(B 1 $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 ---
1.34 ! ohara 55: @comment --- @node $B$N0z?t$O(B node-name, next, previous, up ---
1.1 takayama 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
1.34 ! ohara 63: * $B<B83E*;EMM$N4X?t@bL@=q$K$D$$$F(B::
! 64: * $B<B83E*;EMM$N4X?t(B::
1.1 takayama 65: * Index::
66: @end menu
67:
68: @comment --- chapter $B$N3+;O(B ---
69: @comment --- $B?F(B chapter $BL>$r@53N$K(B. $B?F$,$J$$>l9g$O(B Top ---
1.34 ! ohara 70: @node $B<B83E*;EMM$N4X?t@bL@=q$K$D$$$F(B,,, Top
! 71: @chapter $B<B83E*;EMM$N4X?t@bL@=q$K$D$$$F(B
1.1 takayama 72:
73: $B$3$N@bL@=q$G$O(B
74: @b{Asir} $B$KF3F~$5$l$?<B83E*;EMM$N4X?t$K$D$$$F@bL@$9$k(B.
75: $B@5<0$J4X?t$H$7$FF3F~$5$l$?$b$N$N5-=R$O(B Risa/Asir $B%^%K%e%"%k(B
76: $B$K0\F0$5$l$k(B.
77: ChangeLog $B$N9`L\$O(B www.openxm.org $B$N(B cvsweb $B$G(B
78: $B%=!<%9%3!<%I$rFI$`;~$N=u$1$K$J$k>pJs$,=q$+$l$F$$$k(B.
79:
1.34 ! ohara 80: @node $B<B83E*;EMM$N4X?t(B,,, Top
! 81: @chapter $B<B83E*;EMM$N4X?t(B
1.1 takayama 82:
1.34 ! ohara 83: @comment --- section ``$B<B83E*4X?t(B'' $B$N(B subsection xyz_abc
1.1 takayama 84: @comment --- subsection xyz_pqr xyz_stu $B$,$"$k(B.
85: @menu
1.2 takayama 86: * quotetotex::
87: * quotetotex_env::
88: * objtoquote::
1.3 takayama 89: * copyright::
1.2 takayama 90: * string_to_tb::
91: * tb_to_string::
92: * write_to_tb::
1.3 takayama 93: * dp_gr_main::
1.4 takayama 94: * asir-port.sh::
95: * asir-install.sh::
96: * get_struct_name::
97: * get_element_names::
98: * get_element_at::
99: * put_element_at::
1.6 takayama 100: * dp_initial_term::
101: * dp_order::
102: * dp_weyl_gr_main::
1.8 takayama 103: * list::
104: * mapat::
1.9 takayama 105: * set_print_function::
1.12 takayama 106: * small_jacobi::
1.13 takayama 107: * flatten_quote::
1.27 ohara 108: * printf::
1.28 ohara 109: * fprintf::
1.15 takayama 110: * sprintf::
111: * quote_to_funargs::
112: * funargs_to_quote::
1.19 takayama 113: * get_function_name::
1.15 takayama 114: * remove_paren::
1.17 takayama 115: * set_secure_mode::
116: * set_secure_flag::
1.22 takayama 117: * initialize_static_variable::
1.23 takayama 118: * eval_quote::
119: * nqt_match::
120: * nqt_match_rewrite::
121: * qt_normalize::
122: * qt_set_coef::
123: * qt_set_ord::
124: * qt_set_weight::
125: * nqt_comp::
126: * qt_is_var::
127: * qt_is_ceof::
1.34 ! ohara 128: * qt_rewrite::
1.24 takayama 129: * asirgui.hnd::
1.25 takayama 130: * noro_matrix.rr:
1.26 takayama 131: * f_res::
1.27 ohara 132: * chdir::
133: * pwd::
134: * dcurrenttime::
1.34 ! ohara 135: * nd_gr nd_gr_trace nd_weyl_gr nd_weyl_gr_trace (module)::
! 136: * nd_gr nd_gr_trace nd_weyl_gr nd_weyl_gr_trace (option)::
! 137: @end menu
1.23 takayama 138:
1.34 ! ohara 139: @node $B%/%*!<%H(B,,, $B<B83E*;EMM$N4X?t(B
! 140: @section $B%/%*!<%H(B
1.1 takayama 141:
1.34 ! ohara 142: @comment --- $B"~"~"~"~(B $B4X?t(B quotetotex, quotetotex_env $B$N@bL@(B $B"~"~"~"~(B
1.1 takayama 143: @comment --- $B8D!9$N4X?t$N@bL@$N3+;O(B ---
144: @comment --- section $BL>$r@53N$K(B ---
1.34 ! ohara 145: @node quotetotex quotetotex_env,,, $B%/%*!<%H(B
1.2 takayama 146: @subsection @code{quotetotex}, @code{quotetotex_env}
1.1 takayama 147: @comment --- $B:w0zMQ%-!<%o!<%I(B
1.2 takayama 148: @findex quotetotex
149: @findex quotetotex_env
1.1 takayama 150:
151: @comment --- $B4X?t$N4JC1$J@bL@(B ---
152: @table @t
1.34 ! ohara 153: @item quotetotex(@var{q})
1.2 takayama 154: :: @var{q} $B$r(B latex $B7A<0$GI=8=$7$?J8;zNs$KJQ49$9$k(B.
155: @item quotetotex_env(@var{key},@var{value})
156: :: quotetotex $B$NF0:n$r@)8f$9$k%Q%i%a!<%?$rJQ99$9$k(B.
157: @item quotetotex_env()
158: :: quotetotex $B$NF0:n$r@)8f$9$k%Q%i%a!<%?$N8=:_CM$rLa$9(B.
159: @item quotetotex_env(0)
160: :: quotetotex $B$NF0:n$r@)8f$9$k%Q%i%a!<%?$r%G%U%)!<%k%HCM$KLa$9(B.
1.1 takayama 161: @end table
162:
163: @comment --- $B0z?t$N4JC1$J@bL@(B ---
164: @table @var
165: @item return
1.2 takayama 166: $BJ8;zNs(B(quotetotex) $B$^$?$O(B $B%j%9%H$^$?$O%*%V%8%'%/%H(B(quotetotex_env)
167: @item q
168: quote
169: @item key
170: $BJ8;zNs(B
171: @item value
172: $B%*%V%8%'%/%H(B
1.1 takayama 173: @end table
174:
175: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
176: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
177: @comment --- @bullet $B$O9uE@IU$-(B ---
178: @itemize @bullet
179: @item
1.2 takayama 180: quotetotex $B$O(B @var{q} $B$r(B latex $B7A<0$GI=8=$7$?J8;zNs$KJQ49$9$k(B.
1.34 ! ohara 181: @item
1.2 takayama 182: $B0J2<(B quotetotex_env $B$N%Q%i%a!<%?$N0UL#$r@bL@$9$k(B.
1.34 ! ohara 183: @item
1.2 takayama 184: conv_rule: 3 $B%S%C%H$rMQ$$$FJQ49%k!<%k$r;XDj$9$k(B.
185: 0$B%S%C%HL\$O(B symbol_table $B$K$h$kJQ49$r9T$&$+(B,
186: 1$B%S%C%HL\$OE:;zJQ49$r9T$&$+(B,
1.3 takayama 187: 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 188: $B$r0UL#$9$k(B.
189: $B$?$H$($P(B conv_rule $B$H$7$F(B 3 $B$r;XDj$9$k$H(B,
190: 0$B%S%C%HL\(B, 1 $B%S%C%HL\$,(B 1 $B$H$J$k$N$G(B
191: symbol_table $B$K$h$kJQ49$r9T$$(B, $BE:;zJQ49$r$*$3$J$&(B.
192: $BE:;zJQ49$O?t;z$H1Q;z$N6-L\$*$h$S(B _ $B5-9f$r6h@Z$j$H$9$k(B.
193: symbol_table $B$K$h$kJQ49$,:G=i$KE,MQ$5$l$k(B.
194: alpha, beta, $BEy$O<+F0E*$r%.%j%7%cJ8;z$KJQ49$9$k%F!<%V%k$O(B
195: $BFbB"$:$_(B.
1.34 ! ohara 196: @item
1.5 takayama 197: dp_vars_prefix: $BJ,;6I=8=B?9`<0$O(B
1.34 ! ohara 198: @iftex
! 199: @tex
1.5 takayama 200: $x_0, x_1, \cdots$
1.34 ! ohara 201: @end tex
! 202: @end iftex
! 203: @ifinfo
! 204: x0, x1, ...
! 205: @end ifinfo
1.5 takayama 206: $B$NB?9`<0$H$7$F(B latex $B7A<0$KJQ49$5$l$k$,$3$N(B
207: x $B$NItJ,$rJQ99$9$k(B.
1.34 ! ohara 208: @item
1.5 takayama 209: dp_vars_origin: $B%$%s%G%C%/%9$N;O$^$j$NCM$r;XDj$9$k(B.
210: $B%G%U%)!<%k%H$O(B 0.
1.1 takayama 211: @item
1.2 takayama 212: dp_vars_hweyl: $BJ,;6I=8=B?9`<0$r%o%$%kBe?t$N85$H$_$J$7$F(B
1.3 takayama 213: latex $B7A<0$KJQ49$9$k(B.
1.34 ! ohara 214: $B6v?t8DJQ?t$,$"$k$H$-$O(B $B:G=i$NH>J,$r(B
! 215: @iftex
! 216: @tex
1.2 takayama 217: $x_0, x_1, \cdots$
1.34 ! ohara 218: @end tex
! 219: $B$K8eH>$NH>J,$r(B
! 220: @tex
1.2 takayama 221: $\partial_0, \partial_1, \cdots$
1.34 ! ohara 222: @end tex
! 223: @end iftex
! 224: @ifinfo
! 225: x0, x1, ... $B$K8eH>$NH>J,$r(B dx0, dx1, ...
! 226: @end ifinfo
1.2 takayama 227: $B$KJQ49$9$k(B.
228: $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 229: @item
230: dp_dvars_prefix: dp_vars_hweyl $B$,(B 1 $B$N;~$K8eH>ItJ,$N(B prefix $B$r;XDj$9$k(B.
231: $B%G%U%)!<%k%H$O(B @tex $\partial$ @end tex
232: @item
233: dp_dvars_origin: dp_vars_hweyl $B$,(B 1 $B$N;~$N%$%s%G%C%/%9$N;O$^$j$NCM(B.
1.34 ! ohara 234: @item
1.2 takayama 235: conv_func: $B%f!<%6Dj5A$NJQ494X?t$r$h$V(B.
1.1 takayama 236: @end itemize
237:
238: @comment --- @example$B!A(B@end example $B$O<B9TNc$NI=<((B ---
239: @example
1.2 takayama 240: [3] quotetotex(quote(1/(x+1)));
241: \frac@{ 1@} @{ ( @{x@}+ 1)@}
242: [4] quotetotex(objtoquote(diff(x^x,x)));
243: @{x@}^@{ @{x@}- 1@} @{x@}+ \log( @{x@}) @{x@}^@{ @{x@}@}
244: [5] quotetotex_env("conv_rule",3);
245: [6] quotetotex(objtoquote( (alpha2beta+x_i_j)^2));
246: @{\alpha@}_@{2,\beta@}^@{ 2@} + 2 @{x@}_@{i,j@} @{\alpha@}_@{2,\beta@}+ @{x@}_@{i,j@}^@{ 2@}
1.1 takayama 247: @end example
248:
249: @comment --- $B;2>H(B($B%j%s%/(B)$B$r=q$/(B ---
250: @table @t
251: @item $B;2>H(B
1.2 takayama 252: @ref{objtoquote}
1.3 takayama 253: print_tex_form(contrib)
1.1 takayama 254: @end table
255:
256: @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
257: @noindent
258: ChangeLog
259: @itemize @bullet
1.34 ! ohara 260: @item
! 261: $B$3$N4X?t$O(B 2004$BG/(B2$B7nKv$+$i(B3$B7n$K$+$1$F(B asir $B$r(B
! 262: knoppix $BHG(B texmacs $B$KBP1~$5$;$k$?$a$K=q$+$l$?(B.
1.5 takayama 263: Asir-contrib $B$N(B print_tex_form $B$,$=$N867?$G$"$j(B, $B$=$l$r8zN(2=$7$^$?(B
264: $B=PNO7A<0$r2~A1$7$?(B.
265: OpenXM/src/kxx/ox_texmacs.c, OpenXM/src/texmacs $B$b;2>H(B.
1.34 ! ohara 266: @item
! 267: OpenXM/src/asir-contrib/packages/src/noro_print.rr 1.1--1.8,
1.5 takayama 268: noro_print_default.rr 1.1--1.3 $B$b;2>H(B.
1.34 ! ohara 269: @item
1.5 takayama 270: $BJQ99$r<u$1$?%U%!%$%k$O(B OpenXM_contrib2/asir2000 $B$N2<$N<!$N%U%!%$%k(B.
1.3 takayama 271: builtin/strobj.c 1.14--1.43,
272: include/ca.h 1.46, io/cexpr.c 1.18, io/pexpr.c 1.32, io.sexpr.c 1.29,
273: parse/arith.c 1.12, parse/parse.h 1.28--1.29,
274: parse/quote.c 1.7--1.8, 1.12.
1.34 ! ohara 275: @item
1.3 takayama 276: knoppix/math $B$O(B $BJ!2,Bg3X$N_@ED$5$s$,Cf?4$H$J$j3+H/$5$l$F$$$k(B.
1.34 ! ohara 277: @item
1.5 takayama 278: dp_dvars_prefix, *_origin $B$O(B builtin/strobj.c 1.46 $B$GF3F~$5$l$?(B.
279: @item
280: Todo: quotetoterminalform ($BJ,;6I=8=B?9`<0$N8+0W$$=PNO(B).
1.3 takayama 281: @end itemize
282:
283:
284:
1.34 ! ohara 285: @comment --- $B"~"~"~"~(B $B4X?t(B objtoquote $B$N@bL@(B $B"~"~"~"~(B
! 286: @node objtoquote,,, $B%/%*!<%H(B
1.3 takayama 287: @subsection @code{objtoquote}
288: @findex objtoquote
289:
290: @comment --- $B4X?t$N4JC1$J@bL@(B ---
291: @table @t
292: @item objtoquote(@var{ob})
293: :: $B%*%V%8%'%/%H$H(B quote $B7?$N%G!<%?$KJQ49$9$k(B.
294: @end table
295:
296: @table @var
297: @item return
298: quote
299: @item ob
300: $B%*%V%8%'%/%H(B
301: @end table
302:
303: @itemize @bullet
304: @item
305: @code{objtoquote(ob)} $B$O(B, @var{ob} $B$r(B quote $B7?$N%G!<%?$KJQ49$9$k(B.
306: @end itemize
307:
308: @example
309: [1150] quotetolist(quote(1+2));
310: [b_op,+,[internal,1],[internal,2]]
311: [1151] quotetolist(objtoquote(1+x));
312: [b_op,+,[internal,x],[internal,1]]3
313: @end example
314:
315: @table @t
316: @item $B;2>H(B
317: @ref{quotetotex} @ref{quotetolist}
318: @end table
319:
320: @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
321: @noindent
322: ChangeLog
323: @itemize @bullet
324: @item $B$3$N4X?t$O(B quotetotex $B$NA0=hM}$r$9$k$?$a$K=q$+$l$?(B.
325: @item asir-contrib $B$N4X?t(B quote_to_quote $B$b;2>H(B.
326: @item OpenXM_contrib2/asir2000/builtin/print.c 1.16.
327: @end itemize
328:
329:
1.34 ! ohara 330: @node flatten_quote,,, $B%/%*!<%H(B
! 331: @subsection @code{flatten_quote}
! 332: @findex flatten_quote
1.3 takayama 333:
334: @comment --- $B4X?t$N4JC1$J@bL@(B ---
335: @table @t
1.34 ! ohara 336: @item flatten_quote(@var{q},@var{op})
! 337: :: quote $B$N3g8L$r$H$j$5$k(B.
1.3 takayama 338: @end table
339:
340: @table @var
341: @item return
1.34 ! ohara 342: Quote
! 343: @item q
! 344: Quote
! 345: @item op
! 346: $B1i;;;R$rI=$9J8;zNs(B.
1.3 takayama 347: @end table
348:
349: @itemize @bullet
350: @item
1.34 ! ohara 351: Quote $B7?$N%G!<%?$OLZ9=B$$r$7$F$$$k(B
! 352: ( quotetolist $B;2>H(B ).
! 353: @code{quote_flatten()} $B$O(B, @var{q} $B$NCf$K$"$i$l$k1i;;;R(B @var{op}
! 354: $B$N;R6!%N!<%I$rJ?Ey$K$9$k(B.
! 355: $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.
! 356: $B$?$H$($P(B (1+2)+(3+4) $B$H$$$&I=8=$r(B 1+2+3+4 $B$KJQ49$9$k(B.
! 357: @item
! 358: $B8=:_$N<BAu$G$O(B n-ary $B$N1i;;;R$ODj5A$5$l$F$$$J$$$N$G(B,
! 359: 1+2+3 $B$O<B$O(B 1+(2+3) $B$HI=8=$5$l$F$$$k(B.
! 360: $B$D$^$j(B + $B1i;;;R$O1&7k9gE*$G$"$k(B.
! 361: @item R=0; for (I=0; I<N; I++) R = R+ P[I]; $B$J$kB-$7;;$r7+$jJV$9$H(B,
! 362: + $B$O:87k9gE*$K$J$k(B. $B1&7k9gE*$KJQ49$9$k$K$O(B flatten_quote $B$r8F$V(B.
! 363: @item $BL>A0$O(B quote_flatten $B$G$J$/(B flatten_quote $B$G$"$k(B.
1.3 takayama 364: @end itemize
365:
366: @example
1.34 ! ohara 367: [1288] flatten_quote(quote((1+2)+(3+4*(x+3))),"+");
! 368: quote(1+2+3+4*(x+3))
! 369: [1289] flatten_quote(quote( (x*y)*(p*3)-(x*y)*z),"*");
! 370: quote(x*y*p*3-x*y*z)
! 371: [1290] quotetolist(quote(1+2+3));
! 372: [b_op,+,[b_op,+,[internal,1],[internal,2]],[internal,3]]
1.3 takayama 373: @end example
374:
1.34 ! ohara 375: @table @t
! 376: @item $B;2>H(B
! 377: @ref{quotetolist}, @ref{print_tex_form}(contrib)
! 378: @end table
! 379:
! 380: @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
1.3 takayama 381: @noindent
382: ChangeLog
383: @itemize @bullet
1.34 ! ohara 384: @item
! 385: $B$3$N4X?t$O(B 2004-7-7 $B$+$i(B 2004-7-8 $B$K$+$1$F(B
! 386: quote $B$K4X$9$kA`:n$r8&5f$9$k$?$a$K<B83E*$K=q$+$l$?(B.
! 387: 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
! 388: $B1~MQ(B.
! 389: @item
! 390: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B
! 391: builtin/strobj.c 1.47,
! 392: parse/eval.c 1.35,
! 393: parse/parse.h 1.31,
! 394: parse/quote.c 1.14--1.16.
1.3 takayama 395: @end itemize
396:
397:
1.34 ! ohara 398: @node quote_to_funargs,,, $B%/%*!<%H(B
! 399: @subsection @code{quote_to_funargs}, @code{funargs_to_quote}, @code{remove_paren}
! 400: @findex quote_to_funargs
! 401: @findex funargs_to_quote
! 402: @findex remove_paren
1.3 takayama 403:
404: @table @t
1.34 ! ohara 405: @item quote_to_funargs(@var{q})
! 406: :: quote $B$r(B funarg $B7A<0(B($B%j%9%H(B) $B$X(B.
! 407: @item funargs_to_quote(@var{f})
! 408: :: funarg $B7A<0$r(B quote $B$X(B.
! 409: @item get_function_name(@var{f})
! 410: :: funarg $B7A<0$N(B op $B$rJ8;zNs$X(B.
! 411: @item remove_paren(@var{q})
! 412: :: $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)
1.3 takayama 413: @end table
414:
415: @table @var
416: @item return
1.34 ! ohara 417: quote(funargs_to_quote, remove_paren) $B$+(B $B%j%9%H(B(quote_to_funargs)
! 418: @item q
! 419: quote
! 420: @item f
! 421: $B%j%9%H(B
1.3 takayama 422: @end table
423:
424: @itemize @bullet
425: @item
1.34 ! ohara 426: @code{quote_to_funargs} $B$O(B quote $B7?$N%G!<%?(B ($BFbItE*$K$O(B FNODE) $B$r(B
! 427: quote $B$X$NI|852DG=$J7A$G%j%9%H$XJQ49$9$k(B.
! 428: @code{quotetolist} $B$O(B quote $B$r%j%9%H$XJQ49$9$k$,(B, $B0lIt$N>pJs$r<N$F$k$?$a(B
! 429: $B$b$H$N(B quote $B$NI|85$O$G$-$J$$(B.
! 430: @item
! 431: @code{quote_to_funargs} $B$NLa$jCM$O(B [fid, op, arg1, arg2, ...]
! 432: $B$J$k7A<0$r$7$F$$$k(B.
! 433: $B$3$3$G(B op $B$O(B node $B$NL>A0$G$"$j(B,
! 434: $B4X?t(B @code{get_function_name} $B$rMQ$$$F?M4V$,FI$a$k7A<0(B
! 435: $B$G<h$j$@$;$k(B.
! 436: $B$?$H$($P(B @code{get_function_name(quote_to_funargs(quote(1+2))[1])}
! 437: $B$O(B "+" $B$rLa$9(B.
1.3 takayama 438: @item
1.34 ! ohara 439: $BL>A0(B@code{get_function_name} $B$O$=$N$&$AJQ99$5$l$k$@$m$&(B.
1.3 takayama 440: @item
1.34 ! ohara 441: $B2<$NNc$G(B
! 442: quote_to_funargs(FA[2]);
! 443: [34,[b_op,+,[internal,x],[internal,1]]]
! 444: $B$H$J$k(B.
! 445: 34 $B$O(B @code{I_PAREN} $B$r0UL#$9$k(B.
! 446: $B?t$H0UL#$NBP1~I=$O(B @code{OpenXM/src/asir-contrib/packages/src/noro_simplify.rr}
! 447: $B$^$?$O(B @code{OpenXM_contrib2/asir2000/parse/parse.h} $B$r8+$h(B.
! 448: $B0J2<$N(B fid $B$,(B 0, 1, 2, ... $B$KBP1~$E$1$i$l$F$$$k(B.
! 449: I_BOP, I_COP, I_AND, I_OR, I_NOT, I_CE,
! 450: I_PRESELF, I_POSTSELF,
! 451: I_FUNC, I_FUNC_OPT, I_IFUNC, I_MAP, I_RECMAP, I_PFDERIV,
! 452: I_ANS, I_PVAR, I_ASSPVAR,
! 453: I_FORMULA, I_LIST, I_STR, I_NEWCOMP, I_CAR, I_CDR, I_CAST,
! 454: I_INDEX, I_EV, I_TIMER, I_GF2NGEN, I_GFPNGEN, I_GFSNGEN,
! 455: I_LOP, I_OPT, I_GETOPT, I_POINT, I_PAREN, I_MINUS,
! 456: I_NARYOP
1.3 takayama 457: @end itemize
458:
1.34 ! ohara 459: $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.
! 460: @example
! 461: [0] ctrl("print_quote",1) $
! 462:
! 463: [1] Q=quote((x+1)+(x+2));
! 464: [b_op,+,[u_op,(),[b_op,+,[internal,x],[internal,1]]],
! 465: [u_op,(),[b_op,+,[internal,x],[internal,2]]]]
! 466:
! 467: [2] FA=quote_to_funargs(Q);
! 468: [0,<...quoted...>,
! 469: [u_op,(),[b_op,+,[internal,x],[internal,1]]],
! 470: [u_op,(),[b_op,+,[internal,x],[internal,2]]]]
! 471:
! 472: [3] FA2=quote_to_funargs(FA[2])[1];
! 473: [b_op,+,[internal,x],[internal,1]]
! 474:
! 475: [4] FA3=quote_to_funargs(FA[3])[1];
! 476: [b_op,+,[internal,x],[internal,2]]
! 477:
! 478: [5] funargs_to_quote([FA[0],FA[1],FA2,FA3]);
! 479: [b_op,+,[b_op,+,[internal,x],[internal,1]],
! 480: [b_op,+,[internal,x],[internal,2]]]
! 481: @end example
! 482:
! 483: $B<!$NNc$O(B OpenXM/asir-contrib $BHG$N(B asir $B$G<B9T(B.
! 484: @example
! 485: [1287] load("noro_simplify.rr");
! 486: 1
! 487: [1293] noro_simplify.remove_paren(quote( f(1-(x))));
! 488: quote(f(1-x))
! 489: @end example
1.3 takayama 490:
1.34 ! ohara 491: funargs_to_quote $B$rMQ$$$F4{B8$N(B quote $B$N;R6!$rCV$-49$($F(B
! 492: $B?7$7$$(B quote $B$r$D$/$j=P$;$k(B.
! 493: @example
! 494: [1184] R=quote_to_funargs(quote(a+(b+c)));
! 495: [0,<...quoted...>,<...quoted...>,<...quoted...>]
! 496: [1185] T=quote_to_funargs(quote(1+2));
! 497: [0,<...quoted...>,<...quoted...>,<...quoted...>]
! 498: [1186] funargs_to_quote([0,R[1],R[2],T[2]]);
! 499: quote(a+1)
1.3 takayama 500: @end example
501:
1.34 ! ohara 502: @table @t
! 503: @item $B;2>H(B
! 504: @ref{quotetolist}
! 505: @end table
! 506:
1.3 takayama 507:
508: @noindent
509: ChangeLog
510: @itemize @bullet
1.34 ! ohara 511: @item
! 512: $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
! 513: $B$N<B83E*4X?t$G$"$k(B.
! 514: $BJQ99$r$&$1$?%=!<%9%3!<%I$OB?4t$K$o$?$k$N$G$^$@=q$+$J$$(B.
! 515: @item
! 516: $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.
! 517: @item
! 518: 2004-6-26 $B$N7W;;Be?t%;%_%J!<$K$*$$$F(B, $BCf@n$5$s$,(B simplifier $B$K$D$$$F$$$m$$$mLdBjDs5/(B
! 519: $B$r$7$?(B ($B7W;;Be?t%;%_%J!<%S%G%*;2>H(B).
! 520: @item parse/quote.c $B$N(B {\tt strcut fid_spec fid_spec_tab[] }
! 521: $B$NItJ,$K=q$$$F$"$k7A<0$K(B @code{funargs_to_quote} $B$OJQ49$9$k(B.
1.3 takayama 522: @end itemize
523:
524:
1.34 ! ohara 525: @node eval_quote,,, $B%/%*!<%H(B
! 526: @subsection @code{eval_quote}
! 527: @findex eval_quote
1.3 takayama 528:
529: @comment --- $B4X?t$N4JC1$J@bL@(B ---
530: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
531: @table @t
1.34 ! ohara 532: @item eval_quote(@var{Q});
! 533: :: quote $B7?%G!<%?(B @var{Q} $B$r(B asir $B$N%*%V%8%'%/%H$KJQ49$9$k(B.
1.3 takayama 534: @end table
535:
536: @table @var
537: @item return
1.34 ! ohara 538: $B%*%V%8%'%/%H(B
! 539: @item Q
! 540: quote$B7?(B
! 541: @end table
! 542:
! 543: @itemize @bullet
! 544: @item quote $B7?%G!<%?(B @var{Q} $B$r(B asir $B$N%*%V%8%'%/%H$KJQ49$9$k(B.
! 545: @item $B5U4X?t$O(B @code{objtoquote}
! 546: @end itemize
! 547:
! 548: @example
! 549: ctrl("print_quote",2);
! 550: A=quote((x-1)^2+(x-1)+3);
! 551: $B=PNO(B: ((((x)-(1))^(2))+((x)-(1)))+(3)
! 552: eval_quote(A);
! 553: $B=PNO(B: x^2-x+3
! 554: print_input_form(A); /* asir-contrib */
! 555: $B=PNO(B: quote((x-1)^2+(x-1)+3)
1.11 ohara 556: @end example
1.3 takayama 557:
1.34 ! ohara 558: @table @t
! 559: @item $B;2>H(B
! 560: @ref{objtoquote}, @ref{quotetolist}, @ref{eval_string},
! 561: @ref{quote_to_funargs}, @ref{funargs_to_quote}
! 562: @end table
1.3 takayama 563:
564: @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
1.34 ! ohara 565: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.3 takayama 566: @noindent
567: ChangeLog
568: @itemize @bullet
1.34 ! ohara 569: @item -----$B$^$@=q$$$F$J$$(B.
1.1 takayama 570: @end itemize
571:
1.34 ! ohara 572:
! 573: @node nqt_match,,, $B%/%*!<%H(B
! 574: @subsection @code{nqt_match}
! 575: @findex nqt_match
1.1 takayama 576:
577: @comment --- $B4X?t$N4JC1$J@bL@(B ---
578: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
579: @table @t
1.34 ! ohara 580: @item nqt_match(@var{Expr},@var{Pattern}[,@var{Mode}])
! 581: :: @var{Expr} $B$,(B @var{Pattern} $B$K%^%C%A(B($BE,9g(B)$B$9$k$H(B 1 $B$rLa$9(B. $B$7$J$$$H(B 0 $B$rLa$9(B.
1.3 takayama 582: @end table
583:
1.34 ! ohara 584: @table @var
! 585: @item return
! 586: $B@0?t(B
! 587: @item Expr
! 588: quote$B7?(B
! 589: @item Pattern
! 590: quote$B7?(B
! 591: @item Mode
! 592: $B@0?t(B
! 593: @end table
1.3 takayama 594:
595: @itemize @bullet
1.34 ! ohara 596: @item @var{Expr} $B$,(B @var{Pattern} $B$K%^%C%A(B($BE,9g(B)$B$9$k$H(B 1 $B$rLa$9(B. $B$7$J$$$H(B 0 $B$rLa$9(B.
! 597: @item $BE,9g$7$?>l9g(B, $BI{:nMQ$H$7$F(B, @var{Pattern} $B$K4^$^$l$k%W%m%0%i%`JQ?t(B($BBgJ8;z$G$O$8$^$kJQ?t(B)$B$KE,9g$7$?CM$,BeF~$5$l$k(B.
! 598: @item nqt $B$O(B normalized quote $B$NN,$G$"$j(B fnode$BI8=`7A$KJQ49$7$F$+$iE,9g8!::$r$9$k(B. fnode$BI8=`7A$K$D$$$F$O(B @ref{qt_normalize} $B$r8+$h(B.
! 599: @item @var{Mode} $B$K$h$jE83+J}K!$r;XDj$7(B, $B$=$NE83+J}K!$K$h$jF@$i$l$?(B @var{Expr} $B$N(B
! 600: fnode$BI8=`7A$H(B @var{Pattern} $B$rHf3S$9$k(B.
1.3 takayama 601: @end itemize
602:
1.34 ! ohara 603: @example
! 604: ctrl("print_quote",2);
! 605: A=quote((x-y)*(x+y));
! 606: nqt_match(A,quote(P*Q));
! 607: [P,Q]
! 608: $B=PNO(B: [x-y, x+y]
! 609: nqt_match(A,quote(P*Q),1);
! 610: $B%^%C%A$7$J$$(B.
! 611: nqt_match(A,quote(P*Q),2);
! 612: $B%^%C%A$7$J$$(B.
! 613: qt_normalize(A,1);
! 614: $B=PNO(B: ((x)^(2))+((x)*(y))+((-1)*((y)^(2)))+((-1)*(y)*(x))
! 615: qt_normalize(A,2);
! 616: $B=PNO(B: ((x)*(x))+((x)*(y))+((-1)*(y)*(x))+((-1)*(y)*(y))
! 617: @end example
! 618:
! 619: @table @t
! 620: @item $B;2>H(B
! 621: @ref{nqt_match_rewrite},
! 622: @ref{qt_rewrite}
! 623: @end table
1.3 takayama 624:
625: @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
1.34 ! ohara 626: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.3 takayama 627: @noindent
628: ChangeLog
629: @itemize @bullet
1.34 ! ohara 630: @item ----- $B$^$@=q$$$F$J$$(B.
1.3 takayama 631: @end itemize
632:
1.4 takayama 633:
1.34 ! ohara 634: @node nqt_match_rewrite,,, $B%/%*!<%H(B
! 635: @subsection @code{nqt_match_rewrite}
! 636: @findex nqt_match_rewrite
1.4 takayama 637:
638: @comment --- $B4X?t$N4JC1$J@bL@(B ---
639: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
640: @table @t
1.34 ! ohara 641: @item nqt_match_rewrite(@var{Expr},@var{Rule},@var{Mode})
! 642: :: @var{Expr} $B$r(B @var{Rule} $B$K=>$$=q$-49$($k(B.
1.4 takayama 643: @end table
644:
645: @table @var
646: @item return
1.34 ! ohara 647: quote$B7?(B
! 648: @item Expr
! 649: quote$B7?(B
! 650: @item Rule
! 651: [@var{Pattern},@var{Action}] $B$+$^$?$O(B
! 652: [@var{Pattern},@var{Condition},@var{Action}].
! 653: $B$3$l$i$NMWAG$O$9$Y$F(B quote$B7?(B.
! 654: @item Mode
! 655: $B@0?t(B
1.4 takayama 656: @end table
657:
658: @itemize @bullet
1.34 ! ohara 659: @item @var{Expr} $B$r(B @var{Rule} $B$K=>$$=q$-49$($k(B. @var{Pattern} $B$KE,9g$7$J$$>l9g$O(B
! 660: @var{Exprt} $B<+BN$rLa$9(B.
! 661: @item nqt $B$O(B normalized quote $B$NN,$G$"$j(B fnode$BI8=`7A$KJQ49$7$F$+$iE,9g8!::$r$9$k(B. fnode$BI8=`7A$K$D$$$F$O(B @ref{qt_normalize} $B$r8+$h(B.
1.4 takayama 662: @end itemize
663:
1.34 ! ohara 664: @comment %%Doc: cfep/tests/2006-03-12-qt.rr
1.4 takayama 665: @example
1.34 ! ohara 666: ctrl("print_quote",2);
! 667: nqt_match_rewrite(`x*y*z,[`X*Y,`X+Y],1);
! 668: $B=PNO(B: (x)+((y)*(z))
! 669: A=`x*x;
! 670: nqt_match_rewrite(A,[`X*Y,`X+Y],1);
! 671: $B=PNO(B: x^2 ($B%^%C%A$7$F$$$J$$(B)
! 672: nqt_match_rewrite(A,[`X*Y,`X+Y],2);
! 673: $B=PNO(B: 2*x
! 674:
! 675: $BE,9g$K$D$$$F$N%b!<%I$N0c$$$rM}2r$9$k$?$a$K<!$NNc$*$h$S(B fnode$BI8=`7A(B(qt_normalize) $B$r;2>H(B.
! 676: quotetolist(qt_normalize(`x*x,0));
! 677: $B=PNO(B: [b_op,^,[internal,x],[internal,2]]
! 678: quotetolist(qt_normalize(`x*x,1));
! 679: $B=PNO(B: [b_op,^,[internal,x],[internal,2]]
! 680: quotetolist(qt_normalize(`x*x,2));
! 681: $B=PNO(B: [n_op,*,[internal,x],[internal,x]]
1.4 takayama 682: @end example
683:
684: @table @t
685: @item $B;2>H(B
1.34 ! ohara 686: @ref{nqt_match},
! 687: @ref{qt_rewrite},
! 688: @ref{qt_normalize}
1.4 takayama 689: @end table
690:
691: @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
692: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
693: @noindent
694: ChangeLog
695: @itemize @bullet
1.34 ! ohara 696: @item -----$B$^$@=q$$$F$J$$(B.
1.4 takayama 697: @end itemize
698:
1.34 ! ohara 699:
! 700:
! 701: @node qt_normalize,,, $B%/%*!<%H(B
! 702: @subsection @code{qt_normalize}
! 703: @findex qt_normalize
1.6 takayama 704:
705: @comment --- $B4X?t$N4JC1$J@bL@(B ---
706: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
707: @table @t
1.34 ! ohara 708: @item qt_normalize(@var{Expr}[,@var{Mode}])
! 709: :: @var{Expr} $B$r(B fnode$BI8=`7A$KJQ49$9$k(B. @var{Mode}$B$K$h$jI8=`7A$X$NE83+%"%k%4%j%:%`$r;XDj$G$-$k(B.
1.6 takayama 710: @end table
711:
712: @table @var
713: @item return
1.34 ! ohara 714: quote$B7?(B
! 715: @item Expr
! 716: quote$B7?(B
! 717: @item Mode
! 718: $B@0?t(B
1.6 takayama 719: @end table
720:
1.34 ! ohara 721: fnode$B$O(B quote$B7?$N<BBN$G$"$k(B.
! 722: fnode $B$OLZ$G$"$j(B, $B7?(B id $B$*$h$S;R6!$+$i$J$k(B.
! 723: $B7?$*$h$S;R6!$r<h$j=P$94X?t$,(B funargs_to_quote $B$G$"$k(B.
! 724: $B$^$?(B fnode $B$r%j%9%H$KJQ49$9$k4X?t$,(B quotetolist $B$G$"$k(B.
! 725:
! 726: fnode $B$NI8=`7A$O%Q%?!<%s%^%C%A%s%0(B, $B=q$-49$($rMF0W$K$*$3$J$&$?$a$KF3F~$5$l$?(B.
! 727: fnode $B$NI8=`7A$r(B fn $B$H=q$/$H$-(B, $BI8=`7A$N(B BNF$BIwI=8=$G$NDj5A$O0J2<$N$H$*$j(B.
! 728: @example
! 729: fn = formula | functor(nf [,...]) | sum_of_monom
! 730: fnode $B$NI8=`7A(B. functor $B$O4X?t$h$S$@$7$_$?$$$J$b$N(B.
! 731: sum_of_monom = monom [+ ...]
! 732: $B%b%N%_%"%k$NOB(B
! 733: monom = [formula *] nfpow [* ...]
! 734: $B%b%N%_%"%k(B
! 735: nfpow = nf | nf^(nf)
! 736: $BQQ>hItJ,$NI8=`7A(B
! 737: formula = Risa object
! 738: @end example
! 739:
! 740:
1.6 takayama 741: @itemize @bullet
1.34 ! ohara 742: @item @var{Expr} $B$r(B fnode$BI8=`7A$KJQ49$9$k(B. @var{Mode}$B$K$h$jI8=`7A$X$NE83+%"%k%4%j%:%`$r;XDj$G$-$k(B.
! 743: @item $BE83+$O:F5"E*$G$"$k(B.
! 744: @item $BF~NO$,(B fnode $B$KJQ49$5$l$?=i4|>uBV$G$O(B + $B$d(B * $B$O;R6!$,(B2$B?M$N(B binary operator
! 745: (b_op) $B$G$"$k$,(B, qt_normalize $B$r:nMQ$5$;$k$3$H$K$h$j(B, + $B$d(B * $B$OG$0U?M?t$N(B
! 746: $B;R6!$r;}$F$k(B n-ary operator $B$KJQ49$5$l$k(B.
! 747: @item n-ary operator $B$r4pAC$H$7$?(B fnode$BI8=`7A$rMQ$$$k$3$H$K$h$j(B, $B%Q%?!<%s%^%C%AMQ$N%Q%?!<%s$N?t$r8:$i$;$k$3$H$,7P83E*$K$o$+$C$F$$$k(B.
! 748: @item @var{Mode}=0. $BE83+$7$J$$(B. $B$3$l$,4{Dj$NF0:n(B.
! 749: @item @var{Mode}=1. $BE83+$9$k(B. $B$?$@$7(B x*x $BEy$r(B x^2 $BEy$KJQ49(B
! 750: @item @var{Mode}=2. $BE83+$9$k(B. $B$?$@$7(B x*x $BEy$r(B x^2 $BEy$KJQ49$7$J$$(B.
1.6 takayama 751: @end itemize
752:
1.34 ! ohara 753: @var{Mode} $B$N0c$$$K$D$$$F$O0J2<$NNc$b;29M$K(B.
! 754: @comment %%cfep/tests/2006-03-12-qt.rr
1.6 takayama 755: @example
1.34 ! ohara 756: ctrl("print_quote",2);
! 757: A=quote((x-y)*(x+y));
! 758: $B=PNO(B: ((x)-(y))*((x)+(y))
! 759: B=qt_normalize(A,0);
! 760: $B=PNO(B: ((x)+((-1)*(y)))*((x)+(y)) Mode=0. $BE83+$O$5$l$J$$(B. +, * $B$O(B n_op (nary-op) $B$X(B.
! 761: quotetolist(B);
! 762: $B=PNO(B: [n_op,*,[n_op,+,[internal,x],[n_op,*,[internal,-1],[internal,y]]],[n_op,+,[internal,x],[internal,y]]]
1.6 takayama 763:
1.34 ! ohara 764: B=qt_normalize(A,1);
! 765: $B=PNO(B: ((x)^(2))+((x)*(y))+((-1)*((y)^(2)))+((-1)*(y)*(x))
! 766: Mode=1. $BE83+$9$k(B. +, * $B$O(B n_op (nary-op) $B$X(B. $B6R$r$^$H$a$k(B.
! 767: quotetolist(B);
! 768: $B=PNO(B: [n_op,+,[b_op,^,[internal,x],[internal,2]],[n_op,*,[internal,x],[internal,y]],[n_op,*,[internal,-1],[b_op,^,[internal,y],[internal,2]]],[n_op,*,[internal,-1],[internal,y],[internal,x]]]
1.6 takayama 769:
1.34 ! ohara 770: qt_normalize(A,2);
! 771: $B=PNO(B: ((x)*(x))+((x)*(y))+((-1)*(y)*(x))+((-1)*(y)*(y))
! 772: Mode=2. $BE83+$9$k(B. +, * $B$O(B n_op (nary-op) $B$X(B. $B6R$O;H$o$J$$(B.
! 773: quotetolist(B);
! 774: $B=PNO(B: [n_op,+,[b_op,^,[internal,x],[internal,2]],[n_op,*,[internal,x],[internal,y]],[n_op,*,[internal,-1],[b_op,^,[internal,y],[internal,2]]],[n_op,*,[internal,-1],[internal,y],[internal,x]]]
1.6 takayama 775:
1.34 ! ohara 776: qt_normalize(`x^2,2);
! 777: $B=PNO(B: (x)*(x)
! 778: Mode=2. $B6R$O;H$o$J$$(B. n-ary $B$N(B * $B$X(B.
1.6 takayama 779: @end example
780:
781: @table @t
782: @item $B;2>H(B
1.34 ! ohara 783: @ref{nqt_match},
! 784: @ref{nqt_match_rewrite},
! 785: @ref{quotetolist},
! 786: @ref{quote_to_funargs}
1.6 takayama 787: @end table
788:
789: @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
1.34 ! ohara 790: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.6 takayama 791: @noindent
792: ChangeLog
793: @itemize @bullet
1.34 ! ohara 794: @item -----$B$^$@=q$$$F$J$$(B.
1.6 takayama 795: @end itemize
796:
1.34 ! ohara 797:
! 798: @node qt_set_coef,,, $B%/%*!<%H(B
! 799: @subsection @code{qt_set_coef}
! 800: @findex qt_set_coef
1.6 takayama 801:
802: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1.34 ! ohara 803: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.6 takayama 804: @table @t
1.34 ! ohara 805: @item qt_set_coef(@var{ParamList})
! 806: :: $B0J2<(B @var{ParamList} $B$K8=$l$kB?9`<0JQ?t$rJQ?t$H$9$kM-M}4X?tBN$r78?t$H$9$k(B
! 807: $BHs2D49B?9`<0$r07$&(B.
1.6 takayama 808: @end table
809:
810: @table @var
811: @item return
1.34 ! ohara 812: $B%j%9%H(B
! 813: @item ParamList
! 814: $B%j%9%H(B
1.6 takayama 815: @end table
816:
817: @itemize @bullet
1.34 ! ohara 818: @item $B0J2<(B @var{ParamList} $B$K8=$l$kB?9`<0JQ?t$rJQ?t$H$9$kM-M}4X?tBN$r78?t$H$9$k(B
! 819: $BHs2D49B?9`<0$r07$&(B.
! 820: @item $B$3$N@k8@$r$7$J$$$H78?tBN$r?t$H$9$kHs2D49B?9`<0$H$7$F7W;;$9$k(B.
! 821: @item qt_normalize $B$*$h$S$=$N5!G=$rMQ$$$k4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
! 822: @item qt_comp $B4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
1.6 takayama 823: @end itemize
824:
825: @example
1.34 ! ohara 826: ctrl("print_quote",2);
! 827: qt_set_coef([a]);
! 828: B=qt_normalize(quote((a*x+a)^2),2);
! 829: $B=PNO(B: ((a^2)*(x)*(x))+((2*a^2)*(x))+(a^2)
! 830: qt_normalize(B+B,2);
! 831: $B=PNO(B: ((2*a^2)*(x)*(x))+((4*a^2)*(x))+(2*a^2)
1.6 takayama 832: @end example
833:
834: @table @t
835: @item $B;2>H(B
1.34 ! ohara 836: @ref{qt_normalize}
1.6 takayama 837: @end table
838:
839: @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
1.34 ! ohara 840: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.6 takayama 841: @noindent
842: ChangeLog
843: @itemize @bullet
1.34 ! ohara 844: @item -----$B$^$@=q$$$F$J$$(B.
1.6 takayama 845: @end itemize
846:
1.34 ! ohara 847:
! 848: @node qt_set_ord,,, $B%/%*!<%H(B
! 849: @subsection @code{qt_set_ord}
! 850: @findex qt_set_ord
1.6 takayama 851:
852: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1.34 ! ohara 853: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.6 takayama 854: @table @t
1.34 ! ohara 855: @item qt_set_ord(@var{VarList})
! 856: :: @var{VarList} $B$rJQ?t=g=x$H$9$k(B.
1.6 takayama 857: @end table
858:
859: @table @var
860: @item return
1.34 ! ohara 861: $B%j%9%H(B
! 862: @item VarList
! 863: $B%j%9%H(B
1.6 takayama 864: @end table
865:
866: @itemize @bullet
1.34 ! ohara 867: @item @var{VarList} $B$r<-=q<0$KMQ$$$?JQ?t=g=x$r0J2<;HMQ$9$k(B.
! 868: @item $B$3$N@k8@$r$7$J$$$H$"$kITDj85$K$D$$$F$N4{Dj$N<-=q<0=g=x(B-----$B$^$@=q$$$F$J$$(B---$B$rMQ$$$F9`$rHf3S$9$k(B.
! 869: @var{VarList} $B$K8=$l$J$$JQ?t$K$D$$$F$O$3$N=g=x$,E,MQ$5$l$k(B.
! 870: @item qt_normalize $B$*$h$S$=$N5!G=$rMQ$$$k4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
! 871: @item qt_comp $B4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
1.6 takayama 872: @end itemize
873:
874: @example
1.34 ! ohara 875: ctrl("print_quote",2);
! 876: qt_normalize(quote(x+y),2);
! 877: $B=PNO(B: (x)+(y)
! 878: qt_set_ord([y,x]);
! 879: $B=PNO(B: [y,x,z,u,v,w,p,q,r,s,t,a,b,c,d,e,f,g, $B0J2<>JN,(B ]
! 880: qt_normalize(quote(x+y),2);
! 881: $B=PNO(B: (y)+(x)
1.6 takayama 882: @end example
883:
884: @table @t
885: @item $B;2>H(B
1.34 ! ohara 886: @ref{qt_normalize},
! 887: @ref{nqt_comp}
1.6 takayama 888: @end table
889:
890: @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
1.34 ! ohara 891: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.6 takayama 892: @noindent
893: ChangeLog
894: @itemize @bullet
1.34 ! ohara 895: @item -----$B$^$@=q$$$F$J$$(B.
1.6 takayama 896: @end itemize
897:
1.8 takayama 898:
1.34 ! ohara 899: @node qt_set_weight,,, $B%/%*!<%H(B
! 900: @subsection @code{qt_set_weight}
! 901: @findex qt_set_weight
1.8 takayama 902:
1.34 ! ohara 903: @comment --- $B4X?t$N4JC1$J@bL@(B ---
! 904: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.8 takayama 905: @table @t
1.34 ! ohara 906: @item qt_set_weight(@var{WeightVector})
! 907: :: $BJQ?t$K$D$$$F(B weight $B%Y%/%H%k$r@_Dj$9$k(B.
1.8 takayama 908: @end table
909:
910: @table @var
911: @item return
1.34 ! ohara 912: $B%j%9%H(B
! 913: @item WeightVector
! 914: $B%j%9%H(B
1.8 takayama 915: @end table
916:
1.34 ! ohara 917: fnode f $B$N(B weight w(f) $B$O<!$N<0$G7W;;$9$k(B.
! 918: @example
! 919: f $B$,MU$N>l9g$O86B'(B 0. qt_weight_vector $B$G(B weight $B$,M?$($i$l$F$$$kITDj85$K(B
! 920: $B$D$$$F$O$=$NCM(B.
! 921:
! 922: f $B$,(Bnode$B$N>l9g$O<!$N5,B'$G:F5"E*$K$-$a$k(B.
! 923: w(f+g) = max(w(f),w(g))
! 924: w(f g) = w(f) + w(g)
! 925: w(f^n) = n w(f)
! 926: $B4X?t$K$D$$$F$O(B? -----$B$^$@=q$$$F$J$$(B.
! 927: @end example
! 928:
1.8 takayama 929: @itemize @bullet
1.34 ! ohara 930: @item @var{WeightVector} $B$G$^$:=g=x$NHf3S$r$7$F(B, $B$=$l$+$i(B qt_set_order $B$K$h$k=g=x(B, $B:G8e$K4{Dj$N=g=x$GHf3S$9$k(B.
! 931: @var{WeightVector} $B$K8=$l$J$$JQ?t$K$D$$$F$N(B weight $B$O(B 0 $B$H$J$k(B.
! 932: @item qt_normalize $B$*$h$S$=$N5!G=$rMQ$$$k4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
! 933: qt_normalize $B$G$NE83+$G$O(B, $B$3$N=g=x$rMQ$$$F9`$,%=!<%H$5$l$k(B.
! 934: @item qt_comp $B$*$h$S$=$N5!G=$rMQ$$$k4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
! 935: @item weight $B%Y%/%H%k$K$h$k=g=xHf3S$K$D$$$F$O%0%l%V%J4pDl$N@a(B@ref{dp_gr_main}$B$b;2>H(B.
1.8 takayama 936: @end itemize
937:
938: @example
1.34 ! ohara 939: ctrl("print_quote",2);
! 940: qt_set_weight([[x,-1],[y,-1]]);
! 941: $B7k2L(B: [[x,-1],[y,-1]]
! 942: qt_normalize(quote( 1+(x+y)+(x+y)^2),1);
! 943: $B7k2L(B: (1)+(y)+(x)+((y)^(2))+((y)*(x))+((x)^(2))+((x)*(y))
1.8 takayama 944: @end example
945:
946: @table @t
947: @item $B;2>H(B
1.34 ! ohara 948: @ref{qt_normalize},
! 949: @ref{qt_set_ord},
! 950: @ref{qt_set_weight},
! 951: @ref{dp_gr_main}
1.8 takayama 952: @end table
953:
954: @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
955: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
956: @noindent
957: ChangeLog
958: @itemize @bullet
1.34 ! ohara 959: @item -----$B$^$@=q$$$F$J$$(B.
1.8 takayama 960: @end itemize
961:
962:
1.34 ! ohara 963: @node nqt_comp,,, $B%/%*!<%H(B
! 964: @subsection @code{nqt_comp}
! 965: @findex nqt_comp
! 966:
! 967: @comment --- $B4X?t$N4JC1$J@bL@(B ---
! 968: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.8 takayama 969: @table @t
1.34 ! ohara 970: @item nqt_cmp(@var{Expr1},@var{Exprt2})
! 971: :: @var{Expr1} $B$H(B @var{Expr2} $B$N=g=x$rHf3S$9$k(B.
1.8 takayama 972: @end table
973:
974: @table @var
975: @item return
1.34 ! ohara 976: $B@0?t(B
! 977: @item Expr1, Expr2
! 978: quote$B7?(B
1.8 takayama 979: @end table
980:
981: @itemize @bullet
1.34 ! ohara 982: @item @var{Expr1} $B$H(B @var{Expr2} $B$N=g=x$rHf3S$9$k(B.
! 983: @item @var{Expr1} > @var{Exprt2} $B$J$i(B 1.
! 984: @item @var{Expr1} < @var{Exprt2} $B$J$i(B -1.
! 985: @item @var{Expr1} = @var{Exprt2} ($B$*$J$8=g=x(B) $B$J$i(B 0.
1.8 takayama 986: @end itemize
987:
988: @example
1.34 ! ohara 989: ctrl("print_quote",2);
! 990: qt_set_ord([y,x]); qt_set_weight([[x,-1],[y,-1]]);
! 991: [nqt_comp(`x,`y), nqt_comp(`y,`x), nqt_comp(`x,`x)];
! 992: $B=PNO(B: [-1,1,0]
1.8 takayama 993: @end example
994:
995: @table @t
996: @item $B;2>H(B
1.34 ! ohara 997: @ref{qt_normalize},
! 998: @ref{qt_set_ord},
! 999: @ref{qt_set_weight}
1.8 takayama 1000: @end table
1001:
1002: @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
1003: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1004: @noindent
1005: ChangeLog
1006: @itemize @bullet
1.34 ! ohara 1007: @item $B$^$@=q$$$F$J$$(B.
1.8 takayama 1008: @end itemize
1.34 ! ohara 1009: @comment ****************************************************************
1.8 takayama 1010:
1.34 ! ohara 1011: @node qt_is_var,,, $B%/%*!<%H(B
! 1012: @subsection @code{qt_is_var}, @code{qt_is_coef}
! 1013: @findex qt_is_var
! 1014: @findex qt_is_coef
1.9 takayama 1015:
1016: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1.34 ! ohara 1017: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.9 takayama 1018: @table @t
1.34 ! ohara 1019: @item qt_is_var(@var{Expr})
! 1020: :: @var{Expr} $B$,ITDj85$KBP1~$9$k(B quote $B$J$i(B 1 $B$rLa$9(B.
! 1021: @item qt_is_coef(@var{Expr})
! 1022: :: @var{Expr} $B$,78?t$NM-M}4X?tBN$KB0$9$k$H$-(B 1 $B$rLa$9(B.
1.9 takayama 1023: @end table
1024:
1025: @table @var
1026: @item return
1027: $B@0?t(B
1.34 ! ohara 1028: @item Expr
! 1029: quote$B7?(B
1.9 takayama 1030: @end table
1031:
1032: @itemize @bullet
1.34 ! ohara 1033: @item @var{Expr} $B$,ITDj85$KBP1~$9$k(B quote $B$J$i(B 1 $B$rLa$9(B.
! 1034: $B$=$&$G$J$$$H$-(B 0 $B$rLa$9(B.
1.9 takayama 1035: @end itemize
1036:
1037: @example
1.34 ! ohara 1038: [qt_is_var(quote(x)), qt_is_var(quote(3/2))];
! 1039: $B=PNO(B: [1,0]
1.9 takayama 1040: @end example
1041:
1042: @table @t
1043: @item $B;2>H(B
1.34 ! ohara 1044: @ref{qt_rewrite},
! 1045: @ref{nqt_match_rewrite}
1.9 takayama 1046: @end table
1047:
1.34 ! ohara 1048: @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
! 1049: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.9 takayama 1050: @noindent
1051: ChangeLog
1052: @itemize @bullet
1.34 ! ohara 1053: @item -----$B$^$@=q$$$F$J$$(B.
1.9 takayama 1054: @end itemize
1.34 ! ohara 1055: @comment ****************************************************************
1.8 takayama 1056:
1.34 ! ohara 1057: @node qt_rewrite,,, $B%/%*!<%H(B
! 1058: @subsection @code{qt_rewrite}
! 1059: @findex qt_rewrite
1.12 takayama 1060:
1061: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1.34 ! ohara 1062: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.12 takayama 1063: @table @t
1.34 ! ohara 1064: @item qt_rewrite(@var{Expr},@var{Rules},@var{Mode})
! 1065: :: @var{Expr} $B$r5,B'=89g(B @var{Rules} $B$rMQ$$$F=q$-49$($k(B.
1.12 takayama 1066: @end table
1067:
1068: @table @var
1069: @item return
1.34 ! ohara 1070: quote$B7?(B
! 1071: @item Expr
! 1072: quote$B7?(B
! 1073: @item Rules
! 1074: $B%j%9%H(B
! 1075: @item Mode
1.12 takayama 1076: $B@0?t(B
1077: @end table
1078:
1079: @itemize @bullet
1.34 ! ohara 1080: @item $B%f!<%68@8l$rMQ$$$FDj5A$5$l$?4X?t(B.
! 1081: @code{import("noro_rewrite.rr")} $B$7$F$*$/$3$H(B.
! 1082: (noro_rewrite.rr $B$,(B OpenXM/lib/asir-contrib $B$KB8:_$7$J$$>l9g(B
! 1083: $B%=!<%9$N(B OpenXM/src/asir-contrib/testing/noro/new_rewrite.rr $B$r%3%T!<(B)
! 1084: @item @var{Expr} $B$r5,B'=89g(B @var{Rules} $B$rMQ$$$F=q$-49$($k(B.
! 1085: @item $B5,B'$NE,MQ$O(B fnode$BLZ$KBP$7$F:F5"E*$G$"$k(B.
! 1086: $B0lJ}(B @code{nqt_match_rewrite} $B$G$O%H%C%W%l%Y%k$N$_$K5,B'$,E,MQ$5$l$k(B.
! 1087: @item $B5,B'=89g(B @var{Rules} $B$N3FMWAG$N=q$-J}$O(B @code{nqt_match()} $B$N(B
! 1088: @var{Pattern} $B$HF1$8=q$-J}(B.
! 1089: $B$D$^$j(B [$B%Q%?!<%s(B, $B=q$-49$(7k2L(B] $B$^$?$O(B
! 1090: [$B%Q%?!<%s(B, $B>r7o(B, $B=q$-49$(7k2L(B].
! 1091: @item @var{Mode} $B$N0UL#$O(B @ref{qt_normalize} $B$N(B @var{Mode} $B$HF1MM(B.
! 1092: $B%Q%?!<%s%^%C%A(B, $B=q$-49$($O(B @var{Mode} $B$G(B @code{qt_normalize()}
! 1093: $B$5$l$F$+$i?k9T$5$l$k(B.
1.12 takayama 1094: @end itemize
1095:
1.34 ! ohara 1096: $BCm0U(B: $B?t3XE*$K$O(B X*Y=Y*X $B$,2D49@-$rM?$($k5,B'$@$,(B, $B$3$l$r$=$N$^$^5,B'$H$7$F(B
! 1097: $BM?$($k$H=q$-49$($,Dd;_$7$J$$(B. $B<!$NNc$G$O(B, $B>e$NNc$N$h$&$K=g=xHf3S$7(B, $B$?$H$($P(B,
! 1098: $B=g=x$,Bg$-$/$J$k>l9g$N$_$K=q$-49$($k$Y$-$G$"$k(B.
! 1099: @example
! 1100: import("noro_rewrite.rr");
! 1101: R=[[`X*Y,`nqt_comp(Y*X,X*Y)>0, `Y*X]];
! 1102: qt_rewrite(`(x-y)^2,R,2);
! 1103: $B=PNO(B: quote(x*x+-2*x*y+y*y)
! 1104: @end example
! 1105:
! 1106: $B30@QBe?t$N7W;;(B (asir-contrib $B$r%m!<%I$7$?>uBV(B).
! 1107: @example
! 1108: import("noro_rewrite.rr");
! 1109: Rext0=[quote(X*Y),quote(qt_is_var(X) && qt_is_var(Y) && nqt_comp(Y,X)>0),
! 1110: quote(-Y*X)];
! 1111: Rext1=[quote(X^N),quote(eval_quote(N)>=2),quote(0)];
! 1112: Rext2=[quote(X*X),quote(0)];
! 1113: Rext=[Rext0,Rext1,Rext2];
! 1114: qt_rewrite(quote( (x+2*y)*(x+4*y) ), Rext,1);
! 1115: $B=PNO(B: 2*x*y
! 1116:
! 1117: qt_set_coef([a,b,c,d]);
! 1118: qt_rewrite(quote((a*x+b*y)*(c*x+d*y)), Rext,1);
! 1119: $B=PNO(B: (d*a-c*b)*x*y
! 1120:
! 1121: @end example
! 1122:
! 1123: $BHyJ,$N7W;;(B (asir-contrib $B$r%m!<%I$7$?>uBV(B).
1.12 takayama 1124: @example
1.34 ! ohara 1125: import("noro_rewrite.rr");
! 1126: qt_set_coef([a,b]);
! 1127: Rd1=[`d(X+Y), `d(X)+d(Y)];
! 1128: Rd2=[`d(X*Y),`d(X)*Y+X*d(Y)];
! 1129: Rd3=[`d(N), `qt_is_coef(N), `0];
! 1130: Rd4=[`d(x),`1];
! 1131: Rd=[Rd1,Rd2,Rd3,Rd4];
! 1132: B=qt_rewrite( `d( (a*x+b)^3),Rd,2);
! 1133: $B=PNO(B: quote(3*a^3*x*x+6*b*a^2*x+3*b^2*a)
! 1134: fctr(eval_quote(B));
! 1135: $B=PNO(B: [[3,1],[a,1],[a*x+b,2]]
1.12 takayama 1136: @end example
1137:
1138: @table @t
1139: @item $B;2>H(B
1.34 ! ohara 1140: @ref{nqt_match},
! 1141: @ref{nqt_match_rewrite},
! 1142: @ref{qt_normalize}
1.12 takayama 1143: @end table
1144:
1145: @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
1.34 ! ohara 1146: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.12 takayama 1147: @noindent
1148: ChangeLog
1149: @itemize @bullet
1.34 ! ohara 1150: @item qt $B7O$N4X?t$N867?$O(B OpenXM/src/asir-contrib/testing/tr.rr $B$G$"$k(B.
! 1151: $B$3$N%f!<%68@8l$K$h$k3+H/$,(B 2005$BG/$N=U$^$G9T$o$l(B, $B$=$N$"$HAH$_9~$_4X?t<gBN$N(B
! 1152: qt $B7O$N4X?t$,3+H/$5$l$?(B.
! 1153: @item qt $B7O$N4X?t$K$D$$$F$N$=$NB>$N;29MJ88%(B:
! 1154: OpenXM/doc/Papers/2005-rims-noro.tex $B$*$h$S(B
! 1155: OpenXM/doc/Papers/2005-rims-noro.tm (TeXmacs$B$N5-;v(B).
! 1156: @item Todo: qt $B7O$N4X?t$rMQ$$$?$*$b$7$m$$7W;;$r(B Risa/Asir $B%8%c!<%J%k$N5-;v$H$7$F=q$/(B.
1.13 takayama 1157: @end itemize
1158:
1.34 ! ohara 1159: @comment ****************************************************************
! 1160:
! 1161: @node $BJ8;zNs=hM}(B,,, $B<B83E*;EMM$N4X?t(B
! 1162: @section $BJ8;zNs=hM}(B
1.13 takayama 1163:
1.34 ! ohara 1164: @comment --- $B"~"~"~"~(B $B4X?t(B copyright $B$N@bL@(B $B"~"~"~"~(B
! 1165: @node copyright,,, $BJ8;zNs=hM}(B
! 1166: @subsection @code{copyright}
! 1167: @findex copyright
1.13 takayama 1168:
1169: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1170: @table @t
1.34 ! ohara 1171: @item copyright()
! 1172: :: Risa/Asir $B$N(B copyright $BI=<($rJ8;zNs$H$7$FLa$9(B.
1.13 takayama 1173: @end table
1174:
1175: @table @var
1176: @item return
1.34 ! ohara 1177: $BJ8;zNs(B
1.13 takayama 1178: @end table
1179:
1180: @itemize @bullet
1181: @item
1.34 ! ohara 1182: Risa/Asir $B$N(B copyright $BI=<($rJ8;zNs$H$7$FLa$9(B.
1.13 takayama 1183: @end itemize
1184:
1185: @example
1.34 ! ohara 1186: [1150] copyright();
! 1187: This is Risa/Asir, Version 20040312 (Kobe Distribution).
! 1188: Copyright (C) 1994-2000, all rights reserved, FUJITSU LABORATORIES LIMITED.
! 1189: Copyright 2000-2003, Risa/Asir committers, http://www.openxm.org/.
! 1190: GC 6.2(alpha6) copyright 1988-2003, H-J. Boehm, A. J. Demers, Xerox, SGI, HP.
! 1191: PARI 2.0.17, copyright 1989-1999, C. Batut, K. Belabas, D. Bernardi,
! 1192: H. Cohen and M. Olivier.
1.13 takayama 1193: @end example
1194:
1.34 ! ohara 1195: @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
1.13 takayama 1196: @noindent
1197: ChangeLog
1198: @itemize @bullet
1.34 ! ohara 1199: @item $B$3$N4X?t$O(B texmacs $BMQ$K=q$+$l$?(B (2004-03).
! 1200: @item OpenXM_contrib2/asir2000 $B$N2<$N0J2<$N%U%!%$%k$r$_$h(B. builtin/miscf.c 1.21,
! 1201: parse/glob.c 1.47.
! 1202: @end itemize
! 1203:
! 1204:
! 1205:
! 1206: @comment --- $B"~"~"~"~(B $B4X?t(B string_to_tb, ... $B$N@bL@(B $B"~"~"~"~(B
! 1207: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
! 1208: @node string_to_tb tb_to_string write_to_tb,,, $BJ8;zNs=hM}(B
! 1209: @subsection @code{string_to_tb}, @code{tb_to_string}, @code{write_to_tb}
! 1210: @findex string_to_tb
! 1211: @findex tb_to_string
! 1212: @findex write_to_tb
! 1213:
! 1214: @comment --- $B4X?t$N4JC1$J@bL@(B ---
! 1215: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
! 1216: @table @t
! 1217: @item string_to_tb(@var{s})
! 1218: @itemx tb_to_string(@var{tb})
! 1219: @itemx write_to_tb(@var{s},@var{tb})
! 1220: :: $BJ8;zNs2DJQD9G[Ns7?(B(text buffer)$B$N%G!<%?$N=hM}(B
! 1221: @end table
! 1222:
! 1223: @table @var
! 1224: @item return
! 1225: $BJ8;zNs2DJQD9G[Ns7?(B(string_to_tb), $BJ8;zNs7?(B(tb_to_string)
! 1226: @item s
! 1227: $BJ8;zNs(B
! 1228: @item tb
! 1229: $BJ8;zNs2DJQD9G[Ns7?(B
! 1230: @end table
! 1231:
! 1232: @itemize @bullet
! 1233: @item
! 1234: @code{string_to_tb(@var{s})} $B$O(B, $BJ8;zNs(B @var{s} $B$r$O$8$a$NMWAG$H$9$k(B
! 1235: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H$r@8@.$9$k(B.
! 1236: @item
! 1237: @code{tb_to_string_(@var{tb})} $B$O(B,
! 1238: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H(B @var{tb} $B$+$iDL>o$NJ8;zNs%*%V%8%'%/%H$r@8@.$9$k(B.
! 1239: @item
! 1240: @code{write_to_tb(@var{s},@var{tb})} $B$O(B, $BJ8;zNs(B @var{s} $B$r(B
! 1241: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H(B @var{tb} $B$X=q$-=P$9(B.
! 1242: @item @var{SS} $B$rJ8;zNsJQ?t$H$9$k$H$-(B,
! 1243: @var{SS} += "$BJ8;zNs(B" $B$G(B @var{SS} $B$XJ8;zNs$r=q$-B-$7$F$$$/$3$H$,$G$-$k$,(B,
! 1244: $BL5BL$J%a%b%j$rBgNL$K>CHq$9$k(B.
! 1245: $BBe$j$K4X?t(B @code{write_to_tb} $B$rMQ$$$k$Y$-$G$"$k(B.
! 1246: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H$OJ8;zNs$N2DJQD9$NG[Ns$G$"$j%a%b%j4IM}$KM%$7$$(B
! 1247: $B%G!<%?9=B$$G$"$k(B.
! 1248: @end itemize
! 1249:
! 1250: @example
! 1251: [219] T=string_to_tb("");
! 1252:
! 1253: [220] write_to_tb("Hello",T);
! 1254: 0
! 1255: [221] write_to_tb(" world!",T);
! 1256: 0
! 1257: [222] tb_to_string(T);
! 1258: Hello world!
! 1259: @end example
! 1260:
! 1261:
! 1262: @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
! 1263: @noindent
! 1264: ChangeLog
! 1265: @itemize @bullet
! 1266: @item
! 1267: $B$3$N4X?t$O(B 2004-3 $B$K(B print_tex_form $B$r8zN(2=$9$k$?$a$K=q$+$l$?(B.
! 1268: @item
! 1269: OpenXM_contrib2/asir2000 $B$N2<$N0J2<$N%U%!%$%k$r8+$h(B.
! 1270: io/ox_asir.c 1.52, builtin/strobj.c 1.12--1.13, 1.16,
! 1271: engine/str.c 1.5, parse/quote.c 1.9.
1.13 takayama 1272: @item
1.34 ! ohara 1273: rtostr $B$,(B text buffer $B7?$N%G!<%?$K4X$7$F$*$=$+$C$?(B. $BB.EY$N2~A1$O(B
! 1274: asir2000/io/pexpr_body.c 1.2, asir2000/parse/lex.c 1.32.
1.14 takayama 1275: @end itemize
1276:
1.34 ! ohara 1277:
! 1278: @node set_print_function,,, $BJ8;zNs=hM}(B
! 1279: @subsection @code{set_print_function}
! 1280: @findex set_print_function
1.14 takayama 1281:
1282: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1283: @table @t
1.34 ! ohara 1284: @item set_print_function([@var{fname}])
! 1285: :: $B2hLLI=<(MQ$N4X?t$rEPO?(B
1.14 takayama 1286: @end table
1287:
1288: @table @var
1289: @item return
1.34 ! ohara 1290: $B@0?t(B
! 1291: @item fname
! 1292: $BJ8;zNs(B
1.14 takayama 1293: @end table
1294:
1295: @itemize @bullet
1.34 ! ohara 1296: @item
! 1297: @code{set_print_function} $B$O(B @code{fname(F)} $B$rDL>o$N2hLLI=<(4X?t$NBe$o$j$K$h$V(B.
! 1298: @code $B0z?t$,$J$$>l9g$O2hLLI=<(4X?t$r%G%U%)!<%k%H$XLa$9(B.
! 1299: @code Asir-contrib $B$O$3$N4X?t$rMQ$$$F=PNO4X?t$r(B Asir-contrib $BMQ$KJQ99$7$F$$$k(B.
1.14 takayama 1300: @end itemize
1301:
1302: @example
1.34 ! ohara 1303: [219] def my_output(F) @{
! 1304: print("Out: ",0); print(rtostr(F));
! 1305: @}
! 1306: [220] set_print_function("my_output");
! 1307: Out: 0
! 1308: [221] 1+2;
! 1309: Out: 3
1.14 takayama 1310: @end example
1311:
1312: @table @t
1313: @item $B;2>H(B
1.34 ! ohara 1314: @ref{rtostr}
1.14 takayama 1315: @end table
1316:
1317: @noindent
1318: ChangeLog
1319: @itemize @bullet
1.34 ! ohara 1320: @item $B$3$N4X?t$O(B 2001-9-4 $B$K(B asir-contrib $B$N$?$a$KF3F~$5$l$?(B.
! 1321: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/print.c 1.11 $B$G$"$k(B.
1.12 takayama 1322: @end itemize
1.13 takayama 1323:
1.15 takayama 1324:
1.34 ! ohara 1325: @node sprintf,,, $BJ8;zNs=hM}(B
1.28 ohara 1326: @subsection @code{printf}, @code{fprintf}, @code{sprintf}
1.15 takayama 1327: @findex sprintf
1328:
1329: @table @t
1.27 ohara 1330: @item printf(@var{format}[,@var{args}])
1.28 ohara 1331: @item fprintf(@var{fd},@var{format}[,@var{args}])
1.15 takayama 1332: @item sprintf(@var{format}[,@var{args}])
1333: :: C $B$K;w$?%W%j%s%H4X?t(B
1334: @end table
1335:
1336: @table @var
1337: @item return
1.28 ohara 1338: $B@0?t(B(printf,fprintf), $BJ8;zNs(B(sprintf)
1.15 takayama 1339: @item format
1340: $BJ8;zNs(B
1.28 ohara 1341: @item fd
1342: $BHsIi@0?t(B($B%U%!%$%k5-=R;R(B)
1.15 takayama 1343: @item args
1344: $B%*%V%8%'%/%H(B
1345: @end table
1346:
1347: @itemize @bullet
1348: @item
1.27 ohara 1349: @code{printf} $B$O=q<0J8;zNs(B @var{format } $B$K$7$?$,$$(B, $B%*%V%8%'%/%H(B @var{args} $B$rI8=`=PNO$K=q$-=P$9(B.
1.15 takayama 1350: @item
1.28 ohara 1351: @code{fprintf} $B$O7k2L$r(B, $B%U%!%$%k5-=R;R(B @var{fd} $B$N;X$9%U%!%$%k$K=q$-=P$9(B.
1352: @item
1.27 ohara 1353: @code{sprintf} $B$O7k2L$rJ8;zNs$GJV$7(B, $BI8=`=PNO$K$O=q$-=P$5$J$$(B.
1354: @item
1355: $B=q<0J8;zNs$NCf$G(B @code{%a} (any) $B$,MxMQ2DG=(B.
1356: @var{args} $B$N8D?t$O=q<0J8;zNs$NCf$N(B @code{%a} $B$N8D?t$KEy$7$/$9$k$3$H(B.
1.28 ohara 1357: @item
1358: $B%U%!%$%k5-=R;R$O(B, @code{open_file} $B4X?t$rMQ$$$FF@$k$3$H(B.
1.15 takayama 1359: @end itemize
1360:
1361: @example
1.27 ohara 1362: [0] printf("%a: rat = %a\n",10,x^2-1)$
1363: 10: rat = x^2-1
1364: [1] S=sprintf("%a: rat = %a",20,x^2-1)$
1365: [2] S;
1366: 20: rat = x^2-1
1.28 ohara 1367: [3] Fd=open_file("hoge.txt","w");
1368: 0
1369: [4] fprintf(Fd,"Poly=%a\n",(x-1)^3)$
1370: [5] close_file(Fd)$
1371: [6] quit;
1372:
1373: $ cat hoge.txt
1374: Poly=x^3-3*x^2+3*x-1
1.15 takayama 1375: @end example
1376:
1377: @table @t
1378: @item $B;2>H(B
1.28 ohara 1379: @ref{rtostr},@ref{open_file},@ref{close_file}
1.15 takayama 1380: @end table
1381:
1382: @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
1383: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1384: @noindent
1385: ChangeLog
1386: @itemize @bullet
1.34 ! ohara 1387: @item
1.27 ohara 1388: $B4X?t(B sprintf$B$O(B 2004-7-13 $B$K%3%_%C%H$5$l$?(B.
1.15 takayama 1389: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/strobj (1.50) $B$G$"$k(B.
1.34 ! ohara 1390: @item
1.27 ohara 1391: $B4X?t(B printf$B$O(B 2007-11-8 $B$K%3%_%C%H$5$l$?(B.
1392: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/print.c (1.23) $B$G$"$k(B.
1.34 ! ohara 1393: @item
1.28 ohara 1394: $B4X?t(B fprintf$B$O(B 2008-11-18 $B$K%3%_%C%H$5$l$?(B.
1395: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/file.c (1.25) $B$G$"$k(B.
1.34 ! ohara 1396: @item
1.15 takayama 1397: @code{%a} $B$O(B Maple $B$N(B sprintf $B$N??;w$+(B.
1398: @end itemize
1399:
1400:
1.34 ! ohara 1401: @node $B%0%l%V%J!<4pDl(B,,, $B<B83E*;EMM$N4X?t(B
! 1402: @section $B%0%l%V%J!<4pDl(B
! 1403:
! 1404: @comment --- $B"~"~"~"~(B $B4X?t(B dp_gr_main $B$N@bL@(B $B"~"~"~"~(B
! 1405: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
! 1406: @node dp_gr_main,,, $B%0%l%V%J!<4pDl(B
! 1407: @subsection @code{dp_gr_main}
! 1408: @findex dp_gr_main
1.15 takayama 1409:
1.34 ! ohara 1410: @comment --- $B4X?t$N4JC1$J@bL@(B ---
! 1411: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.15 takayama 1412: @table @t
1.34 ! ohara 1413: @item dp_gr_main(@var{f} | v=@var{vv}, order=@var{oo}, homo=@var{n}, matrix=@var{m}, block=@var{b}, sugarweight=@var{sw})
! 1414: :: dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9(B.
1.15 takayama 1415: @end table
1416:
1417: @table @var
1418: @item return
1.34 ! ohara 1419: $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)
1.15 takayama 1420: @item f
1.34 ! ohara 1421: $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)
! 1422: @item vv
! 1423: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
! 1424: @item oo
! 1425: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
! 1426: @item n
! 1427: 0 $B$+(B1 (homogenization $B$r$9$k$+(B)
! 1428: @item m
! 1429: $B=g=x$r(B matrix $B$GI=8=$9$k>l9g(B (cf. dp_ord).
! 1430: @item b
! 1431: ???
! 1432: @item sw
! 1433: Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. $BA4$F$NMWAG$OHsIi(B.
1.15 takayama 1434: @end table
1435:
1436: @itemize @bullet
1437: @item
1.34 ! ohara 1438: @code{dp_gr_main(@var{f})} $B$O(B, @var{f} $B$N%0%l%V%J4pDl$r7W;;$9$k(B.
! 1439: $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
! 1440: $B7OE}$@$C$F$$$J$+$C$?(B.
! 1441: dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B.
! 1442: @comment ~taka/this03/misc-2003/A2/dp
! 1443: @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.
! 1444: @example
! 1445: order : '[' orderElement @{ ',' orderElement @} ']'
! 1446: orderElement : weightVec | builtinOrder
! 1447: weightVec : '[' weightElement @{ ',' weightElement @} ']'
! 1448: builtiniOrder : '[' orderName ',' setOfVariables ']'
! 1449: weightElement : NUMBER | setOfVariables ',' NUMBER
! 1450: setOfVariables: V | range(V,V)
! 1451: orderName : @@grlex | @@glex | @@lex
! 1452: @end example
! 1453: $B$3$3$G(B @code{V} $B$O(B $BJQ?tL>(B, @code{NUMBER} $B$O@0?t$r$"$o$i$9(B.
! 1454: $BNc(B1: @code{v=[x,y,z,u,v], order=[[x,10,y,5,z,1],[@@grlex,range(x,v)]]}
! 1455: $B$O(B @code{x},@code{y},@code{z} $B$,$=$l$>$l(B weight 10, 5, 1 $B$r$b$D(B
! 1456: $B=g=x$GHf3S$7$?$"$H(B, @code{[x,y,z,u,v]} $B$K$D$$$F$N(B
! 1457: graded reverse lexicographic order $B$r(B tie-breaker $B$H$7$FMQ$$$k$3$H$r0UL#$9$k(B.
! 1458: $B;29M=q(B: B.Sturmfels: Gr\"obner Bases and Convex Polytopes (1995).
! 1459: M.Saito, B.Sturmfels, N.Takayama:
! 1460: Gr\"obner Deformations of Hypergeometric Differential Equations (2000).
! 1461: @item
! 1462: $B=g=xMWAG(B (orderElement) $B$N;XDjJ}K!$O(B
! 1463: (1) $BJQ?tL>$^$?$O(B range$B$G;XDj$5$l$?JQ?t$N=89g$H=E$_$NCM$N7+$jJV$7(B
! 1464: (2) $B=E$_$NCM$rJQ?t%j%9%H$N=gHV$KJB$Y$kJ}K!(B
! 1465: (3) $BJQ?tL>$^$?$O(B range$B$G;XDj$5$l$?JQ?t$N=89g$H=g=xL>$NAH(B
! 1466: $B$N;0DL$j$N4pACE*J}K!$,$"$k(B.
! 1467: $B;w$?;XDjJ}K!$,(B Macaulay, Singular, CoCoA, Kan/sm1 $BEy$N4DO@%7%9%F%`$G(B
! 1468: $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
! 1469: $B$5$i$K2~NI$r2C$($?$b$N$G=@Fp@-$,9b$$(B.
! 1470: @item
! 1471: order $B$N(B tie-breaker $B$O(B grlex $B$,%G%U%)!<%k%H(B.
1.15 takayama 1472: @item
1.34 ! ohara 1473: $BJ,;6I=8=B?9`<0$r0z?t$H$7$?$H$-$O7k2L$bJ,;6I=8=B?9`<0$H$7$FLa$k(B.
! 1474: 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.15 takayama 1475: @item
1.34 ! ohara 1476: $B%*%W%7%g%s$NCM$O(B option_list $B%-!<%o!<%I$rMQ$$$F%j%9%H$GM?$($F$b$h$$(B.
! 1477: $B2<$NNc$r;2>H(B.
1.15 takayama 1478: @end itemize
1479:
1480: @example
1.34 ! ohara 1481: [218] load("cyclic");
! 1482: [219] V=vars(cyclic(4));
! 1483: [c0,c1,c2,c3]
! 1484: [220]dp_gr_main(cyclic(4) | v=V, order=[[c0,10,c1,1],[c2,5],[@@grlex,range(c0,c3)]]);
! 1485: [ 10 1 0 0 ]
! 1486: [ 0 0 5 0 ]
! 1487: [ R R R R ]
! 1488: [(-c3^6+c3^2)*c2^2+c3^4-1,c3^2*c2^3+c3^3*c2^2-c2-c3,
! 1489: (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,
! 1490: c0+c1+c2+c3]
1.15 takayama 1491:
1.34 ! ohara 1492: [1151] F=map(dp_ptod,katsura(4), vars(katsura(4)));
! 1493: [(1)*<<1,0,0,0,0>>+(2)*<<0,1,0,0,0>>+ ... ]
! 1494: [1152] dp_gr_main(F | order=[[range(x0,x3),1]]);
! 1495: [ 1 1 1 1 0 ]
! 1496: [ R R R R R ]
! 1497: [(47774098944)*<<0,0,0,0,13>>+ ... ]
1.15 takayama 1498:
1.34 ! ohara 1499: [1153] Opt=[["v",[x,y]], ["order",[[x,5,y,1]]]];
! 1500: [[v,[x,y]],[order,[[x,5,y,1]]]]
! 1501: [1154] dp_gr_main([x^2+y^2-1,x*y-1] | option_list=Opt);
! 1502: [ 5 1 ]
! 1503: [ R R ]
! 1504: [-y^4+y^2-1,x+y^3-y]
! 1505: @end example
1.15 takayama 1506:
1.34 ! ohara 1507: @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
! 1508: @noindent
! 1509: ChangeLog
! 1510: @itemize @bullet
! 1511: @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.
! 1512: @item
! 1513: @code{setOfVariables}$B$NI=8=$N$?$a$K(B range $B%*%V%8%'%/%H$,F3F~$5$l$?(B.
! 1514: @item
! 1515: $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
! 1516: $B7OE}$@$C$F$$$J$+$C$?(B.
! 1517: dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B.
! 1518: @item
! 1519: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
! 1520: builtin/gr.c 1.56--1.57,
! 1521: builtin/dp-supp.c 1.27--1.31 (create_composite_order_spec),
! 1522: builtin/dp.c 1.46--1.48 (parse_gr_option),
! 1523: engine/Fgfs.c 1.20,
! 1524: engine/dist.c 1.27--1.28
! 1525: engine/nd.c 1.89,
! 1526: include/ca.h 1.42--1.43,
! 1527: io/pexpr.c 1.28,
! 1528: io/sexpr.c 1.26,
! 1529: parse/arith.c 1.11,
! 1530: parse/glob.c 1.44-1.45,
! 1531: parse/lex.c 1.29,
! 1532: parse/parse.h 1.23--1.26
! 1533: @item
! 1534: Todo: return $B%-!<%o!<%I$GLa$jCM$N%G!<%?$r(B quote $B$N%j%9%H$K$G$-$k$h$&$K(B.
! 1535: attribute, ring $B9=B$BN(B.
! 1536: @end itemize
! 1537:
! 1538: @comment --- $B"~"~"~"~(B $B4X?t(B dp_gr_main $B$N@bL@(B $B"~"~"~"~(B
! 1539: @node dp_weyl_gr_main,,, $B%0%l%V%J!<4pDl(B
! 1540: @subsection @code{dp_weyl_gr_main}
! 1541: @findex dp_weyl_gr_main
! 1542:
! 1543: @comment --- $B4X?t$N4JC1$J@bL@(B ---
! 1544: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
! 1545: @table @t
! 1546: @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})
! 1547: :: dp_weyl_gr_main $B$N?7$7$$%$%s%?%U%'!<%9(B. dp_gr_main $B$HF1$87A<0$G$"$k(B.
! 1548: @end table
1.15 takayama 1549:
1.34 ! ohara 1550: @table @var
! 1551: @item return
! 1552: $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)
! 1553: @item f
! 1554: $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)
! 1555: @item vv
! 1556: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
! 1557: @item oo
! 1558: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
! 1559: @item n
! 1560: 0 $B$+(B1 (homogenization $B$r$9$k$+(B). [$B%F%9%H$^$@(B]
! 1561: @item m
! 1562: $B=g=x$r(B matrix $B$GI=8=$9$k>l9g(B (cf. dp_ord). [$B%F%9%H$^$@(B]
! 1563: @item b
! 1564: ???
! 1565: @item sw
! 1566: Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. $BA4$F$NMWAG$OHsIi(B. [$B%F%9%H$^$@(B]
! 1567: @end table
1.15 takayama 1568:
1.34 ! ohara 1569: @itemize @bullet
! 1570: @item
! 1571: @code{dp_weyl_gr_main(@var{f})} $B$O(B, @var{f} $B$N%0%l%V%J4pDl$r7W;;$9$k(B.
! 1572: $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
! 1573: $B7OE}$@$C$F$$$J$+$C$?(B.
! 1574: dp_weyl_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B.
! 1575: $B;XDjJ}K!$K$D$$$F$O(B dp_gr_main $B$N%^%K%e%"%k$r;2>H(B.
! 1576: @item
! 1577: $BJ,;6I=8=B?9`<0$N3F%b%N%_%"%k$ND9$5$,6v?t$N$H$-$O%o%$%kBe?t(B
! 1578: K[x_1, ..., x_n, d_1, ..., d_n]
! 1579: $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
! 1580: 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.
! 1581: $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.
! 1582: @item
! 1583: $BJ,;6I=8=B?9`<0$N3F%b%N%_%"%k$ND9$5$,4q?t$N$H$-$OF1<!2=%o%$%kBe?t(B
! 1584: K[x_1, ..., x_n, d_1, ..., d_n, h]
! 1585: $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
! 1586: d_i x_i = x_i d_i + h^2
! 1587: $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.
! 1588: $B>\$7$/$O(B dp_gr_main $B$G;2>H$7$?(B Saito, Sturmfels, Takayama $B$N652J=q$r$_$h(B.
! 1589: @end itemize
1.15 takayama 1590:
1591: @example
1.34 ! ohara 1592: [1220] F=sm1.gkz([ [[1,1,1,1],[0,1,3,4]], [0,0]]); /* Command in asir-contrib*/
! 1593: [[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]]
! 1594: [1221] V=[x1,x2,x3,x4,dx1,dx2,dx3,dx4]$
! 1595: [1222] dp_weyl_gr_main(F[0] | v=V, order=[[dx1,1,dx2,1,dx3,1,dx4,1]]);
! 1596: ...
! 1597: [1238] FF=map(dp_ptod,F[0],V);
! 1598: [(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]
! 1599:
! 1600: [1244] FF=map(dp_ptod,F[0],V);
! 1601: [(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>>]
! 1602:
! 1603: dp_weyl_gr_main(FF | v=V, order=[[0,0,0,0,1,1,1,1]]);
! 1604:
! 1605: [1246] dp_weyl_gr_main(FF | v=V, order=[[dx1,1,dx2,1,dx3,1,dx4,1]]);
! 1606: [ 0 0 0 0 1 1 1 1 ]
! 1607: [ R R R R R R R R ]
! 1608: ...
! 1609:
1.15 takayama 1610: @end example
1611:
1.34 ! ohara 1612: @table @t
! 1613: @item $B;2>H(B
! 1614: @ref{dp_gr_main}
! 1615: @end table
! 1616:
! 1617: @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
! 1618: @noindent
! 1619: ChangeLog
! 1620: @itemize @bullet
! 1621: @item dp_gr_main $B$N%$%s%?%U%'!<%9$,(B dp_weyl_gr_main $B$X$bF3F~$5$l$?(B.
! 1622: @item
! 1623: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
! 1624: builtin/dp-supp.c 1.32--1.33
! 1625: builtin/dp.c 1.49--1.50
! 1626: @end itemize
! 1627:
! 1628: @comment --- $B"~"~"~"~(B $B4X?t(B dp_initial_term $B$N@bL@(B $B"~"~"~"~(B
! 1629: @node dp_initial_term,,, $B%0%l%V%J!<4pDl(B
! 1630: @subsection @code{dp_initial_term}
! 1631: @findex dp_initial_term
! 1632:
! 1633: @comment --- $B4X?t$N4JC1$J@bL@(B ---
! 1634: @table @t
! 1635: @item dp_initial_term(@var{f} | v=@var{vv}, order=@var{oo})
! 1636: :: dp_initial_term $B$OM?$($i$l$?(B weight $B$KBP$9$k@hF,9`$NOB$rLa$9(B.
! 1637: @end table
! 1638:
! 1639: @table @var
! 1640: @item return
! 1641: $BJ,;6I=8=B?9`<0$^$?$OJ,;6I=8=B?9`<0$N%j%9%H(B.
! 1642: @item f
! 1643: $BJ,;6I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B.
! 1644: @item vv
! 1645: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
! 1646: @item oo
! 1647: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
! 1648: @end table
! 1649:
! 1650: @itemize @bullet
! 1651: @item
! 1652: dp_initial_term $B$OM?$($i$l$?(B weight w $B$KBP$9$k@hF,9`$NOB$rLa$9(B.
! 1653: $B$3$l$OB?$/$N652J=q$G(B @tex ${\rm in}_w(f)$ @end tex
! 1654: $B$H=q$+$l$F$$$k(B.
! 1655: @item
! 1656: $B=g=x$rI=$9%j%9%H$O(B dp_gr_main $B$GDj5A$7$?J8K!$K=>$&(B.
! 1657: $B$3$N%j%9%H$N@hF,$,(B weight vector $B$GL5$$>l9g$O%(%i!<$H$J$k(B.
! 1658: $B$?$H$($P(B order=[[@@lex,...]] $B$O%(%i!<$H$J$k(B.
! 1659: @item
! 1660: $B7k2L$OM?$($i$l$?=g=x$K4X$7$F%=!<%H$5$l$F$k$o$1$G$O$J$$(B.
! 1661: @end itemize
! 1662:
1.19 takayama 1663: @example
1.34 ! ohara 1664: [1220] F=<<2,0,0>>+<<1,1,0>>+<<0,0,1>>;
! 1665: (1)*<<2,0,0>>+(1)*<<1,1,0>>+(1)*<<0,0,1>>
! 1666: [1220] dp_initial_term(F | order=[[1,1,1]]);
! 1667: [ 1 1 1 ]
! 1668: [ R R R ]
! 1669: (1)*<<2,0,0>>+(1)*<<1,1,0>>
! 1670: [1221] dp_initial_term(F | v=[x,y,z], order=[[x,1]]);
! 1671: [ 1 0 0 ]
! 1672: [ R R R ]
! 1673: (1)*<<2,0,0>>
1.19 takayama 1674: @end example
1675:
1.15 takayama 1676: @table @t
1677: @item $B;2>H(B
1.34 ! ohara 1678: @ref{dp_gr_main}, @ref{dp_weyl_gr_main}, @ref{dp_order}, @ref{dp_hm}
1.15 takayama 1679: @end table
1680:
1.34 ! ohara 1681: @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
1.15 takayama 1682: @noindent
1683: ChangeLog
1684: @itemize @bullet
1.34 ! ohara 1685: @item
! 1686: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
! 1687: builtin/dp-supp.c 1.32
! 1688: builtin/dp.c 1.49
1.17 takayama 1689: @end itemize
1690:
1.34 ! ohara 1691: @comment --- $B"~"~"~"~(B $B4X?t(B dp_order $B$N@bL@(B $B"~"~"~"~(B
! 1692: @node dp_order,,, $B%0%l%V%J!<4pDl(B
! 1693: @subsection @code{dp_order}
! 1694: @findex dp_order
1.17 takayama 1695:
1696: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1697: @table @t
1.34 ! ohara 1698: @item dp_order(@var{f} | v=@var{vv}, order=@var{oo})
! 1699: :: dp_order $B$OM?$($i$l$?(B weight $B$KBP$9$k<!?t$N:GBgCM$rLa$9(B.
1.17 takayama 1700: @end table
1701:
1702: @table @var
1703: @item return
1.34 ! ohara 1704: $B?t$+?t$N%j%9%H(B
! 1705: @item f
! 1706: $BJ,;6I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B.
! 1707: @item vv
! 1708: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
! 1709: @item oo
! 1710: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
1.17 takayama 1711: @end table
1712:
1713: @itemize @bullet
1714: @item
1.34 ! ohara 1715: $B=g=x$rI=$9%j%9%H$O(B dp_gr_main $B$GDj5A$7$?J8K!$K=>$&(B.
! 1716: $B$3$N%j%9%H$N@hF,$,(B weight vector $B$GL5$$>l9g$O%(%i!<$H$J$k(B.
! 1717: $B$?$H$($P(B order=[[@@lex,...]] $B$O%(%i!<$H$J$k(B.
! 1718: @item
! 1719: dp_order $B$OM?$($i$l$?(B weight w $B$KBP$9$k<!?t$N:GBgCM$rLa$9(B.
! 1720: $B$3$l$r(B @tex ${\rm ord}_w(f)$ @end tex
! 1721: $B$H=q$/O@J8$d652J=q$b$"$k(B.
1.17 takayama 1722: @item
1.34 ! ohara 1723: $B0z?t$,%j%9%H$N>l9g3FMWAG$N<!?t$,7W;;$5$l$k(B.
1.17 takayama 1724: @end itemize
1725:
1726: @example
1.34 ! ohara 1727: [1220] F=<<2,0,0>>+<<1,1,0>>+<<0,0,1>>;
! 1728: (1)*<<2,0,0>>+(1)*<<1,1,0>>+(1)*<<0,0,1>>
! 1729: [1222] dp_order(F | order=[[1,1,1]]);
! 1730: [ 1 1 1 ]
! 1731: [ R R R ]
! 1732: 2
! 1733: [1223] dp_order(F | v=[x,y,z], order=[[x,1]]);
! 1734: [ 1 0 0 ]
! 1735: [ R R R ]
1.17 takayama 1736: @end example
1737:
1738: @table @t
1739: @item $B;2>H(B
1.34 ! ohara 1740: @ref{dp_gr_main}, @ref{dp_weyl_gr_main}, @ref{dp_initial_term}, @ref{dp_hm}
1.17 takayama 1741: @end table
1742:
1.34 ! ohara 1743: @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
1.17 takayama 1744: @noindent
1745: ChangeLog
1746: @itemize @bullet
1747: @item
1.34 ! ohara 1748: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
! 1749: builtin/dp-supp.c 1.32
! 1750: builtin/dp.c 1.49
1.15 takayama 1751: @end itemize
1.21 takayama 1752:
1753:
1.34 ! ohara 1754: @node nd_gr nd_gr_trace nd_weyl_gr nd_weyl_gr_trace (module),,, $B%0%l%V%J!<4pDl(B
! 1755: @subsection @code{nd_gr}, @code{nd_gr_trace} ($B2C72(B)
! 1756: @findex nd_gr (module)
! 1757: @findex nd_gr_trace (module)
! 1758: @findex nd_weyl_gr (module)
! 1759: @findex nd_weyl_gr_trace (module)
1.21 takayama 1760:
1.34 ! ohara 1761: @comment --- nd_gr, nd_gr_trace $B$K$*$1$k2C72$N%0%l%V%J!<4pDl7W;;(B ---
1.21 takayama 1762: @table @t
1.34 ! ohara 1763: @item nd_gr(@var{gen},@var{vars},@var{char},@var{ord})
! 1764: @itemx nd_gr_trace(@var{gen},@var{vars},@var{homo},@var{char},@var{ord})
! 1765: @item nd_weyl_gr(@var{gen},@var{vars},@var{char},@var{ord})
! 1766: @itemx nd_weyl_gr_trace(@var{gen},@var{vars},@var{homo},@var{char},@var{ord})
! 1767: :: $BItJ,2C72$N%0%l%V%J!<4pDl$N7W;;(B
1.21 takayama 1768: @end table
1769:
1.34 ! ohara 1770: @table @var
! 1771: @item gen
! 1772: $B%j%9%H$N%j%9%H(B
! 1773: @item ord
! 1774: @var{[IsPOT,Ord]} $B$J$k%j%9%H(B
! 1775: @item return
! 1776: $B%j%9%H$N%j%9%H(B
! 1777: @end table
1.21 takayama 1778:
1779: @itemize @bullet
1.34 ! ohara 1780: @item $BB?9`<04D$"$k$$$O%o%$%kBe?t>e$N<+M32C72$NItJ,2C72$N%0%l%V%J!<4pDl(B
! 1781: $B$r7W;;$9$k(B. $B7k2L$O%j%9%H$N%j%9%H$G$"$k(B. $B3FMWAG%j%9%H$O(B, $B<+M32C72$N(B
! 1782: $B85$G$"$k%Y%/%H%k$H$_$J$9(B.
! 1783: @item @var{ord} $B$H$7$F(B @var{[IsPOT,Ord]} $B$H$$$&(B2$BMWAG%j%9%H$,;XDj$5$l$?(B
! 1784: $B>l9g(B, $B2C72$N%0%l%V%J!<4pDl7W;;$r<B9T$9$k(B. $B$3$N>l9g(B, @var{gen} $B$O(B, $BB?9`<0(B
! 1785: $B$N%j%9%H$N%j%9%H$H$7$FM?$($kI,MW$,$"$k(B.
! 1786: @item @var{IsPOT} $B$,(B 1 $B$N>l9g(B, POT (position over term), 0 $B$N(B
! 1787: $B>l9g(B TOP (term over position) $B$GHf3S$9$k(B. $B4pAC4D$G$N9`Hf3S$O(B @var{Ord}
! 1788: $B$G9T$&(B.
! 1789: @item $B@bL@$5$l$F$$$J$$0z?t$O(B, $B%$%G%"%k$N>l9g$N2r@b$r;2>H$N$3$H(B.
1.21 takayama 1790: @end itemize
1791:
1.34 ! ohara 1792: @example
! 1793: [0] Gen=[[x,y,z],[y^2+x,x^2,z],[y^2,z^3+x,x+z]];
! 1794: [[x,y,z],[x+y^2,x^2,z],[y^2,x+z^3,x+z]]
! 1795: [1] nd_gr(Gen,[x,y,z],0,[0,0]);
! 1796: [[x,y,z],[y^2,x^2-y,0],[y^2,x+z^3,x+z],[y^3+z^3*y^2,y^3*x-y^3,
! 1797: -x^3-z*x^2+(z*y^2+y)*x-z*y^2+z*y],[0,0,x^4+z*x^3+(-z*y^2-y)*x^2
! 1798: +(-y^3+z*y^2-z*y)*x+z^4*y^2]]
! 1799: @end example
! 1800:
! 1801: @table @t
! 1802: @item $B;2>H(B
! 1803: @ref{nd_gr}, @ref{nd_gr_trace}
! 1804: @end table
! 1805:
! 1806: @node nd_gr nd_gr_trace nd_weyl_gr nd_weyl_gr_trace (option),,, $B%0%l%V%J!<4pDl(B
! 1807: @subsection @code{nd_gr}, @code{nd_gr_trace} (option)
! 1808: @findex nd_gr (option)
! 1809: @findex nd_gr_trace (option)
! 1810: @findex nd_weyl_gr (option)
! 1811: @findex nd_weyl_gr_trace (option)
! 1812:
! 1813: @comment --- nd_gr, nd_gr_trace $B$N%*%W%7%g%s(B ---
! 1814:
! 1815: @table @t
! 1816: @item nd_gr(@var{...}[|@var{opt},@var{opt},@dots{}])
! 1817: @itemx nd_gr_trace(@var{...}[|@var{opt},@var{opt},@dots{}])
! 1818: @itemx nd_weyl_gr(@var{...}[|@var{opt},@var{opt},@dots{}])
! 1819: @itemx nd_weyl_gr_trace(@var{...}[|@var{opt},@var{opt},@dots{}])
! 1820: :: $B%0%l%V%J!<4pDl7W;;$K4X$9$k<o!9$N%*%W%7%g%s$N@bL@(B
! 1821: @end table
! 1822:
! 1823: @table @var
! 1824: @item opt
! 1825: @var{key=value} $B$J$k%*%W%7%g%s@_Dj(B
! 1826: @item return
! 1827: $B%*%W%7%g%s$K$h$j0[$J$k(B
! 1828: @end table
! 1829:
! 1830: @itemize @bullet
! 1831: @item $B%0%l%V%J!<4pDl7W;;$r%*%W%7%g%s$K$h$j@)8f$9$k(B.
! 1832: @item $B8=>u$G$O<!$N(B 3 $B$D$N%*%W%7%g%s$r<u$1IU$1$k(B.
! 1833:
! 1834: @table @var
! 1835: @item gentrace
! 1836: @var{value} $B$,(B 0 $B$G$J$$$H$-(B, $B%0%l%V%J!<4pDl$N7W;;7P2a>pJs$r=PNO$9$k(B.
! 1837: @item gentsyz
! 1838: @var{value} $B$,(B 0 $B$G$J$$$H$-(B, $B7W;;$5$l$?%0%l%V%J!<4pDl$KBP$9$k(B syzygy $B$N@8@.7O$r=PNO$9$k(B.
! 1839: @item nora
! 1840: @var{value} $B$,(B 0 $B$G$J$$$H$-(B, $B:G=*%9%F%C%W$GAj8_4JLs$r9T$o$J$$(B.
! 1841: @end table
! 1842:
! 1843: @item @var{gentrace} $B$,;XDj$5$l$?>l9g(B, $B=PNO$O(B,
! 1844: @var{[GB,Homo,Trace,IntRed,Ind,InputRed,SpairTrace]} $B$J$k%j%9%H$G$"$k(B. $B3FMWAG$N0UL#$O(B
! 1845: $B<!$NDL$j$G$"$k(B.
! 1846: @table @var
! 1847: @item GB
! 1848: $B%0%l%V%J!<4pDl(B
! 1849: @item Homo
! 1850: $BCf4V4pDl$,@F<!2=$5$l$F$$$k>l9g(B 1, $B$=$&$G$J$$>l9g(B 0.
! 1851: @item Trace
! 1852: $BA4Cf4V4pDl$KBP$9$k7W;;7P2a>pJs(B
! 1853: @item IntRed
! 1854: $BAj8_4JLs$KBP$9$k7W;;7P2a>pJs(B
! 1855: @item Ind
! 1856: $B4JLs%0%l%V%J!<4pDl$N3FMWAG$N(B, $BA4Cf4V4pDl$N$K$*$1$k%$%s%G%C%/%9(B
! 1857: @item InputRed
! 1858: $B3FF~NOB?9`<0$r%0%l%V%J!<4pDl$G4JLs$7$F>jM>(B 0 $B$rF@$k$^$G$N7W;;7P2a>pJs(B
! 1859: (@var{gensyz} $B$,;XDj$5$l$?>l9g(B)
! 1860: @item SpairTrace
! 1861: $B4JLs%0%l%V%J!<4pDl$KBP$9$k(B S $BB?9`<0$r4JLs$7$F>jM>(B 0 $B$rF@$k$^$G$N7W;;7P2a>pJs(B
! 1862: (syzygy $B2C72$N@8@.7O$NMWAG$N$_(B; @var{gensyz} $B$,;XDj$5$l$?>l9g(B)
! 1863: @end table
! 1864: @item $B>\:Y$O(B, $BF~NOB?9`<0=89g$H%0%l%V%J!<4pDl$NAj8_JQ499TNs(B, $B$*$h$S(B syzygy $B7W;;(B
! 1865: $B4X?t$N9`$G@bL@$9$kM=Dj(B.
! 1866: @end itemize
1.21 takayama 1867:
1868: @example
1.34 ! ohara 1869: [0] C=[c3*c2*c1*c0-1,((c2+c3)*c1+c3*c2)*c0+c3*c2*c1,...]
! 1870: [1] D=nd_gr_trace(C,[c0,c1,c2,c3,c4],0,1,0|gentrace=1,gensyz=1)$
! 1871: [2] D[0];
! 1872: [c0+c1+c2+c3,-c1^2-2*c3*c1-c3^2,...]
! 1873: [3] D[2];
! 1874: [[[0,0,1],[1,1,1],[2,2,1],[3,3,1]],[4,[[1,2,(1)*<<0,0,0,0>>,1],...]
! 1875: [4] D[6];
! 1876: [[-1,[[1,0,(1)*<<0,0,2,4>>,1],[1,6,(-1)*<<1,0,0,0>>,1],...]
! 1877: @end example
1.21 takayama 1878:
1.34 ! ohara 1879: @table @t
! 1880: @item $B;2>H(B
! 1881: @ref{nd_gr}, @ref{nd_gr_trace}
! 1882: @end table
1.21 takayama 1883:
1884:
1.34 ! ohara 1885: @node $B%7%9%F%`(B,,, $B<B83E*;EMM$N4X?t(B
! 1886: @section $B%7%9%F%`(B
1.21 takayama 1887:
1.34 ! ohara 1888: @comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B
! 1889: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
! 1890: @node asir-install.sh,,, $B%7%9%F%`(B
! 1891: @subsection @code{asir-port.sh}, @code{asir-install.sh}
! 1892: @findex asir-port.sh
! 1893: @findex asir-install.sh
1.23 takayama 1894:
1895: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1896: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1897: @table @t
1.34 ! ohara 1898: @item asir-install.sh
! 1899: @itemx asir-port.sh
! 1900: :: $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
1.23 takayama 1901: @end table
1902:
1903:
1904: @itemize @bullet
1.34 ! ohara 1905: @item
! 1906: asir-port.sh $B$O(B knoppix $B@lMQ$G$"$k(B.
! 1907: $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
! 1908: ftp.math.kobe-u.ac.jp $B$h$j%@%&%s%m!<%I$7$F(B
! 1909: /home/knoppix/.asir-tmp $B$X%;!<%V$7$F(B, $B<B9T$9$k(B.
! 1910: .asirrc $B$*$h$S(B .TeXmacs/plugins/ox/progs/init-ox.scm $B$b%@%&%s%m!<%I$9$k(B.
! 1911: @item
! 1912: asir-install.sh $B$O(B Debian GNU Linux / openxm-binary*.deb $B@lMQ$G$"$k(B.
! 1913: asir-install.sh $B$O(B asir $B$r%@%&%s%m!<%I$7$F(B /usr/local/OpenXM/bin $B$*$h$S(B
! 1914: /usr/local/OpenXM/lib/asir $B$X%$%s%9%H!<%k$9$k(B.
1.23 takayama 1915: @end itemize
1916:
1917:
1918: @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
1919: @noindent
1920: ChangeLog
1921: @itemize @bullet
1.34 ! ohara 1922: @item
! 1923: $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.
! 1924: @item
! 1925: knoppix/math $B$OJ!2,Bg3X$N_@ED$5$s$,Cf?4$H$J$j3+H/$5$l$F$$$k(B.
! 1926: @item
! 1927: OpenXM/misc/packages/Linux/Debian $B$N2<$NA4$F$N%U%!%$%k(B (2004-2-22 $B$+$i(B
! 1928: 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.)
! 1929: OpenXM/src/asir-port $B$N2<$N<!$N3F%U%!%$%k(B.
! 1930: Makefile 1.1--1.8, asir-install.sh 1.1--1.2, asir-port.sh 1.1--1.6.
1.23 takayama 1931: @end itemize
1932:
1933:
1.34 ! ohara 1934: @node asirgui.hnd,,, $B%7%9%F%`(B
! 1935: @subsection @code{asirgui.hnd}
! 1936: @findex asirgui.hnd
1.23 takayama 1937:
1938: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1939: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1940: @table @t
1.34 ! ohara 1941: @item asirguid.hnd
! 1942: :: asirgui $B$N(B main window $B$N%O%s%I%kHV9f$rJ];}$9$k%U%!%$%k(B
1.23 takayama 1943: @end table
1944:
1.34 ! ohara 1945: @comment ****************************************************************
1.23 takayama 1946:
1947: @itemize @bullet
1.34 ! ohara 1948: @item asirgui (Windows $BHG(B) $B$r5/F0$9$k$H(B asirgui.exe $B$N$"$k%U%)%k%@$*$h$S(B $B4D6-JQ?t(B TEMP $B$,Dj5A$5$l$F$$$l$P$3$N%U%!%$%k$,:n@.$5$l$k(B.
! 1949: @item $BCf?H$O#1#0?J@0?t$G(B, asirgui $B$N(B main winodw $B$N%O%s%I%k$G$"$k(B. $B$3$N%O%s%I%k$"$F$K(B PostMessage $B$r$9$l$P(B, asuirgui $B$K%-!<%\!<%I$+$iF~NO$7$?$N$HF1MM$J8z2L$,F@$i$l$k(B.
! 1950: @item text editor $B$G:n@.(B, $BJ]B8$7$?%U%!%$%k$r(B text editor $BB&$+$i(B asirgui $B$KFI$_9~$^$;$?$j$9$k$?$a$KMxMQ2DG=(B.
1.23 takayama 1951: @end itemize
1952:
1953: @example
1.34 ! ohara 1954: // cl test.c user32.lib
! 1955:
! 1956: #include <windows.h>
! 1957: #include <stdlib.h>
! 1958: #include <stdio.h>
! 1959: #include <process.h>
! 1960:
! 1961: int main()
! 1962: @{
! 1963:
! 1964: HWND hnd;
! 1965: FILE *fp = fopen("c:/Program Files/asir/bin/asirgui.hnd","r");
! 1966: fscanf(fp,"%d",&hnd);
! 1967: fclose(fp);
! 1968: while (1) @{
! 1969: int c;
! 1970: c = getchar();
! 1971: if ( c == '#' ) break;
! 1972: PostMessage(hnd,WM_CHAR,c,1);
! 1973: @}
! 1974: return 0;
! 1975: @}
1.23 takayama 1976: @end example
1977:
1978: @table @t
1979: @item $B;2>H(B
1.34 ! ohara 1980: @ref{xyz_abc}
1.23 takayama 1981: @end table
1982:
1983: @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
1984: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1985: @noindent
1986: ChangeLog
1987: @itemize @bullet
1.34 ! ohara 1988: @item $B$3$N5!G=$O(B 2006-12-5, 2007-02-13 $B$K2C$($i$l$?(B.
! 1989: @item @code{OpenXM_contrib2/windows/asir32gui/asir32gui.clw} 1.11
! 1990: @item @code{OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp} 1.15, 1.1.6
1.23 takayama 1991: @end itemize
1992:
1993:
1.34 ! ohara 1994: @comment ****************************************************************
! 1995:
! 1996: @node chdir,,, $B%7%9%F%`(B
! 1997: @subsection @code{chdir}, @code{pwd}
! 1998: @findex chdir
! 1999: @findex pwd
1.23 takayama 2000:
1.34 ! ohara 2001: @comment --- $B%G%#%l%/%H%jA`:n(B ---
1.23 takayama 2002: @table @t
1.34 ! ohara 2003: @item chdir(@var{directory})
! 2004: @item pwd()
! 2005: :: $B%7%'%k%3%^%s%I(B cd $B$H(B pwd $B$KBP1~$9$kA`:n(B.
1.23 takayama 2006: @end table
2007:
2008: @table @var
2009: @item return
1.34 ! ohara 2010: $BJ8;zNs(B(@code{pwd}), $B@0?t(B(@code{chdir})
! 2011: @item dirctory
! 2012: $BJ8;zNs(B
1.23 takayama 2013: @end table
2014:
2015: @itemize @bullet
1.34 ! ohara 2016: @item
! 2017: @code{pwd} $B$O%+%l%s%H%G%#%l%/%H%j$rJ8;zNs$GJV$9(B.
! 2018: @item
! 2019: @code{chdir} $B$O%+%l%s%H%G%#%l%/%H%j$r(B @var{directory} $B$KJQ99$9$k(B. $B@.8y$9$l$P(B 0 $B$r<:GT$9$l$P(B -1 $B$rJV$9(B.
! 2020: @item
! 2021: $B$3$l$i$N4X?t$O(B UNIX $BHG$K$N$_<BAu$5$l$F$$$k(B.
1.23 takayama 2022: @end itemize
2023:
2024: @example
1.34 ! ohara 2025: [0] S=pwd();
! 2026: /home/ohara
! 2027: [1] chdir(".../taka");
! 2028: -1
! 2029: [2] chdir("/usr/bin");
! 2030: 0
1.23 takayama 2031: @end example
2032:
2033: @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
2034: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2035: @noindent
2036: ChangeLog
2037: @itemize @bullet
1.34 ! ohara 2038: @item
! 2039: $B$3$l$i$N4X?t$O(B 2008-8-27 $B$K%3%_%C%H$5$l$?(B.
! 2040: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/miscf.c (1.27) $B$G$"$k(B.
1.23 takayama 2041: @end itemize
2042:
2043:
1.34 ! ohara 2044: @node dcurrenttime,,, $B%7%9%F%`(B
! 2045: @subsection @code{dcurrenttime}
! 2046: @findex dcurrenttime
1.23 takayama 2047:
1.34 ! ohara 2048: @comment --- $B8=:_;~9o$r<hF@(B ---
1.23 takayama 2049: @table @t
1.34 ! ohara 2050: @item dcurrenttime()
! 2051: :: $B8=:_;~9o$r<hF@(B.
1.23 takayama 2052: @end table
2053:
1.34 ! ohara 2054: @table @var
! 2055: @item return
! 2056: $BIbF0>.?tE@?t(B
! 2057: @end table
1.23 takayama 2058:
2059: @itemize @bullet
1.34 ! ohara 2060: @item
! 2061: $BJV$jCM$O(B1970$BG/(B1$B7n(B1$BF|(B0$B;~(B0$BJ,(B0$BIC$+$i$N7P2aIC?t$G$"$k(B.
1.23 takayama 2062: @end itemize
2063:
2064: @example
1.34 ! ohara 2065: [0] ctrl("real_digit", 16);
! 2066: 16
! 2067: [1] dcurrenttime();
! 2068: 1226390851.34476
! 2069: [2] currenttime();
! 2070: 1226390854
1.23 takayama 2071: @end example
2072:
2073: @table @t
2074: @item $B;2>H(B
1.34 ! ohara 2075: @ref{currenttime}
1.23 takayama 2076: @end table
2077:
2078: @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
2079: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2080: @noindent
2081: ChangeLog
2082: @itemize @bullet
1.34 ! ohara 2083: @item
! 2084: $B$3$N4X?t$O(B 2008-9-12 $B$K%3%_%C%H$5$l$?(B.
! 2085: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/time.c (1.6) $B$G$"$k(B.
1.23 takayama 2086: @end itemize
2087:
2088:
1.34 ! ohara 2089: @comment ****************************************************************
! 2090:
! 2091:
! 2092: @node $B8@8l(B,,, $B<B83E*;EMM$N4X?t(B
! 2093: @section $B8@8l(B
! 2094:
! 2095: @node get_struct_name,,, $B8@8l(B
! 2096: @subsection @code{get_struct_name}, @code{get_element_names}, @code{get_element_at}, @code{put_element_at}
! 2097: @findex get_struct_name
! 2098: @findex get_element_names
! 2099: @findex get_element_at
! 2100: @findex put_element_at
1.23 takayama 2101:
2102: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2103: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2104: @table @t
1.34 ! ohara 2105: @item get_struct_name(@var{s})
! 2106: @itemx get_element_names(@var{s})
! 2107: @itemx get_element_at(@var{s},@var{key})
! 2108: @itemx put_element_at(@var{s},@var{key},@var{obj})
! 2109: :: $B9=B$BN(B @var{s} $B$KBP$9$kA`:n(B
1.23 takayama 2110: @end table
2111:
2112: @table @var
2113: @item return
1.34 ! ohara 2114: $BJ8;zNs(B (get_struct_name),
! 2115: $BJ8;zNs$N%j%9%H(B (get_element_names),
! 2116: $B%*%V%8%'%/%H(B (get_element_at),
! 2117: $B%*%V%8%'%/%H(B (put_element_at)
! 2118: @item s
! 2119: $B9=B$BN(B
! 2120: @item key
! 2121: $BJ8;zNs(B
! 2122: @item obj
! 2123: $B%*%V%8%'%/%H(B
1.23 takayama 2124: @end table
2125:
2126: @itemize @bullet
1.34 ! ohara 2127: @item
! 2128: @code{get_struct_name(s)} $B$O(B, $B9=B$BN(B @var{s} $B$NL>A0$rLa$9(B.
! 2129: @item
! 2130: @code{get_element_names(s)} $B$O(B, $B9=B$BN$N%a%s%P!<$NL>A0$N%j%9%H$rLa$9(B.
! 2131: @item
! 2132: @code{get_element_at(s,key)} $B$O9=B$BN(B s $B$N%a%s%P!<(B key $B$NCM$rLa$9(B.
! 2133: @item
! 2134: @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.
1.23 takayama 2135: @end itemize
2136:
2137: @example
1.34 ! ohara 2138: [219] struct point @{ x, y, color@};
! 2139: [220] P = newstruct(point);
! 2140: @{0,0,0@}
! 2141: [221] P->x = 10$ P->y=5$ P->color="red"$
! 2142: [222] get_element_names(P);
! 2143: [x,y,color]
! 2144: [223] put_element_at(P,"color","blue");
! 2145: blue
! 2146: [224] P->color;
! 2147: bule
1.23 takayama 2148: @end example
2149:
2150: @table @t
2151: @item $B;2>H(B
1.34 ! ohara 2152: @ref{newstruct}, @ref{struct}
1.23 takayama 2153: @end table
2154:
2155: @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
2156: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2157: @noindent
2158: ChangeLog
2159: @itemize @bullet
1.34 ! ohara 2160: @item $B9=B$BN$NDj5A$rCN$i$:$K9=B$BN$r07$&%f!<%64X?t$r=q$/$H$-$KJXMx(B.
! 2161: asir-contrib $B$N(B noro_print.rr $B$r8+$h(B.
! 2162: @item OpenXM_contrib2/asir2000/builtin/compobj.c 1.8.
1.23 takayama 2163: @end itemize
2164:
2165:
1.34 ! ohara 2166: @comment mapat
! 2167: @node mapat,,, $B8@8l(B
! 2168: @subsection @code{mapat}
! 2169: @findex mapat
1.23 takayama 2170:
2171: @table @t
1.34 ! ohara 2172: @item mapat(@var{fname},@var{pos}[,@var{arg0}, @var{arg1}, ...])
! 2173: :: @var{pos} $B$KBP$9$k(B map $B4X?t(B
1.23 takayama 2174: @end table
2175:
2176: @table @var
2177: @item return
1.34 ! ohara 2178: $B%*%V%8%'%/%H(B
! 2179: @item pos
! 2180: $B@0?t(B
! 2181: @item arg0, arg1, arg2, ...
! 2182: $B%*%V%8%'%/%H(B
1.23 takayama 2183: @end table
2184:
2185: @itemize @bullet
1.34 ! ohara 2186: @item
! 2187: @code{map} $B4X?t$O(B 0 $BHVL\$N0z?t$KBP$7$F$7$+F0:n$7$J$$$,(B, @code{mapat}
! 2188: $B4X?t$O;XDj$7$?HV9f$N0z?t$KBP$7$F(B @code{map} $B4X?t$r<B9T$9$k(B.
! 2189: @item
! 2190: @code{mapat(fname,0,A0,A1,...)} $B$O(B
! 2191: @code{map(fname,A0,A1,...)} $B$KEy2A$G$"$k(B.
! 2192: @item
! 2193: $B<!$NI{:nMQ$,$"$k(B. $B$^$@=q$$$F$J$$(B.
1.23 takayama 2194: @end itemize
2195:
2196: @example
1.34 ! ohara 2197: [219] mapat(deg,1,x^2+y^3+x+y,[x,y]);
! 2198: [2,3]
! 2199: [220] mapat(subst,1,x+y+z,[x,y,z],2);
! 2200: [y+z+2,x+z+2,x+y+2]
1.23 takayama 2201: @end example
2202:
2203: @table @t
2204: @item $B;2>H(B
1.34 ! ohara 2205: @ref{map}
1.23 takayama 2206: @end table
2207:
2208: @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
2209: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2210: @noindent
2211: ChangeLog
2212: @itemize @bullet
1.34 ! ohara 2213: @item $B$3$N4X?t$O(B 2004-6-22 $B$K%3%_%C%H$5$l$?(B.
! 2214: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/pf.c, subst.c $B$G$"$k(B.
1.23 takayama 2215: @end itemize
2216:
1.34 ! ohara 2217: @comment list
! 2218: @node list,,, $B8@8l(B
! 2219: @subsection @code{list}
! 2220: @findex list
1.23 takayama 2221:
2222: @table @t
1.34 ! ohara 2223: @item list([@var{arg0}, @var{arg1}, ...])
! 2224: :: list $B$r@8@.$9$k(B.
1.23 takayama 2225: @end table
2226:
2227: @table @var
2228: @item return
2229: $B%j%9%H(B
1.34 ! ohara 2230: @item arg0, arg1, arg2, ...
! 2231: $B%*%V%8%'%/%H(B
1.23 takayama 2232: @end table
2233:
1.34 ! ohara 2234: @itemize @bullet
! 2235: @item
! 2236: @var{arg0}, @var{arg1}, ... $B$rMWAG$H$9$k%j%9%H$r@8@.$9$k(B.
1.23 takayama 2237: @end itemize
2238:
2239: @example
1.34 ! ohara 2240: [219] list(1,2,3);
! 2241: [1,2,3]
! 2242: [220] list(1,2,[3,4]);
! 2243: [1,2,[3,4]]
1.23 takayama 2244: @end example
2245:
2246: @table @t
2247: @item $B;2>H(B
1.34 ! ohara 2248: @ref{cons}
1.23 takayama 2249: @end table
2250:
2251: @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
2252: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2253: @noindent
2254: ChangeLog
2255: @itemize @bullet
1.34 ! ohara 2256: @item $B$3$N4X?t$O(B 2004-6-22 $B$K%3%_%C%H$5$l$?(B.
! 2257: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/list.c $B$G$"$k(B.
1.23 takayama 2258: @end itemize
2259:
2260:
1.34 ! ohara 2261: @node assoc,,, $B8@8l(B
! 2262: @subsection @code{assoc}
! 2263: @findex assoc
1.23 takayama 2264:
2265: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2266: @table @t
1.34 ! ohara 2267: @item assoc(@var{a},@var{b})
! 2268: :: $BO"A[%j%9%H$r$D$/$k(B
1.23 takayama 2269: @end table
2270:
2271: @table @var
2272: @item return
1.34 ! ohara 2273: List
! 2274: @item a
! 2275: List
! 2276: @item b
! 2277: List
1.23 takayama 2278: @end table
2279:
2280: @itemize @bullet
1.34 ! ohara 2281: @item $B%j%9%H(B @var{a}, @var{b} $B$h$j(B
! 2282: [[@var{a}[0],@var{b}[0]], [@var{a}[1],@var{b}[1]], ...]
! 2283: $B$J$k?7$7$$%j%9%H$r@8@.$9$k(B.
1.23 takayama 2284: @end itemize
2285:
1.34 ! ohara 2286: $B2<$NNc$G$O(B @code{A} $B$KF0J*$NL>A0$,(B,
! 2287: @code{B} $B$KB-$NK\?t$,F~$C$F$$$k(B.
! 2288: @code{assoc(A,B)} $B$GF0J*$HB-$NK\?t$r%Z%"$K$7$?%j%9%H$r@8@.$9$k(B.
! 2289:
1.23 takayama 2290: @example
1.34 ! ohara 2291: [1192] A=["dog","cat","snake"];
! 2292: [dog,cat,snake]
! 2293: [1193] B=[4,4,0];
! 2294: [4,4,0]
! 2295: [1194] assoc(A,B);
! 2296: [[dog,4],[cat,4],[snake,0]]
1.23 takayama 2297: @end example
2298:
2299: @table @t
2300: @item $B;2>H(B
1.34 ! ohara 2301: @ref{cons}, @ref{append}
1.23 takayama 2302: @end table
2303:
2304: @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
2305: @noindent
2306: ChangeLog
2307: @itemize @bullet
1.34 ! ohara 2308: @item
! 2309: $B$3$N4X?t$O(B 2004-6-28 $B$K=q$+$l$?(B.
! 2310: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B
! 2311: builtin/list.c 1.9
! 2312: parse/eval.c 1.35,
! 2313: parse/parse.h 1.31,
! 2314: parse/quote.c 1.14--1.16.
1.23 takayama 2315: @end itemize
2316:
1.34 ! ohara 2317:
! 2318: @node set_secure_flag,,, $B8@8l(B
! 2319: @subsection @code{set_secure_flag}, @code{set_secure_mode}
! 2320: @findex set_secure_flag
! 2321: @findex set_secure_mode
1.23 takayama 2322:
2323: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2324: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2325: @table @t
1.34 ! ohara 2326: @item set_secure_flag(@var{fname},@var{m})
! 2327: @itemx set_secure_mode(@var{m})
! 2328: :: $B4X?t$N<B9T8"8B$r@_Dj$9$k(B. (web $B%5!<%S%9MQ(B)
1.23 takayama 2329: @end table
2330:
2331: @table @var
2332: @item return
2333: $B@0?t(B
1.34 ! ohara 2334: @item fname
! 2335: $BJ8;zNs(B
! 2336: @item m
! 2337: $B@0?t(B
1.23 takayama 2338: @end table
2339:
2340: @itemize @bullet
1.34 ! ohara 2341: @item @code{set_secure_flag}, @code{set_secure_mode} $B$O(B
! 2342: asir $B$r(B web $B%5!<%PEy$G8x3+$9$k$?$a$K2C$($i$l$?4X?t(B.
! 2343: @code{set_secure_flag} $B$G8x3+$9$k4X?t$r;XDj$9$k(B.
! 2344: @code{secure_mode} $B$,(B 1 $B$N>l9g$O(B @code{set_secure_flag} $B$G;XDj$5$l$?(B
! 2345: $B4X?t$7$+<B9T$G$-$J$$(B.
! 2346: $B4X?t$N<B9TESCf$G$O(B @code{secure_mode} $B$,(B 0 $B$H$J$C$F$$$k$N$G(B,
! 2347: $BG$0U$N4X?t$r<B9T$G$-$k(B.
! 2348: $B$^$?%(%i!<$N;~Ey$O(B, @code{secure_mode} $B$O(B 1 $B$K<+F0E*$KI|5"$9$k(B.
! 2349: $B$?$@$7(B @code{def} $B$O<B9T$G$-$J$$(B.
! 2350: $B8x3+$9$k4X?t$G$O(B, $B$=$N=hM}Cf$OG$0U$N4X?t$,<B9T$G$-$k$N$G(B,
! 2351: security $B$K==J,Cm0U$7$?<BAu$r$9$kI,MW$,$"$k(B.
! 2352: @item
! 2353: @code{set_secure_flag} $B$O(B, @var{fname} $B$N(B secure flag $B$r(B @var{m}
! 2354: $B$K$9$k(B.
! 2355: $B8x3+$9$kL?Na$O(B 1 $B$K@_Dj$9$k(B.
! 2356: @item
! 2357: @var{set_secure_mode(1)} $B$G(B @code{secure_mode} $B$,(B 1 $B$H$J$j(B,
! 2358: $B8x3+$5$l$?4X?t$7$+<B9T$G$-$J$/$J$k(B.
! 2359: quit $BEy$b<B9T$G$-$J$$$N$GCm0U(B.
! 2360: @item @code{ timer } $B$N0z?t$H$7$F(B secure_flag $B$r@_Dj$7$F$$$J$$4X?t$r(B
! 2361: $B;XDj$7$F<B9T$7$F$b%(%i!<$,I=<($5$l$J$$(B.
! 2362: $B$3$N$H$-$O(B, @code{ ctrl("error_in_timer",1) } $B$r<B9T$7$F$*$/(B.
1.23 takayama 2363: @end itemize
2364:
2365: @example
1.34 ! ohara 2366: [1194] set_secure_flag("print_input_form_",1);
! 2367: 1
! 2368: [1195] set_secure_flag("fctr",1);
! 2369: 1
! 2370: [220] set_secure_mode(1);
! 2371: 1
! 2372: [1197] fctr((x-1)^3);
! 2373: [[1,1],[x-1,3]]
! 2374: [1198] fctr(shell("ls"));
! 2375: evalf : shell not permitted
! 2376: return to toplevel
1.23 takayama 2377: @end example
2378:
2379: @table @t
2380: @item $B;2>H(B
1.34 ! ohara 2381: @ref{timer}
1.23 takayama 2382: @end table
2383:
2384: @noindent
2385: ChangeLog
2386: @itemize @bullet
1.34 ! ohara 2387: @item @code{set_secure_flag}, @code{set_secure_mode} $B$O(B asir $B$r(B
! 2388: web $B%5!<%PEy$G8x3+$9$k$?$a$K2C$($i$l$?4X?t(B.
! 2389: sm1 $B$NF1MM$J4X?t(B RestrictedMode $B$G:NMQ$5$l$?J}K!$rMQ$$$F$$$k(B.
! 2390: $B$D$^$j(B, @code{set_secure_flag} $B$G8x3+$9$k4X?t$r;XDj$9$k(B.
! 2391: @code{secure_mode} $B$,(B 1 $B$N>l9g$O(B @code{set_secure_flag} $B$G;XDj$5$l$?(B
! 2392: $B4X?t$7$+<B9T$G$-$J$$(B.
! 2393: v$B4X?t$N<B9TESCf$G$O(B @code{secure_mode} $B$,(B 0 $B$H$J$C$F$$$k$N$G(B,
! 2394: $BG$0U$N4X?t$r<B9T$G$-$k(B.
! 2395: @item $B$3$N4X?t$O(B 2004-10-27 $B$+$i(B 2004-11-22 $B$K$+$1$F3+H/$5$l$?(B.
! 2396: @item cgiasir.sm1, cgi-asir.sh $B$HAH$_9g$o$;$F(B cgi $B%5!<%S%9$rDs6!$9$k$?$a$K(B
! 2397: $BMxMQ$9$k(B.
! 2398: cgi-asir.sh $B$G$O(B
! 2399: @code{CGI_ASIR_ALLOW} $B4D6-JQ?t$G8x3+$9$k%3%^%s%I$r;XDj$9$k(B.
! 2400: @item
! 2401: 1.24--1.25 OpenXM_contrib2/asir2000/builtin/miscf.c
! 2402: @item
! 2403: 1.36--1.38 OpenXM_contrib2/asir2000/parse/eval.c
! 2404: @item
! 2405: 1.6--1.7 OpenXM_contrib2/asir2000/parse/function.c
! 2406: @item
! 2407: 1.33 OpenXM_contrib2/asir2000/parse/parse.h
1.23 takayama 2408: @end itemize
2409:
1.34 ! ohara 2410: @node initialize_static_variable,,, $B8@8l(B
! 2411: @subsection @code{initialize_static_variable}
! 2412: @findex initialize_static_variable
! 2413:
1.23 takayama 2414:
1.34 ! ohara 2415: @comment --- $B@bL@(B ---
1.23 takayama 2416: @table @t
1.34 ! ohara 2417: @item static $BJQ?t$N=i4|2=$NLdBjE@(B. $B=i4|2=$N;~$K(B segmentation fault $B$,$*$-$k(B.
1.23 takayama 2418: @end table
2419:
2420:
2421: @itemize @bullet
1.34 ! ohara 2422: @item static $BJQ?t$N<h07(B.
! 2423: $B2<$NNc$r;2>H$N$3$H(B.
1.23 takayama 2424: @end itemize
2425:
1.34 ! ohara 2426:
1.23 takayama 2427: @example
1.34 ! ohara 2428: if (1) @{
! 2429: module abc;
! 2430: static A;
! 2431: A=1;
! 2432: endmodule;
! 2433: @} else @{ @};
1.23 takayama 2434:
1.34 ! ohara 2435: end$
! 2436: $B$r(B t.rr $B$H$9$k$H$-(B,
1.23 takayama 2437:
1.34 ! ohara 2438: [6] load("./t.rr");
! 2439: 1
! 2440: internal error (SEGV)
! 2441: $B$H$J$k(B.
1.23 takayama 2442:
1.34 ! ohara 2443: t.rr $B$r(B
! 2444: if (1) @{
! 2445: module abc;
! 2446: static A;
! 2447: localf initA;
! 2448: localf foo;
! 2449: def initA() @{
! 2450: A=1;
! 2451: @}
! 2452: initA();
! 2453: def foo() @{
! 2454: return A;
! 2455: @}
! 2456: endmodule;
! 2457: @} else @{ @};
1.23 takayama 2458:
1.34 ! ohara 2459: end$
! 2460: $B$H$9$k$H@5$7$/=i4|2=$5$l$k(B.
1.23 takayama 2461: @end example
2462:
1.34 ! ohara 2463: @comment --- ChangeLog
1.23 takayama 2464: @noindent
2465: ChangeLog
2466: @itemize @bullet
1.34 ! ohara 2467: @item oxasir-win.rr $B$N<h07$GLdBjE@$H$7$FIb>e(B. 2005.07.25.
! 2468: @item oxasir-win.rr $B$N<h07$G(B double quote $B$N<h$j07$$$KLdBj$,$"$C$?$,(B, $B$3$l$O(B asir2000/io/ox_asir.c, 1.58, $B$GLdBjE@2r7h(B.
! 2469: @item ox_asir $B$K7W;;$r0MMj$9$k;~$O(B if (1) @{ ... @}$B$G0O$`(B.
1.23 takayama 2470: @end itemize
1.34 ! ohara 2471:
1.23 takayama 2472: @comment ****************************************************************
1.13 takayama 2473:
1.34 ! ohara 2474: @node $B?tO@!&Be?t(B,,, $B<B83E*;EMM$N4X?t(B
! 2475: @section $B?tO@!&Be?t(B
! 2476:
1.24 takayama 2477:
1.34 ! ohara 2478: @node small_jacobi,,, $B?tO@!&Be?t(B
! 2479: @subsection @code{small_jacobi}
! 2480: @findex small_jacobi
1.24 takayama 2481:
2482: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2483: @table @t
1.34 ! ohara 2484: @item small_jacobi(@var{a},@var{m})
! 2485: :: Jacobi $B5-9f$N7W;;(B
1.24 takayama 2486: @end table
2487:
1.34 ! ohara 2488: @table @var
! 2489: @item return
! 2490: $B@0?t(B
! 2491: @item arg1, arg2
! 2492: $B@0?t(B
! 2493: @end table
1.24 takayama 2494:
2495: @itemize @bullet
1.34 ! ohara 2496: @item
! 2497: @var{m} $B$,AG?t$N$H$-$O(B Legendre $B5-9f$H$h$P$l(B,
! 2498: x^2 = @var{a} mod @var{m} $B$K2r$,$"$k$H$-(B 1, $B2r$,$J$$$H$-(B -1 $B$r$b$I$9(B.
! 2499: @item
! 2500: Jacobi $B5-9f$O(B Legendre $B5-9f$N@Q$GDj5A$5$l$k(B ($B=iEy@0?tO@$NK\;2>H(B).
! 2501: @item
! 2502: $B$3$N4X?t$O(B machine int $B$NHO0O$G(B jacobi $B5-9f$r7W;;$9$k(B.
1.24 takayama 2503: @end itemize
2504:
2505: @example
1.34 ! ohara 2506: [1286] small_jacobi(2,3);
! 2507: -1
! 2508: [1287] small_jacobi(2,7);
! 2509: 1
1.24 takayama 2510: @end example
2511:
2512: @table @t
2513: @item $B;2>H(B
1.34 ! ohara 2514: http://members.jcom.home.ne.jp/yokolabo/asirlib/
! 2515: $B$b8+$F$M(B.
1.24 takayama 2516: @end table
2517:
2518: @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
2519: @noindent
2520: ChangeLog
2521: @itemize @bullet
1.34 ! ohara 2522: @item $B$3$N4X?t$NM3Mh$OITL@(B.
1.24 takayama 2523: @end itemize
2524:
1.34 ! ohara 2525:
! 2526: @node noro_matrix.rr,,, $B?tO@!&Be?t(B
1.25 takayama 2527: @subsection @code{noro_matrix.rr}
2528: @findex noro_matrix.rr
2529:
2530: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2531: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2532: @table @t
2533: @item linalg.unit_mat(@var{arg1})
2534: @item linalg.random_rmat(@var{arg1}, @var{arg2}, @var{arg3})
2535: @item linalg.minipoly_mat(@var{arg1})
2536: @item linalg.compute_kernel(@var{arg1})
2537: @item linalg.compute_image(@var{arg1})
2538: @item linalg.jordan_canonical_form(@var{arg1})
2539: @end table
2540:
2541:
2542: @itemize @bullet
2543: @item $B4JC1$J2r@b$*$h$S<BNc$O(B http://www.math.kobe-u.ac.jp/HOME/taka/2007/knx/noro_matrix-ja.txt $B$r;2>H(B.
2544: @end itemize
2545:
2546: @example
2547: load("noro_matrix.rr");
2548: A=newmat(4,4,[[2,0,0,0],[3,5,1,0],[-9,-9,-1,0],[-5,0,0,1]]);
2549: B=linalg.jordan_canonical_form(A);
2550: @end example
2551:
2552: @table @t
2553: @item $B;2>H(B
2554: @ref{invmat}
2555: @end table
2556:
2557: @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
2558: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2559: @noindent
2560: ChangeLog
2561: @itemize @bullet
2562: @item $B$3$N4X?t$O(B 2004-04 $B:"$+$i@~7ABe?t(BIII $B$N9V5A$r$7$J$,$i=q$+$l$?(B.
2563: @item $B%=!<%9(B: OpenXM/src/asir-contrib/packages/src/noro_matrix.rr
2564: @end itemize
2565:
2566:
1.34 ! ohara 2567: @node f_res,,, $B?tO@!&Be?t(B
1.26 takayama 2568: @subsection @code{f_res}
2569: @findex f_res
1.25 takayama 2570:
2571: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2572: @table @t
1.26 takayama 2573: @item f_res
1.25 takayama 2574: @end table
2575:
2576:
2577: @itemize @bullet
1.26 takayama 2578: @item f_res $B$O3F<o$N=*7k<0$r7W;;$9$k%b%8%e!<%k$G$"$k(B. ox_grep("f_res"); $B$G(B online manual $B$r1\Mw2DG=$G$"$k(B.
1.25 takayama 2579: @end itemize
2580:
2581: @table @t
2582: @item $B;2>H(B
2583: @ref{}
2584: @end table
2585:
2586: @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
2587: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2588: @noindent
2589: ChangeLog
2590: @itemize @bullet
2591: @item $B$3$N%b%8%e!<%k$O(B Fujiwara $B7/$N=$;NO@J8$,85$K$J$j(B, $B$=$l$r2~B$$7$?$b$N$G$"$k(B.
1.26 takayama 2592: @item OpenXM/src/ox_cdd, OpenXM/src/asir-contrib/packages/src/f_res.rr
1.25 takayama 2593: @end itemize
2594:
2595:
1.34 ! ohara 2596: @node D $B2C72$N@)8B$K4X$9$k4X?t(B,,, $B<B83E*;EMM$N4X?t(B
! 2597: @section D $B2C72$N@)8B$K4X$9$k4X?t(B
1.27 ohara 2598:
2599:
1.34 ! ohara 2600: @node nk_restriction.restriction,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
1.29 nakayama 2601: @subsection @code{nk_restriction.restriction}
2602: @comment --- $B:w0zMQ%-!<%o!<%I(B
2603: @findex nk_restriction.restriction
2604:
2605: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2606: @table @t
1.34 ! ohara 2607: @item nk_restriction.restriction(@var{Id}, @var{VL}, @var{DVL}, @var{W})
1.29 nakayama 2608: :: $B%[%m%N%_%C%/(B D $B%$%G%"%k(B @var{Id} $B$r=E$_%Y%/%H%k(B @var{W} $B$K$D$$$F$N@)8B2C72$rJV$9!#(B
2609: @end table
2610:
2611: @comment --- $B0z?t$N4JC1$J@bL@(B ---
2612: @table @var
2613: @item Id
2614: $B%$%G%"%k$N@8@.85$N%j%9%H(B
2615: @item VL
2616: $BJQ?t$N%j%9%H(B
2617: @item DVL
2618: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
2619: @item W
2620: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
2621: @end table
2622:
2623: @itemize @bullet
2624: @item
2625: @var{W} $B$NMWAG$OHsIi@0?t$G!"(B0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$!#(B
2626: ($B$9$J$o$A!"(B@code{[1,1,0,0,0]} $B$O(B OK $B$@$,!"(B @code{[1,0,1,0,0]} $B$O%@%a(B)
2627: @item
2628: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@)8B$r9T$&!#(B
1.34 ! ohara 2629: $BNc$($P!"(B@var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,1,0]} $B$G$"$l$P(B
! 2630: x,y $B$K$D$$$F@)8B$r9T$&!#(B
1.29 nakayama 2631: @end itemize
2632:
2633: $B0J2<$O!"%$%G%"%k(B
1.34 ! ohara 2634: @iftex
1.29 nakayama 2635: @tex
1.34 ! ohara 2636: $I = D \cdot \{x \partial_x -1, y \partial_y - 1\} $
! 2637: @end tex
1.29 nakayama 2638: $B$N(B
1.34 ! ohara 2639: @tex
! 2640: $x$
! 2641: @end tex
! 2642: @end iftex
! 2643: @ifinfo
! 2644: I = D . @{ x dx -1, y dy - 1 @} $B$N(B x
! 2645: @end ifinfo
1.29 nakayama 2646: $B$K$D$$$F$N@)8B2C72$r7W;;$7$?Nc$G$"$k!#(B
2647: @example
2648: [1432] nk_restriction.restriction([x*dx-1,y*dy-1],[x,y],[dx,dy],[1,0]);
2649: -- generic_bfct_and_gr :0.001sec(0.001629sec)
2650: generic bfct : [[1,1],[s-1,1]]
2651: S0 : 1
1.33 ohara 2652: B_@{S0@} length : 2
1.29 nakayama 2653: -- fctr(BF) + base :0.000999sec(0.0005109sec)
2654: [[y*dy-1,(y*dy-1)*dx,-1],[[1],[0]]]
2655: @end example
2656:
1.34 ! ohara 2657:
1.29 nakayama 2658: @node nk_restriction.restriction_ideal,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
2659: @subsection @code{nk_restriction.restriction_ideal}
2660: @comment --- $B:w0zMQ%-!<%o!<%I(B
2661: @findex nk_restriction.restriction_ideal
2662:
2663: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2664: @table @t
1.34 ! ohara 2665: @item nk_restriction.restriction_ideal(@var{Id}, @var{VL}, @var{DVL}, @var{W})
1.29 nakayama 2666: :: $B%[%m%N%_%C%/(B D $B%$%G%"%k(B @var{Id} $B$r=E$_%Y%/%H%k(B @var{W} $B$K$D$$$F$N@)8B%$%G%"%k$rJV$9!#(B
2667: @end table
2668:
2669: @comment --- $B0z?t$N4JC1$J@bL@(B ---
2670: @table @var
2671: @item Id
2672: $B%$%G%"%k$N@8@.85$N%j%9%H(B
2673: @item VL
2674: $BJQ?t$N%j%9%H(B
2675: @item DVL
2676: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
2677: @item W
2678: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
2679: @end table
2680:
2681: @itemize @bullet
2682: @item
2683: @var{W} $B$NMWAG$OHsIi@0?t$G!"(B0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$!#(B
2684: ($B$9$J$o$A!"(B@code{[1,1,0,0,0]} $B$O(B OK $B$@$,!"(B @code{[1,0,1,0,0]} $B$O%@%a(B)
2685: @item
2686: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@)8B$r9T$&!#(B
1.34 ! ohara 2687: $BNc$($P!"(B@var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,1,0]} $B$G$"$l$P(B
! 2688: x,y $B$K$D$$$F@)8B$r9T$&!#(B
1.29 nakayama 2689: @end itemize
2690:
1.34 ! ohara 2691: $B0J2<$O!"%$%G%"%k(B
! 2692: @iftex
1.29 nakayama 2693: @tex
1.34 ! ohara 2694: $I = D \cdot \{x \partial_x -1, y \partial_y - 1\} $
! 2695: @end tex
1.29 nakayama 2696: $B$N(B
1.34 ! ohara 2697: @tex
! 2698: $x$
! 2699: @end tex
! 2700: @end iftex
! 2701: @ifinfo
! 2702: I = D . @{ x dx -1, y dy - 1 @} $B$N(B x
! 2703: @end ifinfo
1.29 nakayama 2704: $B$K$D$$$F$N@)8B%$%G%"%k$r7W;;$7$?Nc$G$"$k!#(B
2705: @example
2706: [1346] nk_restriction.restriction_ideal([x*dx-1,y*dy-1],[x,y],[dx,dy],[1,0]);
2707: -- generic_bfct_and_gr :0.002sec(0.001652sec)
2708: generic bfct : [[1,1],[s-1,1]]
2709: S0 : 1
1.33 ohara 2710: B_@{S0@} length : 2
1.29 nakayama 2711: -- fctr(BF) + base :0sec(0.000566sec)
2712: -- restriction_ideal_internal :0.001sec(0.0007441sec)
2713: [-1]
2714: @end example
2715:
1.34 ! ohara 2716: @node nk_restriction.integration,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
1.29 nakayama 2717: @subsection @code{nk_restriction.integration}
2718: @comment --- $B:w0zMQ%-!<%o!<%I(B
2719: @findex nk_restriction.integration
2720:
2721: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2722: @table @t
1.34 ! ohara 2723: @item nk_restriction.integration(@var{Id}, @var{VL}, @var{DVL}, @var{W})
1.29 nakayama 2724: :: $B%[%m%N%_%C%/(B D $B%$%G%"%k(B @var{Id} $B$r=E$_%Y%/%H%k(B @var{W} $B$K$D$$$F$N@QJ,2C72$rJV$9!#(B
2725: @end table
2726:
2727: @comment --- $B0z?t$N4JC1$J@bL@(B ---
2728: @table @var
2729: @item Id
2730: $B%$%G%"%k$N@8@.85$N%j%9%H(B
2731: @item VL
2732: $BJQ?t$N%j%9%H(B
2733: @item DVL
2734: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
2735: @item W
2736: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
2737: @end table
2738:
2739: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
2740: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
2741: @comment --- @bullet $B$O9uE@IU$-(B ---
2742: @itemize @bullet
2743: @item
2744: @var{W} $B$NMWAG$OHsIi@0?t$G!"(B0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$!#(B
2745: ($B$9$J$o$A!"(B@code{[1,1,0,0,0]} $B$O(B OK $B$@$,!"(B @code{[1,0,1,0,0]} $B$O%@%a(B)
2746: @item
2747: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@QJ,$r9T$&!#(B
1.34 ! ohara 2748: $BNc$($P!"(B@var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,1,0]} $B$G$"$l$P(B
! 2749: x,y $B$K$D$$$F@QJ,$r9T$&!#(B
1.29 nakayama 2750: @end itemize
2751:
1.34 ! ohara 2752: $B0J2<$O!"%$%G%"%k(B
! 2753: @iftex
! 2754: @tex
1.29 nakayama 2755: $I = D \cdot \{2 t \partial_x + \partial_t, t \partial_t + 2 x \partial_x + 2\} $
1.34 ! ohara 2756: @end tex
1.29 nakayama 2757: $B$N(B
1.34 ! ohara 2758: @tex
! 2759: $t$
! 2760: @end tex
! 2761: @end iftex
! 2762: @ifinfo
! 2763: I = D . @{2 t dx + dt, t dt + 2 x dx + 2 @} $B$N(B t
! 2764: @end ifinfo
1.29 nakayama 2765: $B$K$D$$$F$N@QJ,%$%G%"%k$r7W;;$7$?Nc$G$"$k!#(B([SST, Ex5.5.2, Ex5.5.6])
2766: @example
2767: [1351] nk_restriction.integration([2*t*dx+dt,2*x*dx+t*dt+2],[t,x],
2768: [dt,dx],[1,0]);
2769: -- generic_bfct_and_gr :0.001sec(0.001796sec)
2770: generic bfct : [[1,1],[s,1],[s-1,1]]
2771: S0 : 1
1.33 ohara 2772: B_@{S0@} length : 2
1.29 nakayama 2773: -- fctr(BF) + base :0.001sec(0.0006731sec)
2774: [[4*x*dx^2+6*dx,-4*t*x*dx^2-6*t*dx,2*x*dx+1,-2*t*x*dx,2*t*dx],[[1],[0]]]
2775: @end example
2776:
1.34 ! ohara 2777: @node nk_restriction.integration_ideal,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
1.29 nakayama 2778: @subsection @code{nk_restriction.integration_ideal}
2779: @comment --- $B:w0zMQ%-!<%o!<%I(B
2780: @findex nk_restriction.integration_ideal
2781:
2782: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2783: @table @t
1.34 ! ohara 2784: @item nk_restriction.integration_ideal(@var{Id}, @var{VL}, @var{DVL}, @var{W})
1.29 nakayama 2785: :: $B%[%m%N%_%C%/(B D $B%$%G%"%k(B @var{Id} $B$r=E$_%Y%/%H%k(B @var{W} $B$K$D$$$F$N@QJ,%$%G%"%k$rJV$9!#(B
2786: @end table
2787:
2788: @comment --- $B0z?t$N4JC1$J@bL@(B ---
2789: @table @var
2790: @item Id
2791: $B%$%G%"%k$N@8@.85$N%j%9%H(B
2792: @item VL
2793: $BJQ?t$N%j%9%H(B
2794: @item DVL
2795: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
2796: @item W
2797: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
2798: @end table
2799:
2800: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
2801: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
2802: @comment --- @bullet $B$O9uE@IU$-(B ---
2803: @itemize @bullet
2804: @item
2805: @var{W} $B$NMWAG$OHsIi@0?t$G!"(B0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$!#(B
2806: ($B$9$J$o$A!"(B@code{[1,1,0,0,0]} $B$O(B OK $B$@$,!"(B @code{[1,0,1,0,0]} $B$O%@%a(B)
2807: @item
2808: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@QJ,$r9T$&!#(B
1.34 ! ohara 2809: $BNc$($P!"(B@var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,1,0]} $B$G$"$l$P(B
! 2810: x,y $B$K$D$$$F@QJ,$r9T$&!#(B
1.29 nakayama 2811: @end itemize
2812:
1.34 ! ohara 2813: $B0J2<$O!"%$%G%"%k(B
! 2814: @iftex
! 2815: @tex
1.29 nakayama 2816: $I = D \cdot \{2 t \partial_x + \partial_t, t \partial_t + 2 x \partial_x + 2\} $
1.34 ! ohara 2817: @end tex
1.29 nakayama 2818: $B$N(B
1.34 ! ohara 2819: @tex
! 2820: $t$
! 2821: @end tex
! 2822: @end iftex
! 2823: @ifinfo
! 2824: I = D . @{2 t dx + dt, t dt + 2 x dx + 2 @} $B$N(B t
! 2825: @end ifinfo
1.29 nakayama 2826: $B$K$D$$$F$N@QJ,%$%G%"%k$r7W;;$7$?Nc$G$"$k!#(B([SST, Ex5.5.2, Ex5.5.6])
2827: @example
2828: [1431] nk_restriction.integration_ideal([2*t*dx+dt,t*dt+2*x*dx+2],[t,x],
2829: [dt,dx],[1,0]);
2830: -- generic_bfct_and_gr :0.002999sec(0.002623sec)
2831: generic bfct : [[1,1],[s,1],[s-1,1]]
2832: S0 : 1
1.33 ohara 2833: B_@{S0@} length : 2
1.29 nakayama 2834: -- fctr(BF) + base :0.001sec(0.001091sec)
2835: -- integration_ideal_internal :0.002sec(0.001879sec)
2836: [2*x*dx+1]
2837: [1432]
2838: @end example
2839:
1.30 takayama 2840: @noindent
2841: ChangeLog
2842: @itemize @bullet
2843: @item $B$3$l$i$N4X?t$O(B OpenXM/src/asir-contrib/packages/src/nk_restriction.rr $B$GDj5A$5$l$F$$$k(B. nk_restriction.rr, 1.1--1.6 $B$r8+$h(B.
2844: @end itemize
2845:
1.34 ! ohara 2846: @node $B$=$NB>(B,,, $B<B83E*;EMM$N4X?t(B
! 2847: @section $B$=$NB>(B
1.29 nakayama 2848:
1.23 takayama 2849: @comment ----------- $B0J2<$O8+K\(B. $B>C$9$J(B.
1.19 takayama 2850: @comment ****************************************************************
1.34 ! ohara 2851: @comment --- $B"~"~"~"~(B $B0J2<B>$N4X?t$K$D$$$F??;w$7$F5-=R$9$k(B. $B"~"~"~"~(B
1.3 takayama 2852: @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.34 ! ohara 2853: @comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B
1.4 takayama 2854: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
2855: @node xyz_pqr,,, $B<B83E*;EMM$N4X?t(B
2856: @subsection @code{xyz_pqr}, @code{syz_stu}
2857: @findex xyz_pqr
2858: @findex xyz_stu
2859:
1.3 takayama 2860: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2861: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2862: @table @t
1.1 takayama 2863: @item xyz_pqr(@var{arg1},@var{arg2}[,@var{flag}])
2864: @itemx xyz_stu(@var{arg1},@var{arg2})
2865: :: xyz $B$K4X$9$kA`:n(B.
2866: @end table
2867:
2868: @table @var
2869: @item return
2870: $B@0?t(B
2871: @item arg1, arg2
2872: $B@0?t(B
2873: @item flag
2874: 0 $B$^$?$O(B 1
2875: @end table
2876:
2877: @itemize @bullet
1.3 takayama 2878: @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 2879: @item
2880: @code{xyz_pqr()} $B$O(B, @var{arg1}, @var{arg2} $B$r(B pqr $B$9$k(B.
2881: @item
2882: @var{flag} $B$,(B 0 $B$G$J$$$H$-(B, $B%b%8%e%i7W;;$r9T$&(B.
2883: @item
2884: @code{xyz_stu()} $B$O(B stu $B%"%k%4%j%:%`$rMQ$$$k(B.
2885: @end itemize
2886:
2887: @example
2888: [219] xyz_pqr(1,2);
2889: 3
2890: [220] xyz_pqr(1,2,1);
2891: 3
2892: 0
2893: [221] xyz_stu(1,2);
2894: 3
2895: @end example
2896:
2897: @table @t
2898: @item $B;2>H(B
2899: @ref{xyz_abc}
2900: @end table
2901:
1.3 takayama 2902: @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
2903: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.1 takayama 2904: @noindent
2905: ChangeLog
2906: @itemize @bullet
2907: @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
2908: http://www.afo.org/xyz.pdf ) $B$rMQ$$$F=q$-D>$5$l$?(B.
2909: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B xxxyy.rr, ppp.c $B$G$"$k(B.
2910: @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.
2911: @end itemize
2912:
2913: @comment --- $B$*$^$8$J$$(B ---
2914: @node Index,,, Top
2915: @unnumbered Index
2916: @printindex fn
2917: @printindex cp
2918: @iftex
2919: @vfill @eject
2920: @end iftex
2921: @summarycontents
2922: @contents
2923: @bye
2924: @comment --- $B$*$^$8$J$$=*$j(B ---
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>