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