Annotation of OpenXM/src/asir-doc/exp/exp-ja.texi, Revision 1.57
1.57 ! takayama 1: %% $OpenXM: OpenXM/src/asir-doc/exp/exp-ja.texi,v 1.56 2018/03/28 07:44:06 takayama Exp $
1.54 takayama 2: \input texinfo-ja
1.1 takayama 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.56 takayama 41: @subtitle 2018 $BG/(B 3 $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.56 takayama 47: 2004--2018. 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.55 takayama 86: * asir-port.sh asir-install.sh::
87: * asirgui.hnd::
88: * chdir pwd::
1.3 takayama 89: * copyright::
1.55 takayama 90: * dcurrenttime::
1.3 takayama 91: * dp_gr_main::
1.6 takayama 92: * dp_initial_term::
93: * dp_order::
94: * dp_weyl_gr_main::
1.55 takayama 95: * eval_quote::
96: * f_res::
1.57 ! takayama 97: * fj_simplify.simplify::
1.55 takayama 98: * flatten_quote::
1.56 takayama 99: * function::
1.55 takayama 100: * get_struct_name get_element_names get_element_at put_element_at::
101: * getpid::
102: * initialize_static_variable::
1.8 takayama 103: * list::
104: * mapat::
1.55 takayama 105: * nd_gr nd_gr_trace nd_weyl_gr nd_weyl_gr_trace (module)::
106: * nd_gr nd_gr_trace nd_weyl_gr nd_weyl_gr_trace (option)::
107: * noro_matrix.rr::
108: * nqt_comp::
1.23 takayama 109: * nqt_match::
110: * nqt_match_rewrite::
1.55 takayama 111: * objtoquote::
112: * ot_hgm_ahg.cbase::
113: * ot_hgm_ahg.get_mat2::
114: * ot_hgm_ahg.hgm_ahg_contiguity::
115: * pari setbprec setround todouble mpfr_gamma mpfr_floor mpfr_round::
116: * printf fprintf sprintf::
117: * qt_is_var qt_is_coef::
1.23 takayama 118: * qt_normalize::
1.55 takayama 119: * qt_rewrite::
1.23 takayama 120: * qt_set_coef::
121: * qt_set_ord::
122: * qt_set_weight::
1.55 takayama 123: * quote_to_funargs funargs_to_quote remove_paren get_function_name::
124: * quotetotex quotetotex_env::
125: * set_print_function::
126: * set_secure_flag set_secure_mode::
127: * small_jacobi::
128: * string_to_tb tb_to_string write_to_tb::
129: * tk_fd.abc2ahg::
130: * tk_fd.ahvec_abc::
131: * tk_hgpoly.hgpoly::
132: * tk_hgpoly.optip::
133: * tk_jack.zonal::
134: * tk_pfn.graph::
1.41 takayama 135: * tk_pfn.rkn::
136: * tk_rk.runge_kutta_4::
137: * tk_rk.runge_kutta_4_linear::
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.55 takayama 399: @node quote_to_funargs funargs_to_quote remove_paren get_function_name,,, $B%/%*!<%H(B
400: @subsection @code{quote_to_funargs}, @code{funargs_to_quote}, @code{remove_paren}, @code{get_function_name}
1.34 ohara 401: @findex quote_to_funargs
402: @findex funargs_to_quote
403: @findex remove_paren
1.55 takayama 404: @findex get_function_name
1.3 takayama 405:
406: @table @t
1.34 ohara 407: @item quote_to_funargs(@var{q})
408: :: quote $B$r(B funarg $B7A<0(B($B%j%9%H(B) $B$X(B.
409: @item funargs_to_quote(@var{f})
410: :: funarg $B7A<0$r(B quote $B$X(B.
411: @item get_function_name(@var{f})
412: :: funarg $B7A<0$N(B op $B$rJ8;zNs$X(B.
413: @item remove_paren(@var{q})
414: :: $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 415: @end table
416:
417: @table @var
418: @item return
1.34 ohara 419: quote(funargs_to_quote, remove_paren) $B$+(B $B%j%9%H(B(quote_to_funargs)
420: @item q
421: quote
422: @item f
423: $B%j%9%H(B
1.3 takayama 424: @end table
425:
426: @itemize @bullet
427: @item
1.34 ohara 428: @code{quote_to_funargs} $B$O(B quote $B7?$N%G!<%?(B ($BFbItE*$K$O(B FNODE) $B$r(B
429: quote $B$X$NI|852DG=$J7A$G%j%9%H$XJQ49$9$k(B.
430: @code{quotetolist} $B$O(B quote $B$r%j%9%H$XJQ49$9$k$,(B, $B0lIt$N>pJs$r<N$F$k$?$a(B
431: $B$b$H$N(B quote $B$NI|85$O$G$-$J$$(B.
432: @item
433: @code{quote_to_funargs} $B$NLa$jCM$O(B [fid, op, arg1, arg2, ...]
434: $B$J$k7A<0$r$7$F$$$k(B.
435: $B$3$3$G(B op $B$O(B node $B$NL>A0$G$"$j(B,
436: $B4X?t(B @code{get_function_name} $B$rMQ$$$F?M4V$,FI$a$k7A<0(B
437: $B$G<h$j$@$;$k(B.
438: $B$?$H$($P(B @code{get_function_name(quote_to_funargs(quote(1+2))[1])}
439: $B$O(B "+" $B$rLa$9(B.
1.3 takayama 440: @item
1.34 ohara 441: $BL>A0(B@code{get_function_name} $B$O$=$N$&$AJQ99$5$l$k$@$m$&(B.
1.3 takayama 442: @item
1.34 ohara 443: $B2<$NNc$G(B
444: quote_to_funargs(FA[2]);
445: [34,[b_op,+,[internal,x],[internal,1]]]
446: $B$H$J$k(B.
447: 34 $B$O(B @code{I_PAREN} $B$r0UL#$9$k(B.
448: $B?t$H0UL#$NBP1~I=$O(B @code{OpenXM/src/asir-contrib/packages/src/noro_simplify.rr}
449: $B$^$?$O(B @code{OpenXM_contrib2/asir2000/parse/parse.h} $B$r8+$h(B.
450: $B0J2<$N(B fid $B$,(B 0, 1, 2, ... $B$KBP1~$E$1$i$l$F$$$k(B.
451: I_BOP, I_COP, I_AND, I_OR, I_NOT, I_CE,
452: I_PRESELF, I_POSTSELF,
453: I_FUNC, I_FUNC_OPT, I_IFUNC, I_MAP, I_RECMAP, I_PFDERIV,
454: I_ANS, I_PVAR, I_ASSPVAR,
455: I_FORMULA, I_LIST, I_STR, I_NEWCOMP, I_CAR, I_CDR, I_CAST,
456: I_INDEX, I_EV, I_TIMER, I_GF2NGEN, I_GFPNGEN, I_GFSNGEN,
457: I_LOP, I_OPT, I_GETOPT, I_POINT, I_PAREN, I_MINUS,
458: I_NARYOP
1.3 takayama 459: @end itemize
460:
1.34 ohara 461: $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.
462: @example
463: [0] ctrl("print_quote",1) $
464:
465: [1] Q=quote((x+1)+(x+2));
466: [b_op,+,[u_op,(),[b_op,+,[internal,x],[internal,1]]],
467: [u_op,(),[b_op,+,[internal,x],[internal,2]]]]
468:
469: [2] FA=quote_to_funargs(Q);
470: [0,<...quoted...>,
471: [u_op,(),[b_op,+,[internal,x],[internal,1]]],
472: [u_op,(),[b_op,+,[internal,x],[internal,2]]]]
473:
474: [3] FA2=quote_to_funargs(FA[2])[1];
475: [b_op,+,[internal,x],[internal,1]]
476:
477: [4] FA3=quote_to_funargs(FA[3])[1];
478: [b_op,+,[internal,x],[internal,2]]
479:
480: [5] funargs_to_quote([FA[0],FA[1],FA2,FA3]);
481: [b_op,+,[b_op,+,[internal,x],[internal,1]],
482: [b_op,+,[internal,x],[internal,2]]]
483: @end example
484:
485: $B<!$NNc$O(B OpenXM/asir-contrib $BHG$N(B asir $B$G<B9T(B.
486: @example
487: [1287] load("noro_simplify.rr");
488: 1
489: [1293] noro_simplify.remove_paren(quote( f(1-(x))));
490: quote(f(1-x))
491: @end example
1.3 takayama 492:
1.34 ohara 493: funargs_to_quote $B$rMQ$$$F4{B8$N(B quote $B$N;R6!$rCV$-49$($F(B
494: $B?7$7$$(B quote $B$r$D$/$j=P$;$k(B.
495: @example
496: [1184] R=quote_to_funargs(quote(a+(b+c)));
497: [0,<...quoted...>,<...quoted...>,<...quoted...>]
498: [1185] T=quote_to_funargs(quote(1+2));
499: [0,<...quoted...>,<...quoted...>,<...quoted...>]
500: [1186] funargs_to_quote([0,R[1],R[2],T[2]]);
501: quote(a+1)
1.3 takayama 502: @end example
503:
1.34 ohara 504: @table @t
505: @item $B;2>H(B
506: @ref{quotetolist}
507: @end table
508:
1.3 takayama 509:
510: @noindent
511: ChangeLog
512: @itemize @bullet
1.34 ohara 513: @item
514: $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
515: $B$N<B83E*4X?t$G$"$k(B.
516: $BJQ99$r$&$1$?%=!<%9%3!<%I$OB?4t$K$o$?$k$N$G$^$@=q$+$J$$(B.
517: @item
518: $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.
519: @item
520: 2004-6-26 $B$N7W;;Be?t%;%_%J!<$K$*$$$F(B, $BCf@n$5$s$,(B simplifier $B$K$D$$$F$$$m$$$mLdBjDs5/(B
521: $B$r$7$?(B ($B7W;;Be?t%;%_%J!<%S%G%*;2>H(B).
1.56 takayama 522: @item parse/quote.c $B$N(B strcut fid_spec fid_spec_tab[]
1.34 ohara 523: $B$NItJ,$K=q$$$F$"$k7A<0$K(B @code{funargs_to_quote} $B$OJQ49$9$k(B.
1.3 takayama 524: @end itemize
525:
526:
1.34 ohara 527: @node eval_quote,,, $B%/%*!<%H(B
528: @subsection @code{eval_quote}
529: @findex eval_quote
1.3 takayama 530:
531: @comment --- $B4X?t$N4JC1$J@bL@(B ---
532: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
533: @table @t
1.34 ohara 534: @item eval_quote(@var{Q});
535: :: quote $B7?%G!<%?(B @var{Q} $B$r(B asir $B$N%*%V%8%'%/%H$KJQ49$9$k(B.
1.3 takayama 536: @end table
537:
538: @table @var
539: @item return
1.34 ohara 540: $B%*%V%8%'%/%H(B
541: @item Q
542: quote$B7?(B
543: @end table
544:
545: @itemize @bullet
546: @item quote $B7?%G!<%?(B @var{Q} $B$r(B asir $B$N%*%V%8%'%/%H$KJQ49$9$k(B.
547: @item $B5U4X?t$O(B @code{objtoquote}
548: @end itemize
549:
550: @example
551: ctrl("print_quote",2);
552: A=quote((x-1)^2+(x-1)+3);
553: $B=PNO(B: ((((x)-(1))^(2))+((x)-(1)))+(3)
554: eval_quote(A);
555: $B=PNO(B: x^2-x+3
556: print_input_form(A); /* asir-contrib */
557: $B=PNO(B: quote((x-1)^2+(x-1)+3)
1.11 ohara 558: @end example
1.3 takayama 559:
1.34 ohara 560: @table @t
561: @item $B;2>H(B
562: @ref{objtoquote}, @ref{quotetolist}, @ref{eval_string},
563: @ref{quote_to_funargs}, @ref{funargs_to_quote}
564: @end table
1.3 takayama 565:
566: @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 567: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.3 takayama 568: @noindent
569: ChangeLog
570: @itemize @bullet
1.34 ohara 571: @item -----$B$^$@=q$$$F$J$$(B.
1.1 takayama 572: @end itemize
573:
1.34 ohara 574:
575: @node nqt_match,,, $B%/%*!<%H(B
576: @subsection @code{nqt_match}
577: @findex nqt_match
1.1 takayama 578:
579: @comment --- $B4X?t$N4JC1$J@bL@(B ---
580: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
581: @table @t
1.34 ohara 582: @item nqt_match(@var{Expr},@var{Pattern}[,@var{Mode}])
583: :: @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 584: @end table
585:
1.34 ohara 586: @table @var
587: @item return
588: $B@0?t(B
589: @item Expr
590: quote$B7?(B
591: @item Pattern
592: quote$B7?(B
593: @item Mode
594: $B@0?t(B
595: @end table
1.3 takayama 596:
597: @itemize @bullet
1.34 ohara 598: @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.
599: @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.
600: @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.
601: @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
602: fnode$BI8=`7A$H(B @var{Pattern} $B$rHf3S$9$k(B.
1.3 takayama 603: @end itemize
604:
1.34 ohara 605: @example
606: ctrl("print_quote",2);
607: A=quote((x-y)*(x+y));
608: nqt_match(A,quote(P*Q));
609: [P,Q]
610: $B=PNO(B: [x-y, x+y]
611: nqt_match(A,quote(P*Q),1);
612: $B%^%C%A$7$J$$(B.
613: nqt_match(A,quote(P*Q),2);
614: $B%^%C%A$7$J$$(B.
615: qt_normalize(A,1);
616: $B=PNO(B: ((x)^(2))+((x)*(y))+((-1)*((y)^(2)))+((-1)*(y)*(x))
617: qt_normalize(A,2);
618: $B=PNO(B: ((x)*(x))+((x)*(y))+((-1)*(y)*(x))+((-1)*(y)*(y))
619: @end example
620:
621: @table @t
622: @item $B;2>H(B
623: @ref{nqt_match_rewrite},
624: @ref{qt_rewrite}
625: @end table
1.3 takayama 626:
627: @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 628: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.3 takayama 629: @noindent
630: ChangeLog
631: @itemize @bullet
1.34 ohara 632: @item ----- $B$^$@=q$$$F$J$$(B.
1.3 takayama 633: @end itemize
634:
1.4 takayama 635:
1.34 ohara 636: @node nqt_match_rewrite,,, $B%/%*!<%H(B
637: @subsection @code{nqt_match_rewrite}
638: @findex nqt_match_rewrite
1.4 takayama 639:
640: @comment --- $B4X?t$N4JC1$J@bL@(B ---
641: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
642: @table @t
1.34 ohara 643: @item nqt_match_rewrite(@var{Expr},@var{Rule},@var{Mode})
644: :: @var{Expr} $B$r(B @var{Rule} $B$K=>$$=q$-49$($k(B.
1.4 takayama 645: @end table
646:
647: @table @var
648: @item return
1.34 ohara 649: quote$B7?(B
650: @item Expr
651: quote$B7?(B
652: @item Rule
653: [@var{Pattern},@var{Action}] $B$+$^$?$O(B
654: [@var{Pattern},@var{Condition},@var{Action}].
655: $B$3$l$i$NMWAG$O$9$Y$F(B quote$B7?(B.
656: @item Mode
657: $B@0?t(B
1.4 takayama 658: @end table
659:
660: @itemize @bullet
1.34 ohara 661: @item @var{Expr} $B$r(B @var{Rule} $B$K=>$$=q$-49$($k(B. @var{Pattern} $B$KE,9g$7$J$$>l9g$O(B
662: @var{Exprt} $B<+BN$rLa$9(B.
663: @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 664: @end itemize
665:
1.34 ohara 666: @comment %%Doc: cfep/tests/2006-03-12-qt.rr
1.4 takayama 667: @example
1.34 ohara 668: ctrl("print_quote",2);
669: nqt_match_rewrite(`x*y*z,[`X*Y,`X+Y],1);
670: $B=PNO(B: (x)+((y)*(z))
671: A=`x*x;
672: nqt_match_rewrite(A,[`X*Y,`X+Y],1);
673: $B=PNO(B: x^2 ($B%^%C%A$7$F$$$J$$(B)
674: nqt_match_rewrite(A,[`X*Y,`X+Y],2);
675: $B=PNO(B: 2*x
676:
677: $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.
678: quotetolist(qt_normalize(`x*x,0));
679: $B=PNO(B: [b_op,^,[internal,x],[internal,2]]
680: quotetolist(qt_normalize(`x*x,1));
681: $B=PNO(B: [b_op,^,[internal,x],[internal,2]]
682: quotetolist(qt_normalize(`x*x,2));
683: $B=PNO(B: [n_op,*,[internal,x],[internal,x]]
1.4 takayama 684: @end example
685:
686: @table @t
687: @item $B;2>H(B
1.34 ohara 688: @ref{nqt_match},
689: @ref{qt_rewrite},
690: @ref{qt_normalize}
1.4 takayama 691: @end table
692:
693: @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
694: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
695: @noindent
696: ChangeLog
697: @itemize @bullet
1.34 ohara 698: @item -----$B$^$@=q$$$F$J$$(B.
1.4 takayama 699: @end itemize
700:
1.34 ohara 701:
702:
703: @node qt_normalize,,, $B%/%*!<%H(B
704: @subsection @code{qt_normalize}
705: @findex qt_normalize
1.6 takayama 706:
707: @comment --- $B4X?t$N4JC1$J@bL@(B ---
708: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
709: @table @t
1.34 ohara 710: @item qt_normalize(@var{Expr}[,@var{Mode}])
711: :: @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 712: @end table
713:
714: @table @var
715: @item return
1.34 ohara 716: quote$B7?(B
717: @item Expr
718: quote$B7?(B
719: @item Mode
720: $B@0?t(B
1.6 takayama 721: @end table
722:
1.34 ohara 723: fnode$B$O(B quote$B7?$N<BBN$G$"$k(B.
724: fnode $B$OLZ$G$"$j(B, $B7?(B id $B$*$h$S;R6!$+$i$J$k(B.
725: $B7?$*$h$S;R6!$r<h$j=P$94X?t$,(B funargs_to_quote $B$G$"$k(B.
726: $B$^$?(B fnode $B$r%j%9%H$KJQ49$9$k4X?t$,(B quotetolist $B$G$"$k(B.
727:
728: fnode $B$NI8=`7A$O%Q%?!<%s%^%C%A%s%0(B, $B=q$-49$($rMF0W$K$*$3$J$&$?$a$KF3F~$5$l$?(B.
729: 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.
730: @example
731: fn = formula | functor(nf [,...]) | sum_of_monom
732: fnode $B$NI8=`7A(B. functor $B$O4X?t$h$S$@$7$_$?$$$J$b$N(B.
733: sum_of_monom = monom [+ ...]
734: $B%b%N%_%"%k$NOB(B
735: monom = [formula *] nfpow [* ...]
736: $B%b%N%_%"%k(B
737: nfpow = nf | nf^(nf)
738: $BQQ>hItJ,$NI8=`7A(B
739: formula = Risa object
740: @end example
741:
742:
1.6 takayama 743: @itemize @bullet
1.34 ohara 744: @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.
745: @item $BE83+$O:F5"E*$G$"$k(B.
746: @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
747: (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
748: $B;R6!$r;}$F$k(B n-ary operator $B$KJQ49$5$l$k(B.
749: @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.
750: @item @var{Mode}=0. $BE83+$7$J$$(B. $B$3$l$,4{Dj$NF0:n(B.
751: @item @var{Mode}=1. $BE83+$9$k(B. $B$?$@$7(B x*x $BEy$r(B x^2 $BEy$KJQ49(B
752: @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 753: @end itemize
754:
1.34 ohara 755: @var{Mode} $B$N0c$$$K$D$$$F$O0J2<$NNc$b;29M$K(B.
756: @comment %%cfep/tests/2006-03-12-qt.rr
1.6 takayama 757: @example
1.34 ohara 758: ctrl("print_quote",2);
759: A=quote((x-y)*(x+y));
760: $B=PNO(B: ((x)-(y))*((x)+(y))
761: B=qt_normalize(A,0);
762: $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.
763: quotetolist(B);
764: $B=PNO(B: [n_op,*,[n_op,+,[internal,x],[n_op,*,[internal,-1],[internal,y]]],[n_op,+,[internal,x],[internal,y]]]
1.6 takayama 765:
1.34 ohara 766: B=qt_normalize(A,1);
767: $B=PNO(B: ((x)^(2))+((x)*(y))+((-1)*((y)^(2)))+((-1)*(y)*(x))
768: Mode=1. $BE83+$9$k(B. +, * $B$O(B n_op (nary-op) $B$X(B. $B6R$r$^$H$a$k(B.
769: quotetolist(B);
770: $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 771:
1.34 ohara 772: qt_normalize(A,2);
773: $B=PNO(B: ((x)*(x))+((x)*(y))+((-1)*(y)*(x))+((-1)*(y)*(y))
774: Mode=2. $BE83+$9$k(B. +, * $B$O(B n_op (nary-op) $B$X(B. $B6R$O;H$o$J$$(B.
775: quotetolist(B);
776: $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 777:
1.34 ohara 778: qt_normalize(`x^2,2);
779: $B=PNO(B: (x)*(x)
780: Mode=2. $B6R$O;H$o$J$$(B. n-ary $B$N(B * $B$X(B.
1.6 takayama 781: @end example
782:
783: @table @t
784: @item $B;2>H(B
1.34 ohara 785: @ref{nqt_match},
786: @ref{nqt_match_rewrite},
787: @ref{quotetolist},
788: @ref{quote_to_funargs}
1.6 takayama 789: @end table
790:
791: @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 792: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.6 takayama 793: @noindent
794: ChangeLog
795: @itemize @bullet
1.34 ohara 796: @item -----$B$^$@=q$$$F$J$$(B.
1.6 takayama 797: @end itemize
798:
1.34 ohara 799:
800: @node qt_set_coef,,, $B%/%*!<%H(B
801: @subsection @code{qt_set_coef}
802: @findex qt_set_coef
1.6 takayama 803:
804: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1.34 ohara 805: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.6 takayama 806: @table @t
1.34 ohara 807: @item qt_set_coef(@var{ParamList})
808: :: $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
809: $BHs2D49B?9`<0$r07$&(B.
1.6 takayama 810: @end table
811:
812: @table @var
813: @item return
1.34 ohara 814: $B%j%9%H(B
815: @item ParamList
816: $B%j%9%H(B
1.6 takayama 817: @end table
818:
819: @itemize @bullet
1.34 ohara 820: @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
821: $BHs2D49B?9`<0$r07$&(B.
822: @item $B$3$N@k8@$r$7$J$$$H78?tBN$r?t$H$9$kHs2D49B?9`<0$H$7$F7W;;$9$k(B.
823: @item qt_normalize $B$*$h$S$=$N5!G=$rMQ$$$k4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
824: @item qt_comp $B4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
1.6 takayama 825: @end itemize
826:
827: @example
1.34 ohara 828: ctrl("print_quote",2);
829: qt_set_coef([a]);
830: B=qt_normalize(quote((a*x+a)^2),2);
831: $B=PNO(B: ((a^2)*(x)*(x))+((2*a^2)*(x))+(a^2)
832: qt_normalize(B+B,2);
833: $B=PNO(B: ((2*a^2)*(x)*(x))+((4*a^2)*(x))+(2*a^2)
1.6 takayama 834: @end example
835:
836: @table @t
837: @item $B;2>H(B
1.34 ohara 838: @ref{qt_normalize}
1.6 takayama 839: @end table
840:
841: @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 842: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.6 takayama 843: @noindent
844: ChangeLog
845: @itemize @bullet
1.34 ohara 846: @item -----$B$^$@=q$$$F$J$$(B.
1.6 takayama 847: @end itemize
848:
1.34 ohara 849:
850: @node qt_set_ord,,, $B%/%*!<%H(B
851: @subsection @code{qt_set_ord}
852: @findex qt_set_ord
1.6 takayama 853:
854: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1.34 ohara 855: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.6 takayama 856: @table @t
1.34 ohara 857: @item qt_set_ord(@var{VarList})
858: :: @var{VarList} $B$rJQ?t=g=x$H$9$k(B.
1.6 takayama 859: @end table
860:
861: @table @var
862: @item return
1.34 ohara 863: $B%j%9%H(B
864: @item VarList
865: $B%j%9%H(B
1.6 takayama 866: @end table
867:
868: @itemize @bullet
1.34 ohara 869: @item @var{VarList} $B$r<-=q<0$KMQ$$$?JQ?t=g=x$r0J2<;HMQ$9$k(B.
870: @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.
871: @var{VarList} $B$K8=$l$J$$JQ?t$K$D$$$F$O$3$N=g=x$,E,MQ$5$l$k(B.
872: @item qt_normalize $B$*$h$S$=$N5!G=$rMQ$$$k4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
873: @item qt_comp $B4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
1.6 takayama 874: @end itemize
875:
876: @example
1.34 ohara 877: ctrl("print_quote",2);
878: qt_normalize(quote(x+y),2);
879: $B=PNO(B: (x)+(y)
880: qt_set_ord([y,x]);
881: $B=PNO(B: [y,x,z,u,v,w,p,q,r,s,t,a,b,c,d,e,f,g, $B0J2<>JN,(B ]
882: qt_normalize(quote(x+y),2);
883: $B=PNO(B: (y)+(x)
1.6 takayama 884: @end example
885:
886: @table @t
887: @item $B;2>H(B
1.34 ohara 888: @ref{qt_normalize},
889: @ref{nqt_comp}
1.6 takayama 890: @end table
891:
892: @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 893: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.6 takayama 894: @noindent
895: ChangeLog
896: @itemize @bullet
1.34 ohara 897: @item -----$B$^$@=q$$$F$J$$(B.
1.6 takayama 898: @end itemize
899:
1.8 takayama 900:
1.34 ohara 901: @node qt_set_weight,,, $B%/%*!<%H(B
902: @subsection @code{qt_set_weight}
903: @findex qt_set_weight
1.8 takayama 904:
1.34 ohara 905: @comment --- $B4X?t$N4JC1$J@bL@(B ---
906: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.8 takayama 907: @table @t
1.34 ohara 908: @item qt_set_weight(@var{WeightVector})
909: :: $BJQ?t$K$D$$$F(B weight $B%Y%/%H%k$r@_Dj$9$k(B.
1.8 takayama 910: @end table
911:
912: @table @var
913: @item return
1.34 ohara 914: $B%j%9%H(B
915: @item WeightVector
916: $B%j%9%H(B
1.8 takayama 917: @end table
918:
1.34 ohara 919: fnode f $B$N(B weight w(f) $B$O<!$N<0$G7W;;$9$k(B.
920: @example
921: f $B$,MU$N>l9g$O86B'(B 0. qt_weight_vector $B$G(B weight $B$,M?$($i$l$F$$$kITDj85$K(B
922: $B$D$$$F$O$=$NCM(B.
923:
924: f $B$,(Bnode$B$N>l9g$O<!$N5,B'$G:F5"E*$K$-$a$k(B.
925: w(f+g) = max(w(f),w(g))
926: w(f g) = w(f) + w(g)
927: w(f^n) = n w(f)
928: $B4X?t$K$D$$$F$O(B? -----$B$^$@=q$$$F$J$$(B.
929: @end example
930:
1.8 takayama 931: @itemize @bullet
1.34 ohara 932: @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.
933: @var{WeightVector} $B$K8=$l$J$$JQ?t$K$D$$$F$N(B weight $B$O(B 0 $B$H$J$k(B.
934: @item qt_normalize $B$*$h$S$=$N5!G=$rMQ$$$k4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
935: qt_normalize $B$G$NE83+$G$O(B, $B$3$N=g=x$rMQ$$$F9`$,%=!<%H$5$l$k(B.
936: @item qt_comp $B$*$h$S$=$N5!G=$rMQ$$$k4X?t$,$3$N5!G=$N1F6A$r<u$1$k(B.
937: @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 938: @end itemize
939:
940: @example
1.34 ohara 941: ctrl("print_quote",2);
942: qt_set_weight([[x,-1],[y,-1]]);
943: $B7k2L(B: [[x,-1],[y,-1]]
944: qt_normalize(quote( 1+(x+y)+(x+y)^2),1);
945: $B7k2L(B: (1)+(y)+(x)+((y)^(2))+((y)*(x))+((x)^(2))+((x)*(y))
1.8 takayama 946: @end example
947:
948: @table @t
949: @item $B;2>H(B
1.34 ohara 950: @ref{qt_normalize},
951: @ref{qt_set_ord},
952: @ref{qt_set_weight},
953: @ref{dp_gr_main}
1.8 takayama 954: @end table
955:
956: @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
957: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
958: @noindent
959: ChangeLog
960: @itemize @bullet
1.34 ohara 961: @item -----$B$^$@=q$$$F$J$$(B.
1.8 takayama 962: @end itemize
963:
964:
1.34 ohara 965: @node nqt_comp,,, $B%/%*!<%H(B
966: @subsection @code{nqt_comp}
967: @findex nqt_comp
968:
969: @comment --- $B4X?t$N4JC1$J@bL@(B ---
970: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.8 takayama 971: @table @t
1.34 ohara 972: @item nqt_cmp(@var{Expr1},@var{Exprt2})
973: :: @var{Expr1} $B$H(B @var{Expr2} $B$N=g=x$rHf3S$9$k(B.
1.8 takayama 974: @end table
975:
976: @table @var
977: @item return
1.34 ohara 978: $B@0?t(B
979: @item Expr1, Expr2
980: quote$B7?(B
1.8 takayama 981: @end table
982:
983: @itemize @bullet
1.34 ohara 984: @item @var{Expr1} $B$H(B @var{Expr2} $B$N=g=x$rHf3S$9$k(B.
985: @item @var{Expr1} > @var{Exprt2} $B$J$i(B 1.
986: @item @var{Expr1} < @var{Exprt2} $B$J$i(B -1.
987: @item @var{Expr1} = @var{Exprt2} ($B$*$J$8=g=x(B) $B$J$i(B 0.
1.8 takayama 988: @end itemize
989:
990: @example
1.34 ohara 991: ctrl("print_quote",2);
992: qt_set_ord([y,x]); qt_set_weight([[x,-1],[y,-1]]);
993: [nqt_comp(`x,`y), nqt_comp(`y,`x), nqt_comp(`x,`x)];
994: $B=PNO(B: [-1,1,0]
1.8 takayama 995: @end example
996:
997: @table @t
998: @item $B;2>H(B
1.34 ohara 999: @ref{qt_normalize},
1000: @ref{qt_set_ord},
1001: @ref{qt_set_weight}
1.8 takayama 1002: @end table
1003:
1004: @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
1005: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1006: @noindent
1007: ChangeLog
1008: @itemize @bullet
1.34 ohara 1009: @item $B$^$@=q$$$F$J$$(B.
1.8 takayama 1010: @end itemize
1.34 ohara 1011: @comment ****************************************************************
1.8 takayama 1012:
1.55 takayama 1013: @node qt_is_var qt_is_coef,,, $B%/%*!<%H(B
1.34 ohara 1014: @subsection @code{qt_is_var}, @code{qt_is_coef}
1015: @findex qt_is_var
1016: @findex qt_is_coef
1.9 takayama 1017:
1018: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1.34 ohara 1019: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.9 takayama 1020: @table @t
1.34 ohara 1021: @item qt_is_var(@var{Expr})
1022: :: @var{Expr} $B$,ITDj85$KBP1~$9$k(B quote $B$J$i(B 1 $B$rLa$9(B.
1023: @item qt_is_coef(@var{Expr})
1024: :: @var{Expr} $B$,78?t$NM-M}4X?tBN$KB0$9$k$H$-(B 1 $B$rLa$9(B.
1.9 takayama 1025: @end table
1026:
1027: @table @var
1028: @item return
1029: $B@0?t(B
1.34 ohara 1030: @item Expr
1031: quote$B7?(B
1.9 takayama 1032: @end table
1033:
1034: @itemize @bullet
1.34 ohara 1035: @item @var{Expr} $B$,ITDj85$KBP1~$9$k(B quote $B$J$i(B 1 $B$rLa$9(B.
1036: $B$=$&$G$J$$$H$-(B 0 $B$rLa$9(B.
1.9 takayama 1037: @end itemize
1038:
1039: @example
1.34 ohara 1040: [qt_is_var(quote(x)), qt_is_var(quote(3/2))];
1041: $B=PNO(B: [1,0]
1.9 takayama 1042: @end example
1043:
1044: @table @t
1045: @item $B;2>H(B
1.34 ohara 1046: @ref{qt_rewrite},
1047: @ref{nqt_match_rewrite}
1.9 takayama 1048: @end table
1049:
1.34 ohara 1050: @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
1051: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.9 takayama 1052: @noindent
1053: ChangeLog
1054: @itemize @bullet
1.34 ohara 1055: @item -----$B$^$@=q$$$F$J$$(B.
1.9 takayama 1056: @end itemize
1.34 ohara 1057: @comment ****************************************************************
1.8 takayama 1058:
1.34 ohara 1059: @node qt_rewrite,,, $B%/%*!<%H(B
1060: @subsection @code{qt_rewrite}
1061: @findex qt_rewrite
1.12 takayama 1062:
1063: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1.34 ohara 1064: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.12 takayama 1065: @table @t
1.34 ohara 1066: @item qt_rewrite(@var{Expr},@var{Rules},@var{Mode})
1067: :: @var{Expr} $B$r5,B'=89g(B @var{Rules} $B$rMQ$$$F=q$-49$($k(B.
1.12 takayama 1068: @end table
1069:
1070: @table @var
1071: @item return
1.34 ohara 1072: quote$B7?(B
1073: @item Expr
1074: quote$B7?(B
1075: @item Rules
1076: $B%j%9%H(B
1077: @item Mode
1.12 takayama 1078: $B@0?t(B
1079: @end table
1080:
1081: @itemize @bullet
1.34 ohara 1082: @item $B%f!<%68@8l$rMQ$$$FDj5A$5$l$?4X?t(B.
1083: @code{import("noro_rewrite.rr")} $B$7$F$*$/$3$H(B.
1084: (noro_rewrite.rr $B$,(B OpenXM/lib/asir-contrib $B$KB8:_$7$J$$>l9g(B
1085: $B%=!<%9$N(B OpenXM/src/asir-contrib/testing/noro/new_rewrite.rr $B$r%3%T!<(B)
1086: @item @var{Expr} $B$r5,B'=89g(B @var{Rules} $B$rMQ$$$F=q$-49$($k(B.
1087: @item $B5,B'$NE,MQ$O(B fnode$BLZ$KBP$7$F:F5"E*$G$"$k(B.
1088: $B0lJ}(B @code{nqt_match_rewrite} $B$G$O%H%C%W%l%Y%k$N$_$K5,B'$,E,MQ$5$l$k(B.
1089: @item $B5,B'=89g(B @var{Rules} $B$N3FMWAG$N=q$-J}$O(B @code{nqt_match()} $B$N(B
1090: @var{Pattern} $B$HF1$8=q$-J}(B.
1091: $B$D$^$j(B [$B%Q%?!<%s(B, $B=q$-49$(7k2L(B] $B$^$?$O(B
1092: [$B%Q%?!<%s(B, $B>r7o(B, $B=q$-49$(7k2L(B].
1093: @item @var{Mode} $B$N0UL#$O(B @ref{qt_normalize} $B$N(B @var{Mode} $B$HF1MM(B.
1094: $B%Q%?!<%s%^%C%A(B, $B=q$-49$($O(B @var{Mode} $B$G(B @code{qt_normalize()}
1095: $B$5$l$F$+$i?k9T$5$l$k(B.
1.12 takayama 1096: @end itemize
1097:
1.34 ohara 1098: $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
1099: $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,
1100: $B=g=x$,Bg$-$/$J$k>l9g$N$_$K=q$-49$($k$Y$-$G$"$k(B.
1101: @example
1102: import("noro_rewrite.rr");
1103: R=[[`X*Y,`nqt_comp(Y*X,X*Y)>0, `Y*X]];
1104: qt_rewrite(`(x-y)^2,R,2);
1105: $B=PNO(B: quote(x*x+-2*x*y+y*y)
1106: @end example
1107:
1108: $B30@QBe?t$N7W;;(B (asir-contrib $B$r%m!<%I$7$?>uBV(B).
1109: @example
1110: import("noro_rewrite.rr");
1111: Rext0=[quote(X*Y),quote(qt_is_var(X) && qt_is_var(Y) && nqt_comp(Y,X)>0),
1112: quote(-Y*X)];
1113: Rext1=[quote(X^N),quote(eval_quote(N)>=2),quote(0)];
1114: Rext2=[quote(X*X),quote(0)];
1115: Rext=[Rext0,Rext1,Rext2];
1116: qt_rewrite(quote( (x+2*y)*(x+4*y) ), Rext,1);
1117: $B=PNO(B: 2*x*y
1118:
1119: qt_set_coef([a,b,c,d]);
1120: qt_rewrite(quote((a*x+b*y)*(c*x+d*y)), Rext,1);
1121: $B=PNO(B: (d*a-c*b)*x*y
1122:
1123: @end example
1124:
1125: $BHyJ,$N7W;;(B (asir-contrib $B$r%m!<%I$7$?>uBV(B).
1.12 takayama 1126: @example
1.34 ohara 1127: import("noro_rewrite.rr");
1128: qt_set_coef([a,b]);
1129: Rd1=[`d(X+Y), `d(X)+d(Y)];
1130: Rd2=[`d(X*Y),`d(X)*Y+X*d(Y)];
1131: Rd3=[`d(N), `qt_is_coef(N), `0];
1132: Rd4=[`d(x),`1];
1133: Rd=[Rd1,Rd2,Rd3,Rd4];
1134: B=qt_rewrite( `d( (a*x+b)^3),Rd,2);
1135: $B=PNO(B: quote(3*a^3*x*x+6*b*a^2*x+3*b^2*a)
1136: fctr(eval_quote(B));
1137: $B=PNO(B: [[3,1],[a,1],[a*x+b,2]]
1.12 takayama 1138: @end example
1139:
1140: @table @t
1141: @item $B;2>H(B
1.34 ohara 1142: @ref{nqt_match},
1143: @ref{nqt_match_rewrite},
1144: @ref{qt_normalize}
1.12 takayama 1145: @end table
1146:
1147: @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 1148: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.12 takayama 1149: @noindent
1150: ChangeLog
1151: @itemize @bullet
1.34 ohara 1152: @item qt $B7O$N4X?t$N867?$O(B OpenXM/src/asir-contrib/testing/tr.rr $B$G$"$k(B.
1153: $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
1154: qt $B7O$N4X?t$,3+H/$5$l$?(B.
1155: @item qt $B7O$N4X?t$K$D$$$F$N$=$NB>$N;29MJ88%(B:
1156: OpenXM/doc/Papers/2005-rims-noro.tex $B$*$h$S(B
1157: OpenXM/doc/Papers/2005-rims-noro.tm (TeXmacs$B$N5-;v(B).
1158: @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 1159: @end itemize
1160:
1.34 ohara 1161: @comment ****************************************************************
1162:
1163: @node $BJ8;zNs=hM}(B,,, $B<B83E*;EMM$N4X?t(B
1164: @section $BJ8;zNs=hM}(B
1.13 takayama 1165:
1.34 ohara 1166: @comment --- $B"~"~"~"~(B $B4X?t(B copyright $B$N@bL@(B $B"~"~"~"~(B
1167: @node copyright,,, $BJ8;zNs=hM}(B
1168: @subsection @code{copyright}
1169: @findex copyright
1.13 takayama 1170:
1171: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1172: @table @t
1.34 ohara 1173: @item copyright()
1174: :: Risa/Asir $B$N(B copyright $BI=<($rJ8;zNs$H$7$FLa$9(B.
1.13 takayama 1175: @end table
1176:
1177: @table @var
1178: @item return
1.34 ohara 1179: $BJ8;zNs(B
1.13 takayama 1180: @end table
1181:
1182: @itemize @bullet
1183: @item
1.34 ohara 1184: Risa/Asir $B$N(B copyright $BI=<($rJ8;zNs$H$7$FLa$9(B.
1.13 takayama 1185: @end itemize
1186:
1187: @example
1.34 ohara 1188: [1150] copyright();
1189: This is Risa/Asir, Version 20040312 (Kobe Distribution).
1190: Copyright (C) 1994-2000, all rights reserved, FUJITSU LABORATORIES LIMITED.
1191: Copyright 2000-2003, Risa/Asir committers, http://www.openxm.org/.
1192: GC 6.2(alpha6) copyright 1988-2003, H-J. Boehm, A. J. Demers, Xerox, SGI, HP.
1193: PARI 2.0.17, copyright 1989-1999, C. Batut, K. Belabas, D. Bernardi,
1194: H. Cohen and M. Olivier.
1.13 takayama 1195: @end example
1196:
1.34 ohara 1197: @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 1198: @noindent
1199: ChangeLog
1200: @itemize @bullet
1.34 ohara 1201: @item $B$3$N4X?t$O(B texmacs $BMQ$K=q$+$l$?(B (2004-03).
1202: @item OpenXM_contrib2/asir2000 $B$N2<$N0J2<$N%U%!%$%k$r$_$h(B. builtin/miscf.c 1.21,
1203: parse/glob.c 1.47.
1204: @end itemize
1205:
1206:
1207:
1208: @comment --- $B"~"~"~"~(B $B4X?t(B string_to_tb, ... $B$N@bL@(B $B"~"~"~"~(B
1209: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
1210: @node string_to_tb tb_to_string write_to_tb,,, $BJ8;zNs=hM}(B
1211: @subsection @code{string_to_tb}, @code{tb_to_string}, @code{write_to_tb}
1212: @findex string_to_tb
1213: @findex tb_to_string
1214: @findex write_to_tb
1215:
1216: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1217: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1218: @table @t
1219: @item string_to_tb(@var{s})
1220: @itemx tb_to_string(@var{tb})
1221: @itemx write_to_tb(@var{s},@var{tb})
1222: :: $BJ8;zNs2DJQD9G[Ns7?(B(text buffer)$B$N%G!<%?$N=hM}(B
1223: @end table
1224:
1225: @table @var
1226: @item return
1227: $BJ8;zNs2DJQD9G[Ns7?(B(string_to_tb), $BJ8;zNs7?(B(tb_to_string)
1228: @item s
1229: $BJ8;zNs(B
1230: @item tb
1231: $BJ8;zNs2DJQD9G[Ns7?(B
1232: @end table
1233:
1234: @itemize @bullet
1235: @item
1236: @code{string_to_tb(@var{s})} $B$O(B, $BJ8;zNs(B @var{s} $B$r$O$8$a$NMWAG$H$9$k(B
1237: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H$r@8@.$9$k(B.
1238: @item
1239: @code{tb_to_string_(@var{tb})} $B$O(B,
1240: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H(B @var{tb} $B$+$iDL>o$NJ8;zNs%*%V%8%'%/%H$r@8@.$9$k(B.
1241: @item
1242: @code{write_to_tb(@var{s},@var{tb})} $B$O(B, $BJ8;zNs(B @var{s} $B$r(B
1243: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H(B @var{tb} $B$X=q$-=P$9(B.
1244: @item @var{SS} $B$rJ8;zNsJQ?t$H$9$k$H$-(B,
1245: @var{SS} += "$BJ8;zNs(B" $B$G(B @var{SS} $B$XJ8;zNs$r=q$-B-$7$F$$$/$3$H$,$G$-$k$,(B,
1246: $BL5BL$J%a%b%j$rBgNL$K>CHq$9$k(B.
1247: $BBe$j$K4X?t(B @code{write_to_tb} $B$rMQ$$$k$Y$-$G$"$k(B.
1248: $BJ8;zNs2DJQD9G[Ns7?%*%V%8%'%/%H$OJ8;zNs$N2DJQD9$NG[Ns$G$"$j%a%b%j4IM}$KM%$7$$(B
1249: $B%G!<%?9=B$$G$"$k(B.
1250: @end itemize
1251:
1252: @example
1253: [219] T=string_to_tb("");
1254:
1255: [220] write_to_tb("Hello",T);
1256: 0
1257: [221] write_to_tb(" world!",T);
1258: 0
1259: [222] tb_to_string(T);
1260: Hello world!
1261: @end example
1262:
1263:
1264: @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
1265: @noindent
1266: ChangeLog
1267: @itemize @bullet
1268: @item
1269: $B$3$N4X?t$O(B 2004-3 $B$K(B print_tex_form $B$r8zN(2=$9$k$?$a$K=q$+$l$?(B.
1270: @item
1271: OpenXM_contrib2/asir2000 $B$N2<$N0J2<$N%U%!%$%k$r8+$h(B.
1272: io/ox_asir.c 1.52, builtin/strobj.c 1.12--1.13, 1.16,
1273: engine/str.c 1.5, parse/quote.c 1.9.
1.13 takayama 1274: @item
1.34 ohara 1275: rtostr $B$,(B text buffer $B7?$N%G!<%?$K4X$7$F$*$=$+$C$?(B. $BB.EY$N2~A1$O(B
1276: asir2000/io/pexpr_body.c 1.2, asir2000/parse/lex.c 1.32.
1.14 takayama 1277: @end itemize
1278:
1.34 ohara 1279:
1280: @node set_print_function,,, $BJ8;zNs=hM}(B
1281: @subsection @code{set_print_function}
1282: @findex set_print_function
1.14 takayama 1283:
1284: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1285: @table @t
1.34 ohara 1286: @item set_print_function([@var{fname}])
1287: :: $B2hLLI=<(MQ$N4X?t$rEPO?(B
1.14 takayama 1288: @end table
1289:
1290: @table @var
1291: @item return
1.34 ohara 1292: $B@0?t(B
1293: @item fname
1294: $BJ8;zNs(B
1.14 takayama 1295: @end table
1296:
1297: @itemize @bullet
1.34 ohara 1298: @item
1299: @code{set_print_function} $B$O(B @code{fname(F)} $B$rDL>o$N2hLLI=<(4X?t$NBe$o$j$K$h$V(B.
1300: @code $B0z?t$,$J$$>l9g$O2hLLI=<(4X?t$r%G%U%)!<%k%H$XLa$9(B.
1301: @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 1302: @end itemize
1303:
1304: @example
1.34 ohara 1305: [219] def my_output(F) @{
1306: print("Out: ",0); print(rtostr(F));
1307: @}
1308: [220] set_print_function("my_output");
1309: Out: 0
1310: [221] 1+2;
1311: Out: 3
1.14 takayama 1312: @end example
1313:
1314: @table @t
1315: @item $B;2>H(B
1.34 ohara 1316: @ref{rtostr}
1.14 takayama 1317: @end table
1318:
1319: @noindent
1320: ChangeLog
1321: @itemize @bullet
1.34 ohara 1322: @item $B$3$N4X?t$O(B 2001-9-4 $B$K(B asir-contrib $B$N$?$a$KF3F~$5$l$?(B.
1323: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/print.c 1.11 $B$G$"$k(B.
1.12 takayama 1324: @end itemize
1.13 takayama 1325:
1.15 takayama 1326:
1.55 takayama 1327: @node printf fprintf sprintf,,, $BJ8;zNs=hM}(B
1.28 ohara 1328: @subsection @code{printf}, @code{fprintf}, @code{sprintf}
1.55 takayama 1329: @findex printf
1330: @findex fprintf
1.15 takayama 1331: @findex sprintf
1332:
1333: @table @t
1.27 ohara 1334: @item printf(@var{format}[,@var{args}])
1.28 ohara 1335: @item fprintf(@var{fd},@var{format}[,@var{args}])
1.15 takayama 1336: @item sprintf(@var{format}[,@var{args}])
1337: :: C $B$K;w$?%W%j%s%H4X?t(B
1338: @end table
1339:
1340: @table @var
1341: @item return
1.28 ohara 1342: $B@0?t(B(printf,fprintf), $BJ8;zNs(B(sprintf)
1.15 takayama 1343: @item format
1344: $BJ8;zNs(B
1.28 ohara 1345: @item fd
1346: $BHsIi@0?t(B($B%U%!%$%k5-=R;R(B)
1.15 takayama 1347: @item args
1348: $B%*%V%8%'%/%H(B
1349: @end table
1350:
1351: @itemize @bullet
1352: @item
1.27 ohara 1353: @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 1354: @item
1.28 ohara 1355: @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.
1356: @item
1.27 ohara 1357: @code{sprintf} $B$O7k2L$rJ8;zNs$GJV$7(B, $BI8=`=PNO$K$O=q$-=P$5$J$$(B.
1358: @item
1359: $B=q<0J8;zNs$NCf$G(B @code{%a} (any) $B$,MxMQ2DG=(B.
1360: @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 1361: @item
1362: $B%U%!%$%k5-=R;R$O(B, @code{open_file} $B4X?t$rMQ$$$FF@$k$3$H(B.
1.15 takayama 1363: @end itemize
1364:
1365: @example
1.27 ohara 1366: [0] printf("%a: rat = %a\n",10,x^2-1)$
1367: 10: rat = x^2-1
1368: [1] S=sprintf("%a: rat = %a",20,x^2-1)$
1369: [2] S;
1370: 20: rat = x^2-1
1.28 ohara 1371: [3] Fd=open_file("hoge.txt","w");
1372: 0
1373: [4] fprintf(Fd,"Poly=%a\n",(x-1)^3)$
1374: [5] close_file(Fd)$
1375: [6] quit;
1376:
1377: $ cat hoge.txt
1378: Poly=x^3-3*x^2+3*x-1
1.15 takayama 1379: @end example
1380:
1381: @table @t
1382: @item $B;2>H(B
1.28 ohara 1383: @ref{rtostr},@ref{open_file},@ref{close_file}
1.15 takayama 1384: @end table
1385:
1386: @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
1387: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1388: @noindent
1389: ChangeLog
1390: @itemize @bullet
1.34 ohara 1391: @item
1.27 ohara 1392: $B4X?t(B sprintf$B$O(B 2004-7-13 $B$K%3%_%C%H$5$l$?(B.
1.15 takayama 1393: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/strobj (1.50) $B$G$"$k(B.
1.34 ohara 1394: @item
1.27 ohara 1395: $B4X?t(B printf$B$O(B 2007-11-8 $B$K%3%_%C%H$5$l$?(B.
1396: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/print.c (1.23) $B$G$"$k(B.
1.34 ohara 1397: @item
1.28 ohara 1398: $B4X?t(B fprintf$B$O(B 2008-11-18 $B$K%3%_%C%H$5$l$?(B.
1399: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/file.c (1.25) $B$G$"$k(B.
1.34 ohara 1400: @item
1.15 takayama 1401: @code{%a} $B$O(B Maple $B$N(B sprintf $B$N??;w$+(B.
1402: @end itemize
1403:
1404:
1.34 ohara 1405: @node $B%0%l%V%J!<4pDl(B,,, $B<B83E*;EMM$N4X?t(B
1406: @section $B%0%l%V%J!<4pDl(B
1407:
1408: @comment --- $B"~"~"~"~(B $B4X?t(B dp_gr_main $B$N@bL@(B $B"~"~"~"~(B
1409: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
1410: @node dp_gr_main,,, $B%0%l%V%J!<4pDl(B
1411: @subsection @code{dp_gr_main}
1412: @findex dp_gr_main
1.15 takayama 1413:
1.34 ohara 1414: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1415: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1.15 takayama 1416: @table @t
1.34 ohara 1417: @item dp_gr_main(@var{f} | v=@var{vv}, order=@var{oo}, homo=@var{n}, matrix=@var{m}, block=@var{b}, sugarweight=@var{sw})
1418: :: dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9(B.
1.15 takayama 1419: @end table
1420:
1421: @table @var
1422: @item return
1.34 ohara 1423: $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 1424: @item f
1.34 ohara 1425: $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)
1426: @item vv
1427: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
1428: @item oo
1429: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
1430: @item n
1431: 0 $B$+(B1 (homogenization $B$r$9$k$+(B)
1432: @item m
1433: $B=g=x$r(B matrix $B$GI=8=$9$k>l9g(B (cf. dp_ord).
1434: @item b
1435: ???
1436: @item sw
1437: Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. $BA4$F$NMWAG$OHsIi(B.
1.15 takayama 1438: @end table
1439:
1440: @itemize @bullet
1441: @item
1.34 ohara 1442: @code{dp_gr_main(@var{f})} $B$O(B, @var{f} $B$N%0%l%V%J4pDl$r7W;;$9$k(B.
1443: $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
1444: $B7OE}$@$C$F$$$J$+$C$?(B.
1445: dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B.
1446: @comment ~taka/this03/misc-2003/A2/dp
1447: @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.
1448: @example
1449: order : '[' orderElement @{ ',' orderElement @} ']'
1450: orderElement : weightVec | builtinOrder
1451: weightVec : '[' weightElement @{ ',' weightElement @} ']'
1452: builtiniOrder : '[' orderName ',' setOfVariables ']'
1453: weightElement : NUMBER | setOfVariables ',' NUMBER
1454: setOfVariables: V | range(V,V)
1455: orderName : @@grlex | @@glex | @@lex
1456: @end example
1457: $B$3$3$G(B @code{V} $B$O(B $BJQ?tL>(B, @code{NUMBER} $B$O@0?t$r$"$o$i$9(B.
1458: $BNc(B1: @code{v=[x,y,z,u,v], order=[[x,10,y,5,z,1],[@@grlex,range(x,v)]]}
1459: $B$O(B @code{x},@code{y},@code{z} $B$,$=$l$>$l(B weight 10, 5, 1 $B$r$b$D(B
1460: $B=g=x$GHf3S$7$?$"$H(B, @code{[x,y,z,u,v]} $B$K$D$$$F$N(B
1461: graded reverse lexicographic order $B$r(B tie-breaker $B$H$7$FMQ$$$k$3$H$r0UL#$9$k(B.
1462: $B;29M=q(B: B.Sturmfels: Gr\"obner Bases and Convex Polytopes (1995).
1463: M.Saito, B.Sturmfels, N.Takayama:
1464: Gr\"obner Deformations of Hypergeometric Differential Equations (2000).
1465: @item
1466: $B=g=xMWAG(B (orderElement) $B$N;XDjJ}K!$O(B
1467: (1) $BJQ?tL>$^$?$O(B range$B$G;XDj$5$l$?JQ?t$N=89g$H=E$_$NCM$N7+$jJV$7(B
1468: (2) $B=E$_$NCM$rJQ?t%j%9%H$N=gHV$KJB$Y$kJ}K!(B
1469: (3) $BJQ?tL>$^$?$O(B range$B$G;XDj$5$l$?JQ?t$N=89g$H=g=xL>$NAH(B
1470: $B$N;0DL$j$N4pACE*J}K!$,$"$k(B.
1471: $B;w$?;XDjJ}K!$,(B Macaulay, Singular, CoCoA, Kan/sm1 $BEy$N4DO@%7%9%F%`$G(B
1472: $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
1473: $B$5$i$K2~NI$r2C$($?$b$N$G=@Fp@-$,9b$$(B.
1474: @item
1475: order $B$N(B tie-breaker $B$O(B grlex $B$,%G%U%)!<%k%H(B.
1.15 takayama 1476: @item
1.34 ohara 1477: $BJ,;6I=8=B?9`<0$r0z?t$H$7$?$H$-$O7k2L$bJ,;6I=8=B?9`<0$H$7$FLa$k(B.
1478: 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 1479: @item
1.34 ohara 1480: $B%*%W%7%g%s$NCM$O(B option_list $B%-!<%o!<%I$rMQ$$$F%j%9%H$GM?$($F$b$h$$(B.
1481: $B2<$NNc$r;2>H(B.
1.15 takayama 1482: @end itemize
1483:
1484: @example
1.34 ohara 1485: [218] load("cyclic");
1486: [219] V=vars(cyclic(4));
1487: [c0,c1,c2,c3]
1488: [220]dp_gr_main(cyclic(4) | v=V, order=[[c0,10,c1,1],[c2,5],[@@grlex,range(c0,c3)]]);
1489: [ 10 1 0 0 ]
1490: [ 0 0 5 0 ]
1491: [ R R R R ]
1492: [(-c3^6+c3^2)*c2^2+c3^4-1,c3^2*c2^3+c3^3*c2^2-c2-c3,
1493: (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,
1494: c0+c1+c2+c3]
1.15 takayama 1495:
1.34 ohara 1496: [1151] F=map(dp_ptod,katsura(4), vars(katsura(4)));
1497: [(1)*<<1,0,0,0,0>>+(2)*<<0,1,0,0,0>>+ ... ]
1498: [1152] dp_gr_main(F | order=[[range(x0,x3),1]]);
1499: [ 1 1 1 1 0 ]
1500: [ R R R R R ]
1501: [(47774098944)*<<0,0,0,0,13>>+ ... ]
1.15 takayama 1502:
1.34 ohara 1503: [1153] Opt=[["v",[x,y]], ["order",[[x,5,y,1]]]];
1504: [[v,[x,y]],[order,[[x,5,y,1]]]]
1505: [1154] dp_gr_main([x^2+y^2-1,x*y-1] | option_list=Opt);
1506: [ 5 1 ]
1507: [ R R ]
1508: [-y^4+y^2-1,x+y^3-y]
1509: @end example
1.15 takayama 1510:
1.34 ohara 1511: @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
1512: @noindent
1513: ChangeLog
1514: @itemize @bullet
1515: @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.
1516: @item
1517: @code{setOfVariables}$B$NI=8=$N$?$a$K(B range $B%*%V%8%'%/%H$,F3F~$5$l$?(B.
1518: @item
1519: $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
1520: $B7OE}$@$C$F$$$J$+$C$?(B.
1521: dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B.
1522: @item
1523: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
1524: builtin/gr.c 1.56--1.57,
1525: builtin/dp-supp.c 1.27--1.31 (create_composite_order_spec),
1526: builtin/dp.c 1.46--1.48 (parse_gr_option),
1527: engine/Fgfs.c 1.20,
1528: engine/dist.c 1.27--1.28
1529: engine/nd.c 1.89,
1530: include/ca.h 1.42--1.43,
1531: io/pexpr.c 1.28,
1532: io/sexpr.c 1.26,
1533: parse/arith.c 1.11,
1534: parse/glob.c 1.44-1.45,
1535: parse/lex.c 1.29,
1536: parse/parse.h 1.23--1.26
1537: @item
1538: Todo: return $B%-!<%o!<%I$GLa$jCM$N%G!<%?$r(B quote $B$N%j%9%H$K$G$-$k$h$&$K(B.
1539: attribute, ring $B9=B$BN(B.
1540: @end itemize
1541:
1542: @comment --- $B"~"~"~"~(B $B4X?t(B dp_gr_main $B$N@bL@(B $B"~"~"~"~(B
1543: @node dp_weyl_gr_main,,, $B%0%l%V%J!<4pDl(B
1544: @subsection @code{dp_weyl_gr_main}
1545: @findex dp_weyl_gr_main
1546:
1547: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1548: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1549: @table @t
1550: @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})
1551: :: dp_weyl_gr_main $B$N?7$7$$%$%s%?%U%'!<%9(B. dp_gr_main $B$HF1$87A<0$G$"$k(B.
1552: @end table
1.15 takayama 1553:
1.34 ohara 1554: @table @var
1555: @item return
1556: $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)
1557: @item f
1558: $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)
1559: @item vv
1560: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
1561: @item oo
1562: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
1563: @item n
1564: 0 $B$+(B1 (homogenization $B$r$9$k$+(B). [$B%F%9%H$^$@(B]
1565: @item m
1566: $B=g=x$r(B matrix $B$GI=8=$9$k>l9g(B (cf. dp_ord). [$B%F%9%H$^$@(B]
1567: @item b
1568: ???
1569: @item sw
1570: Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. $BA4$F$NMWAG$OHsIi(B. [$B%F%9%H$^$@(B]
1571: @end table
1.15 takayama 1572:
1.34 ohara 1573: @itemize @bullet
1574: @item
1575: @code{dp_weyl_gr_main(@var{f})} $B$O(B, @var{f} $B$N%0%l%V%J4pDl$r7W;;$9$k(B.
1576: $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
1577: $B7OE}$@$C$F$$$J$+$C$?(B.
1578: dp_weyl_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B.
1579: $B;XDjJ}K!$K$D$$$F$O(B dp_gr_main $B$N%^%K%e%"%k$r;2>H(B.
1580: @item
1581: $BJ,;6I=8=B?9`<0$N3F%b%N%_%"%k$ND9$5$,6v?t$N$H$-$O%o%$%kBe?t(B
1582: K[x_1, ..., x_n, d_1, ..., d_n]
1583: $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
1584: 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.
1585: $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.
1586: @item
1587: $BJ,;6I=8=B?9`<0$N3F%b%N%_%"%k$ND9$5$,4q?t$N$H$-$OF1<!2=%o%$%kBe?t(B
1588: K[x_1, ..., x_n, d_1, ..., d_n, h]
1589: $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
1590: d_i x_i = x_i d_i + h^2
1591: $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.
1592: $B>\$7$/$O(B dp_gr_main $B$G;2>H$7$?(B Saito, Sturmfels, Takayama $B$N652J=q$r$_$h(B.
1593: @end itemize
1.15 takayama 1594:
1595: @example
1.34 ohara 1596: [1220] F=sm1.gkz([ [[1,1,1,1],[0,1,3,4]], [0,0]]); /* Command in asir-contrib*/
1597: [[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]]
1598: [1221] V=[x1,x2,x3,x4,dx1,dx2,dx3,dx4]$
1599: [1222] dp_weyl_gr_main(F[0] | v=V, order=[[dx1,1,dx2,1,dx3,1,dx4,1]]);
1600: ...
1601: [1238] 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>>,0,0,0,0]
1603:
1604: [1244] FF=map(dp_ptod,F[0],V);
1605: [(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>>]
1606:
1607: dp_weyl_gr_main(FF | v=V, order=[[0,0,0,0,1,1,1,1]]);
1608:
1609: [1246] dp_weyl_gr_main(FF | v=V, order=[[dx1,1,dx2,1,dx3,1,dx4,1]]);
1610: [ 0 0 0 0 1 1 1 1 ]
1611: [ R R R R R R R R ]
1612: ...
1613:
1.15 takayama 1614: @end example
1615:
1.34 ohara 1616: @table @t
1617: @item $B;2>H(B
1618: @ref{dp_gr_main}
1619: @end table
1620:
1621: @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
1622: @noindent
1623: ChangeLog
1624: @itemize @bullet
1625: @item dp_gr_main $B$N%$%s%?%U%'!<%9$,(B dp_weyl_gr_main $B$X$bF3F~$5$l$?(B.
1626: @item
1627: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
1628: builtin/dp-supp.c 1.32--1.33
1629: builtin/dp.c 1.49--1.50
1630: @end itemize
1631:
1632: @comment --- $B"~"~"~"~(B $B4X?t(B dp_initial_term $B$N@bL@(B $B"~"~"~"~(B
1633: @node dp_initial_term,,, $B%0%l%V%J!<4pDl(B
1634: @subsection @code{dp_initial_term}
1635: @findex dp_initial_term
1636:
1637: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1638: @table @t
1639: @item dp_initial_term(@var{f} | v=@var{vv}, order=@var{oo})
1640: :: dp_initial_term $B$OM?$($i$l$?(B weight $B$KBP$9$k@hF,9`$NOB$rLa$9(B.
1641: @end table
1642:
1643: @table @var
1644: @item return
1645: $BJ,;6I=8=B?9`<0$^$?$OJ,;6I=8=B?9`<0$N%j%9%H(B.
1646: @item f
1647: $BJ,;6I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B.
1648: @item vv
1649: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
1650: @item oo
1651: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
1652: @end table
1653:
1654: @itemize @bullet
1655: @item
1656: dp_initial_term $B$OM?$($i$l$?(B weight w $B$KBP$9$k@hF,9`$NOB$rLa$9(B.
1657: $B$3$l$OB?$/$N652J=q$G(B @tex ${\rm in}_w(f)$ @end tex
1658: $B$H=q$+$l$F$$$k(B.
1659: @item
1660: $B=g=x$rI=$9%j%9%H$O(B dp_gr_main $B$GDj5A$7$?J8K!$K=>$&(B.
1661: $B$3$N%j%9%H$N@hF,$,(B weight vector $B$GL5$$>l9g$O%(%i!<$H$J$k(B.
1662: $B$?$H$($P(B order=[[@@lex,...]] $B$O%(%i!<$H$J$k(B.
1663: @item
1664: $B7k2L$OM?$($i$l$?=g=x$K4X$7$F%=!<%H$5$l$F$k$o$1$G$O$J$$(B.
1665: @end itemize
1666:
1.19 takayama 1667: @example
1.34 ohara 1668: [1220] F=<<2,0,0>>+<<1,1,0>>+<<0,0,1>>;
1669: (1)*<<2,0,0>>+(1)*<<1,1,0>>+(1)*<<0,0,1>>
1670: [1220] dp_initial_term(F | order=[[1,1,1]]);
1671: [ 1 1 1 ]
1672: [ R R R ]
1673: (1)*<<2,0,0>>+(1)*<<1,1,0>>
1674: [1221] dp_initial_term(F | v=[x,y,z], order=[[x,1]]);
1675: [ 1 0 0 ]
1676: [ R R R ]
1677: (1)*<<2,0,0>>
1.19 takayama 1678: @end example
1679:
1.15 takayama 1680: @table @t
1681: @item $B;2>H(B
1.34 ohara 1682: @ref{dp_gr_main}, @ref{dp_weyl_gr_main}, @ref{dp_order}, @ref{dp_hm}
1.15 takayama 1683: @end table
1684:
1.34 ohara 1685: @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 1686: @noindent
1687: ChangeLog
1688: @itemize @bullet
1.34 ohara 1689: @item
1690: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
1691: builtin/dp-supp.c 1.32
1692: builtin/dp.c 1.49
1.17 takayama 1693: @end itemize
1694:
1.34 ohara 1695: @comment --- $B"~"~"~"~(B $B4X?t(B dp_order $B$N@bL@(B $B"~"~"~"~(B
1696: @node dp_order,,, $B%0%l%V%J!<4pDl(B
1697: @subsection @code{dp_order}
1698: @findex dp_order
1.17 takayama 1699:
1700: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1701: @table @t
1.34 ohara 1702: @item dp_order(@var{f} | v=@var{vv}, order=@var{oo})
1703: :: dp_order $B$OM?$($i$l$?(B weight $B$KBP$9$k<!?t$N:GBgCM$rLa$9(B.
1.17 takayama 1704: @end table
1705:
1706: @table @var
1707: @item return
1.34 ohara 1708: $B?t$+?t$N%j%9%H(B
1709: @item f
1710: $BJ,;6I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B.
1711: @item vv
1712: $B%j%9%H(B ($BJQ?t$N%j%9%H(B)
1713: @item oo
1714: $B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B)
1.17 takayama 1715: @end table
1716:
1717: @itemize @bullet
1718: @item
1.34 ohara 1719: $B=g=x$rI=$9%j%9%H$O(B dp_gr_main $B$GDj5A$7$?J8K!$K=>$&(B.
1720: $B$3$N%j%9%H$N@hF,$,(B weight vector $B$GL5$$>l9g$O%(%i!<$H$J$k(B.
1721: $B$?$H$($P(B order=[[@@lex,...]] $B$O%(%i!<$H$J$k(B.
1722: @item
1723: dp_order $B$OM?$($i$l$?(B weight w $B$KBP$9$k<!?t$N:GBgCM$rLa$9(B.
1724: $B$3$l$r(B @tex ${\rm ord}_w(f)$ @end tex
1725: $B$H=q$/O@J8$d652J=q$b$"$k(B.
1.17 takayama 1726: @item
1.34 ohara 1727: $B0z?t$,%j%9%H$N>l9g3FMWAG$N<!?t$,7W;;$5$l$k(B.
1.17 takayama 1728: @end itemize
1729:
1730: @example
1.34 ohara 1731: [1220] F=<<2,0,0>>+<<1,1,0>>+<<0,0,1>>;
1732: (1)*<<2,0,0>>+(1)*<<1,1,0>>+(1)*<<0,0,1>>
1733: [1222] dp_order(F | order=[[1,1,1]]);
1734: [ 1 1 1 ]
1735: [ R R R ]
1736: 2
1737: [1223] dp_order(F | v=[x,y,z], order=[[x,1]]);
1738: [ 1 0 0 ]
1739: [ R R R ]
1.17 takayama 1740: @end example
1741:
1742: @table @t
1743: @item $B;2>H(B
1.34 ohara 1744: @ref{dp_gr_main}, @ref{dp_weyl_gr_main}, @ref{dp_initial_term}, @ref{dp_hm}
1.17 takayama 1745: @end table
1746:
1.34 ohara 1747: @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 1748: @noindent
1749: ChangeLog
1750: @itemize @bullet
1751: @item
1.34 ohara 1752: OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B.
1753: builtin/dp-supp.c 1.32
1754: builtin/dp.c 1.49
1.15 takayama 1755: @end itemize
1.21 takayama 1756:
1757:
1.34 ohara 1758: @node nd_gr nd_gr_trace nd_weyl_gr nd_weyl_gr_trace (module),,, $B%0%l%V%J!<4pDl(B
1759: @subsection @code{nd_gr}, @code{nd_gr_trace} ($B2C72(B)
1760: @findex nd_gr (module)
1761: @findex nd_gr_trace (module)
1762: @findex nd_weyl_gr (module)
1763: @findex nd_weyl_gr_trace (module)
1.21 takayama 1764:
1.34 ohara 1765: @comment --- nd_gr, nd_gr_trace $B$K$*$1$k2C72$N%0%l%V%J!<4pDl7W;;(B ---
1.21 takayama 1766: @table @t
1.34 ohara 1767: @item nd_gr(@var{gen},@var{vars},@var{char},@var{ord})
1768: @itemx nd_gr_trace(@var{gen},@var{vars},@var{homo},@var{char},@var{ord})
1769: @item nd_weyl_gr(@var{gen},@var{vars},@var{char},@var{ord})
1770: @itemx nd_weyl_gr_trace(@var{gen},@var{vars},@var{homo},@var{char},@var{ord})
1771: :: $BItJ,2C72$N%0%l%V%J!<4pDl$N7W;;(B
1.21 takayama 1772: @end table
1773:
1.34 ohara 1774: @table @var
1775: @item gen
1776: $B%j%9%H$N%j%9%H(B
1777: @item ord
1778: @var{[IsPOT,Ord]} $B$J$k%j%9%H(B
1779: @item return
1780: $B%j%9%H$N%j%9%H(B
1781: @end table
1.21 takayama 1782:
1783: @itemize @bullet
1.34 ohara 1784: @item $BB?9`<04D$"$k$$$O%o%$%kBe?t>e$N<+M32C72$NItJ,2C72$N%0%l%V%J!<4pDl(B
1785: $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
1786: $B85$G$"$k%Y%/%H%k$H$_$J$9(B.
1787: @item @var{ord} $B$H$7$F(B @var{[IsPOT,Ord]} $B$H$$$&(B2$BMWAG%j%9%H$,;XDj$5$l$?(B
1788: $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
1789: $B$N%j%9%H$N%j%9%H$H$7$FM?$($kI,MW$,$"$k(B.
1790: @item @var{IsPOT} $B$,(B 1 $B$N>l9g(B, POT (position over term), 0 $B$N(B
1791: $B>l9g(B TOP (term over position) $B$GHf3S$9$k(B. $B4pAC4D$G$N9`Hf3S$O(B @var{Ord}
1792: $B$G9T$&(B.
1793: @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 1794: @end itemize
1795:
1.34 ohara 1796: @example
1797: [0] Gen=[[x,y,z],[y^2+x,x^2,z],[y^2,z^3+x,x+z]];
1798: [[x,y,z],[x+y^2,x^2,z],[y^2,x+z^3,x+z]]
1799: [1] nd_gr(Gen,[x,y,z],0,[0,0]);
1800: [[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,
1801: -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
1802: +(-y^3+z*y^2-z*y)*x+z^4*y^2]]
1803: @end example
1804:
1805: @table @t
1806: @item $B;2>H(B
1807: @ref{nd_gr}, @ref{nd_gr_trace}
1808: @end table
1809:
1810: @node nd_gr nd_gr_trace nd_weyl_gr nd_weyl_gr_trace (option),,, $B%0%l%V%J!<4pDl(B
1811: @subsection @code{nd_gr}, @code{nd_gr_trace} (option)
1812: @findex nd_gr (option)
1813: @findex nd_gr_trace (option)
1814: @findex nd_weyl_gr (option)
1815: @findex nd_weyl_gr_trace (option)
1816:
1817: @comment --- nd_gr, nd_gr_trace $B$N%*%W%7%g%s(B ---
1818:
1819: @table @t
1820: @item nd_gr(@var{...}[|@var{opt},@var{opt},@dots{}])
1821: @itemx nd_gr_trace(@var{...}[|@var{opt},@var{opt},@dots{}])
1822: @itemx nd_weyl_gr(@var{...}[|@var{opt},@var{opt},@dots{}])
1823: @itemx nd_weyl_gr_trace(@var{...}[|@var{opt},@var{opt},@dots{}])
1824: :: $B%0%l%V%J!<4pDl7W;;$K4X$9$k<o!9$N%*%W%7%g%s$N@bL@(B
1825: @end table
1826:
1827: @table @var
1828: @item opt
1829: @var{key=value} $B$J$k%*%W%7%g%s@_Dj(B
1830: @item return
1831: $B%*%W%7%g%s$K$h$j0[$J$k(B
1832: @end table
1833:
1834: @itemize @bullet
1835: @item $B%0%l%V%J!<4pDl7W;;$r%*%W%7%g%s$K$h$j@)8f$9$k(B.
1836: @item $B8=>u$G$O<!$N(B 3 $B$D$N%*%W%7%g%s$r<u$1IU$1$k(B.
1837:
1838: @table @var
1839: @item gentrace
1840: @var{value} $B$,(B 0 $B$G$J$$$H$-(B, $B%0%l%V%J!<4pDl$N7W;;7P2a>pJs$r=PNO$9$k(B.
1.45 takayama 1841: @item gensyz
1.34 ohara 1842: @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.
1843: @item nora
1844: @var{value} $B$,(B 0 $B$G$J$$$H$-(B, $B:G=*%9%F%C%W$GAj8_4JLs$r9T$o$J$$(B.
1845: @end table
1846:
1847: @item @var{gentrace} $B$,;XDj$5$l$?>l9g(B, $B=PNO$O(B,
1848: @var{[GB,Homo,Trace,IntRed,Ind,InputRed,SpairTrace]} $B$J$k%j%9%H$G$"$k(B. $B3FMWAG$N0UL#$O(B
1849: $B<!$NDL$j$G$"$k(B.
1850: @table @var
1851: @item GB
1852: $B%0%l%V%J!<4pDl(B
1853: @item Homo
1854: $BCf4V4pDl$,@F<!2=$5$l$F$$$k>l9g(B 1, $B$=$&$G$J$$>l9g(B 0.
1855: @item Trace
1856: $BA4Cf4V4pDl$KBP$9$k7W;;7P2a>pJs(B
1857: @item IntRed
1858: $BAj8_4JLs$KBP$9$k7W;;7P2a>pJs(B
1859: @item Ind
1860: $B4JLs%0%l%V%J!<4pDl$N3FMWAG$N(B, $BA4Cf4V4pDl$N$K$*$1$k%$%s%G%C%/%9(B
1861: @item InputRed
1862: $B3FF~NOB?9`<0$r%0%l%V%J!<4pDl$G4JLs$7$F>jM>(B 0 $B$rF@$k$^$G$N7W;;7P2a>pJs(B
1863: (@var{gensyz} $B$,;XDj$5$l$?>l9g(B)
1864: @item SpairTrace
1865: $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
1866: (syzygy $B2C72$N@8@.7O$NMWAG$N$_(B; @var{gensyz} $B$,;XDj$5$l$?>l9g(B)
1867: @end table
1868: @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
1869: $B4X?t$N9`$G@bL@$9$kM=Dj(B.
1870: @end itemize
1.21 takayama 1871:
1872: @example
1.34 ohara 1873: [0] C=[c3*c2*c1*c0-1,((c2+c3)*c1+c3*c2)*c0+c3*c2*c1,...]
1874: [1] D=nd_gr_trace(C,[c0,c1,c2,c3,c4],0,1,0|gentrace=1,gensyz=1)$
1875: [2] D[0];
1876: [c0+c1+c2+c3,-c1^2-2*c3*c1-c3^2,...]
1877: [3] D[2];
1878: [[[0,0,1],[1,1,1],[2,2,1],[3,3,1]],[4,[[1,2,(1)*<<0,0,0,0>>,1],...]
1879: [4] D[6];
1880: [[-1,[[1,0,(1)*<<0,0,2,4>>,1],[1,6,(-1)*<<1,0,0,0>>,1],...]
1881: @end example
1.21 takayama 1882:
1.34 ohara 1883: @table @t
1884: @item $B;2>H(B
1885: @ref{nd_gr}, @ref{nd_gr_trace}
1886: @end table
1.21 takayama 1887:
1888:
1.34 ohara 1889: @node $B%7%9%F%`(B,,, $B<B83E*;EMM$N4X?t(B
1890: @section $B%7%9%F%`(B
1.21 takayama 1891:
1.34 ohara 1892: @comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B
1893: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
1.55 takayama 1894: @node asir-port.sh asir-install.sh,,, $B%7%9%F%`(B
1.34 ohara 1895: @subsection @code{asir-port.sh}, @code{asir-install.sh}
1896: @findex asir-port.sh
1897: @findex asir-install.sh
1.23 takayama 1898:
1899: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1900: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1901: @table @t
1.34 ohara 1902: @item asir-install.sh
1903: @itemx asir-port.sh
1904: :: $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 1905: @end table
1906:
1907:
1908: @itemize @bullet
1.34 ohara 1909: @item
1910: asir-port.sh $B$O(B knoppix $B@lMQ$G$"$k(B.
1911: $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
1912: ftp.math.kobe-u.ac.jp $B$h$j%@%&%s%m!<%I$7$F(B
1913: /home/knoppix/.asir-tmp $B$X%;!<%V$7$F(B, $B<B9T$9$k(B.
1914: .asirrc $B$*$h$S(B .TeXmacs/plugins/ox/progs/init-ox.scm $B$b%@%&%s%m!<%I$9$k(B.
1915: @item
1916: asir-install.sh $B$O(B Debian GNU Linux / openxm-binary*.deb $B@lMQ$G$"$k(B.
1917: asir-install.sh $B$O(B asir $B$r%@%&%s%m!<%I$7$F(B /usr/local/OpenXM/bin $B$*$h$S(B
1918: /usr/local/OpenXM/lib/asir $B$X%$%s%9%H!<%k$9$k(B.
1.23 takayama 1919: @end itemize
1920:
1921:
1922: @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
1923: @noindent
1924: ChangeLog
1925: @itemize @bullet
1.34 ohara 1926: @item
1927: $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.
1928: @item
1929: knoppix/math $B$OJ!2,Bg3X$N_@ED$5$s$,Cf?4$H$J$j3+H/$5$l$F$$$k(B.
1930: @item
1931: OpenXM/misc/packages/Linux/Debian $B$N2<$NA4$F$N%U%!%$%k(B (2004-2-22 $B$+$i(B
1932: 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.)
1933: OpenXM/src/asir-port $B$N2<$N<!$N3F%U%!%$%k(B.
1934: Makefile 1.1--1.8, asir-install.sh 1.1--1.2, asir-port.sh 1.1--1.6.
1.23 takayama 1935: @end itemize
1936:
1937:
1.34 ohara 1938: @node asirgui.hnd,,, $B%7%9%F%`(B
1939: @subsection @code{asirgui.hnd}
1940: @findex asirgui.hnd
1.23 takayama 1941:
1942: @comment --- $B4X?t$N4JC1$J@bL@(B ---
1943: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
1944: @table @t
1.34 ohara 1945: @item asirguid.hnd
1946: :: asirgui $B$N(B main window $B$N%O%s%I%kHV9f$rJ];}$9$k%U%!%$%k(B
1.23 takayama 1947: @end table
1948:
1.34 ohara 1949: @comment ****************************************************************
1.23 takayama 1950:
1951: @itemize @bullet
1.48 ohara 1952: @item asirgui (Windows $BHG(B) $B$r5/F0$9$k$H(B $B4D6-JQ?t(B TEMP $B$G;XDj$5$l$?%U%)%k%@$K$3$N%U%!%$%k$,:n@.$5$l$k(B.
1.35 takayama 1953: @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 1954: @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 1955: @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 1956: @end itemize
1957:
1958: @example
1.34 ohara 1959: // cl test.c user32.lib
1960:
1961: #include <windows.h>
1962: #include <stdlib.h>
1963: #include <stdio.h>
1964: #include <process.h>
1965:
1966: int main()
1967: @{
1968:
1969: HWND hnd;
1970: FILE *fp = fopen("c:/Program Files/asir/bin/asirgui.hnd","r");
1971: fscanf(fp,"%d",&hnd);
1972: fclose(fp);
1973: while (1) @{
1974: int c;
1975: c = getchar();
1976: if ( c == '#' ) break;
1977: PostMessage(hnd,WM_CHAR,c,1);
1978: @}
1979: return 0;
1980: @}
1.23 takayama 1981: @end example
1982:
1983: @table @t
1984: @item $B;2>H(B
1.34 ohara 1985: @ref{xyz_abc}
1.23 takayama 1986: @end table
1987:
1988: @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
1989: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1990: @noindent
1991: ChangeLog
1992: @itemize @bullet
1.34 ohara 1993: @item $B$3$N5!G=$O(B 2006-12-5, 2007-02-13 $B$K2C$($i$l$?(B.
1994: @item @code{OpenXM_contrib2/windows/asir32gui/asir32gui.clw} 1.11
1995: @item @code{OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp} 1.15, 1.1.6
1.37 takayama 1996: @item winfep $B$O(B 2010-01-20 $B:"$KBh0lHG$,(B commit $B$5$l$?(B.
1997: @item @code{OpenXM_contrib2/windows/winfep} 1.1
1.23 takayama 1998: @end itemize
1999:
2000:
1.34 ohara 2001: @comment ****************************************************************
2002:
1.55 takayama 2003: @node chdir pwd,,, $B%7%9%F%`(B
1.34 ohara 2004: @subsection @code{chdir}, @code{pwd}
2005: @findex chdir
2006: @findex pwd
1.23 takayama 2007:
1.34 ohara 2008: @comment --- $B%G%#%l%/%H%jA`:n(B ---
1.23 takayama 2009: @table @t
1.34 ohara 2010: @item chdir(@var{directory})
2011: @item pwd()
2012: :: $B%7%'%k%3%^%s%I(B cd $B$H(B pwd $B$KBP1~$9$kA`:n(B.
1.23 takayama 2013: @end table
2014:
2015: @table @var
2016: @item return
1.34 ohara 2017: $BJ8;zNs(B(@code{pwd}), $B@0?t(B(@code{chdir})
2018: @item dirctory
2019: $BJ8;zNs(B
1.23 takayama 2020: @end table
2021:
2022: @itemize @bullet
1.34 ohara 2023: @item
2024: @code{pwd} $B$O%+%l%s%H%G%#%l%/%H%j$rJ8;zNs$GJV$9(B.
2025: @item
2026: @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.
1.23 takayama 2027: @end itemize
2028:
2029: @example
1.34 ohara 2030: [0] S=pwd();
2031: /home/ohara
2032: [1] chdir(".../taka");
2033: -1
2034: [2] chdir("/usr/bin");
2035: 0
1.23 takayama 2036: @end example
2037:
2038: @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
2039: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2040: @noindent
2041: ChangeLog
2042: @itemize @bullet
1.34 ohara 2043: @item
2044: $B$3$l$i$N4X?t$O(B 2008-8-27 $B$K%3%_%C%H$5$l$?(B.
2045: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/miscf.c (1.27) $B$G$"$k(B.
1.23 takayama 2046: @end itemize
2047:
2048:
1.34 ohara 2049: @node dcurrenttime,,, $B%7%9%F%`(B
2050: @subsection @code{dcurrenttime}
2051: @findex dcurrenttime
1.23 takayama 2052:
1.34 ohara 2053: @comment --- $B8=:_;~9o$r<hF@(B ---
1.23 takayama 2054: @table @t
1.34 ohara 2055: @item dcurrenttime()
2056: :: $B8=:_;~9o$r<hF@(B.
1.23 takayama 2057: @end table
2058:
1.34 ohara 2059: @table @var
2060: @item return
2061: $BIbF0>.?tE@?t(B
2062: @end table
1.23 takayama 2063:
2064: @itemize @bullet
1.34 ohara 2065: @item
2066: $BJV$jCM$O(B1970$BG/(B1$B7n(B1$BF|(B0$B;~(B0$BJ,(B0$BIC$+$i$N7P2aIC?t$G$"$k(B.
1.23 takayama 2067: @end itemize
2068:
2069: @example
1.34 ohara 2070: [0] ctrl("real_digit", 16);
2071: 16
2072: [1] dcurrenttime();
2073: 1226390851.34476
2074: [2] currenttime();
2075: 1226390854
1.23 takayama 2076: @end example
2077:
2078: @table @t
2079: @item $B;2>H(B
1.34 ohara 2080: @ref{currenttime}
1.23 takayama 2081: @end table
2082:
2083: @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
2084: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2085: @noindent
2086: ChangeLog
2087: @itemize @bullet
1.34 ohara 2088: @item
2089: $B$3$N4X?t$O(B 2008-9-12 $B$K%3%_%C%H$5$l$?(B.
2090: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/time.c (1.6) $B$G$"$k(B.
1.23 takayama 2091: @end itemize
2092:
2093:
1.47 takayama 2094: @node getpid,,, $B%7%9%F%`(B
2095: @subsection @code{getpid}
2096: @findex getpid
2097:
2098: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2099: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2100: @table @t
2101: @item getpid()
2102: @end table
2103:
2104: @table @var
2105: @item return
2106: $B@0?t(B
2107: @end table
2108:
2109: @itemize @bullet
2110: @item asir $B$N%W%m%;%9HV9f$rLa$9(B.
1.48 ohara 2111: @item $B%W%m%;%9HV9f$O(B asir, ox_asir $BEy$GFHN)$7$?%W%m%;%9$KBP$7$F%7%9%F%`Fb$G0l0U$G$"$k(B.
1.47 takayama 2112: @end itemize
2113:
2114: @example
1.48 ohara 2115: [219] getpid();
1.47 takayama 2116: 3214
2117: @end example
2118:
2119:
2120: @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
2121: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2122: @noindent
2123: ChangeLog
2124: @itemize @bullet
2125: @item $B$3$N4X?t$O(B ox_work_dir() $B4X?t$,0l0U$J:n6H%U%!%$%kL>$rF@$k$?$a$K;H$o$l$F$$$k(B.
2126: src/asir-contrib/packages/src/misc/rr 1.3,
2127: asir2000/builtin/file.c 1.28, rat.c 1.5,
2128: asir2000/parse/puref.c 1.9 $B$r;2>H(B (2013/02/15, 18).
2129: @end itemize
2130:
2131:
1.48 ohara 2132: @node loadpath,,, $B%7%9%F%`(B
2133: @subsection @code{loadpath}
2134: @findex loadpath
2135:
2136: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2137: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2138: @table @t
2139: @item ctrl(``loadpath''[,list])
2140: @end table
2141:
2142: @table @var
2143: @item list
2144: $BJ8;zNs(B($B%Q%9(B)$B$N%j%9%H(B
2145: @item return
2146: $BJ8;zNs(B($B%Q%9(B)$B$N%j%9%H(B, $B$^$?$O?t(B(list$B$,M?$($i$l$?$H$-(B)
2147: @end table
2148:
2149: @itemize @bullet
2150: @item asir $B$NAH$_9~$_4X?t(B ctrl $B$N%9%$%C%A$N$R$H$D$G$"$k(B.
2151: @item asir $B$N%m!<%I%Q%9$N=PNO$^$?$O@_Dj$r9T$&(B.
2152: @end itemize
2153:
2154: @example
2155: [0] L=ctrl("loadpath");
2156: [/home/you/OpenXM/lib/asir-contrib,/home/you/OpenXM/lib/asir,.]
2157: [1] ctrl("loadpath", cons(getenv("HOME")+"/lib",L));
2158: 0
2159: @end example
2160:
2161:
2162: @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
2163: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2164: @noindent
2165: ChangeLog
2166: @itemize @bullet
2167: @item $B$3$N4X?t$O(B 2014-5-12 $B$K%3%_%C%H$5$l$?(B.
2168: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/ctrl.c (1.41) $B$G$"$k(B.
2169: @end itemize
2170:
2171:
2172: @node sysinfo,,, $B%7%9%F%`(B
2173: @subsection @code{sysinfo}
2174: @findex sysinfo
2175:
2176: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2177: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2178: @table @t
2179: @item sysinfo()
2180: @end table
2181:
2182: @table @var
2183: @item return
2184: $BJ8;zNs$N%j%9%H(B
2185: @end table
2186:
2187: @itemize @bullet
2188: @item asir $B$NF0:n$7$F$$$k%*%Z%l!<%F%#%s%0%7%9%F%`$N>pJs$rJV$9(B.
2189: @item $B%j%9%H$N3F@.J,$O(B, OS$B%?%$%W(B, $B%+!<%M%kL>(B, OS$BL>(B, CPU$B%?%$%W(B, OS$B%P!<%8%g%s(B, $B40A4$J>pJs(B, $B%m%1!<%k$G$"$k(B.
2190: @item OS$B%?%$%W$O(B unix, macosx, windows $B$N$$$:$l$+$G$"$k(B.
2191: @item unix $B$*$h$S(B macosx $B$K$*$$$F$O(B, $B%7%9%F%`%3!<%k$*$h$S(B uname $B%3%^%s%I$K$h$j>pJs$r<hF@$7$F$$$k(B.
2192: windows $B$G$O(B, GetVersionEx() $B$J$I$N(B Win32 API $B$,MQ$$$i$l$F$$$k(B.
2193: @end itemize
2194:
2195: @example
2196: [0] sysinfo();
2197: [windows,WindowsNT,Windows7,x86_64,6.1.7601,WindowsNT 6.1.7601 Windows7 Service Pack 1 x86_64,ja]
2198: @end example
2199:
2200:
2201: @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
2202: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2203: @noindent
2204: ChangeLog
2205: @itemize @bullet
2206: @item $B$3$N4X?t$O(B 2014-5-14 $B$K%3%_%C%H$5$l$?(B.
2207: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/ctrl.c (1.42) $B$G$"$k(B.
2208: @end itemize
2209:
2210:
1.34 ohara 2211: @comment ****************************************************************
2212:
2213:
2214: @node $B8@8l(B,,, $B<B83E*;EMM$N4X?t(B
2215: @section $B8@8l(B
2216:
1.55 takayama 2217: @node get_struct_name get_element_names get_element_at put_element_at,,, $B8@8l(B
1.34 ohara 2218: @subsection @code{get_struct_name}, @code{get_element_names}, @code{get_element_at}, @code{put_element_at}
2219: @findex get_struct_name
2220: @findex get_element_names
2221: @findex get_element_at
2222: @findex put_element_at
1.23 takayama 2223:
2224: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2225: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2226: @table @t
1.34 ohara 2227: @item get_struct_name(@var{s})
2228: @itemx get_element_names(@var{s})
2229: @itemx get_element_at(@var{s},@var{key})
2230: @itemx put_element_at(@var{s},@var{key},@var{obj})
2231: :: $B9=B$BN(B @var{s} $B$KBP$9$kA`:n(B
1.23 takayama 2232: @end table
2233:
2234: @table @var
2235: @item return
1.34 ohara 2236: $BJ8;zNs(B (get_struct_name),
2237: $BJ8;zNs$N%j%9%H(B (get_element_names),
2238: $B%*%V%8%'%/%H(B (get_element_at),
2239: $B%*%V%8%'%/%H(B (put_element_at)
2240: @item s
2241: $B9=B$BN(B
2242: @item key
2243: $BJ8;zNs(B
2244: @item obj
2245: $B%*%V%8%'%/%H(B
1.23 takayama 2246: @end table
2247:
2248: @itemize @bullet
1.34 ohara 2249: @item
2250: @code{get_struct_name(s)} $B$O(B, $B9=B$BN(B @var{s} $B$NL>A0$rLa$9(B.
2251: @item
2252: @code{get_element_names(s)} $B$O(B, $B9=B$BN$N%a%s%P!<$NL>A0$N%j%9%H$rLa$9(B.
2253: @item
2254: @code{get_element_at(s,key)} $B$O9=B$BN(B s $B$N%a%s%P!<(B key $B$NCM$rLa$9(B.
2255: @item
2256: @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 2257: @end itemize
2258:
2259: @example
1.34 ohara 2260: [219] struct point @{ x, y, color@};
2261: [220] P = newstruct(point);
2262: @{0,0,0@}
2263: [221] P->x = 10$ P->y=5$ P->color="red"$
2264: [222] get_element_names(P);
2265: [x,y,color]
2266: [223] put_element_at(P,"color","blue");
2267: blue
2268: [224] P->color;
2269: bule
1.23 takayama 2270: @end example
2271:
2272: @table @t
2273: @item $B;2>H(B
1.34 ohara 2274: @ref{newstruct}, @ref{struct}
1.23 takayama 2275: @end table
2276:
2277: @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
2278: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2279: @noindent
2280: ChangeLog
2281: @itemize @bullet
1.34 ohara 2282: @item $B9=B$BN$NDj5A$rCN$i$:$K9=B$BN$r07$&%f!<%64X?t$r=q$/$H$-$KJXMx(B.
2283: asir-contrib $B$N(B noro_print.rr $B$r8+$h(B.
2284: @item OpenXM_contrib2/asir2000/builtin/compobj.c 1.8.
1.23 takayama 2285: @end itemize
2286:
2287:
1.34 ohara 2288: @comment mapat
2289: @node mapat,,, $B8@8l(B
2290: @subsection @code{mapat}
2291: @findex mapat
1.23 takayama 2292:
2293: @table @t
1.34 ohara 2294: @item mapat(@var{fname},@var{pos}[,@var{arg0}, @var{arg1}, ...])
2295: :: @var{pos} $B$KBP$9$k(B map $B4X?t(B
1.23 takayama 2296: @end table
2297:
2298: @table @var
2299: @item return
1.34 ohara 2300: $B%*%V%8%'%/%H(B
2301: @item pos
2302: $B@0?t(B
2303: @item arg0, arg1, arg2, ...
2304: $B%*%V%8%'%/%H(B
1.23 takayama 2305: @end table
2306:
2307: @itemize @bullet
1.34 ohara 2308: @item
2309: @code{map} $B4X?t$O(B 0 $BHVL\$N0z?t$KBP$7$F$7$+F0:n$7$J$$$,(B, @code{mapat}
2310: $B4X?t$O;XDj$7$?HV9f$N0z?t$KBP$7$F(B @code{map} $B4X?t$r<B9T$9$k(B.
2311: @item
2312: @code{mapat(fname,0,A0,A1,...)} $B$O(B
2313: @code{map(fname,A0,A1,...)} $B$KEy2A$G$"$k(B.
2314: @item
2315: $B<!$NI{:nMQ$,$"$k(B. $B$^$@=q$$$F$J$$(B.
1.23 takayama 2316: @end itemize
2317:
2318: @example
1.34 ohara 2319: [219] mapat(deg,1,x^2+y^3+x+y,[x,y]);
2320: [2,3]
2321: [220] mapat(subst,1,x+y+z,[x,y,z],2);
2322: [y+z+2,x+z+2,x+y+2]
1.23 takayama 2323: @end example
2324:
2325: @table @t
2326: @item $B;2>H(B
1.34 ohara 2327: @ref{map}
1.23 takayama 2328: @end table
2329:
2330: @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
2331: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2332: @noindent
2333: ChangeLog
2334: @itemize @bullet
1.34 ohara 2335: @item $B$3$N4X?t$O(B 2004-6-22 $B$K%3%_%C%H$5$l$?(B.
2336: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/pf.c, subst.c $B$G$"$k(B.
1.23 takayama 2337: @end itemize
2338:
1.34 ohara 2339: @comment list
2340: @node list,,, $B8@8l(B
2341: @subsection @code{list}
2342: @findex list
1.23 takayama 2343:
2344: @table @t
1.34 ohara 2345: @item list([@var{arg0}, @var{arg1}, ...])
2346: :: list $B$r@8@.$9$k(B.
1.23 takayama 2347: @end table
2348:
2349: @table @var
2350: @item return
2351: $B%j%9%H(B
1.34 ohara 2352: @item arg0, arg1, arg2, ...
2353: $B%*%V%8%'%/%H(B
1.23 takayama 2354: @end table
2355:
1.34 ohara 2356: @itemize @bullet
2357: @item
2358: @var{arg0}, @var{arg1}, ... $B$rMWAG$H$9$k%j%9%H$r@8@.$9$k(B.
1.23 takayama 2359: @end itemize
2360:
2361: @example
1.34 ohara 2362: [219] list(1,2,3);
2363: [1,2,3]
2364: [220] list(1,2,[3,4]);
2365: [1,2,[3,4]]
1.23 takayama 2366: @end example
2367:
2368: @table @t
2369: @item $B;2>H(B
1.34 ohara 2370: @ref{cons}
1.23 takayama 2371: @end table
2372:
2373: @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
2374: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2375: @noindent
2376: ChangeLog
2377: @itemize @bullet
1.34 ohara 2378: @item $B$3$N4X?t$O(B 2004-6-22 $B$K%3%_%C%H$5$l$?(B.
2379: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/list.c $B$G$"$k(B.
1.23 takayama 2380: @end itemize
2381:
2382:
1.34 ohara 2383: @node assoc,,, $B8@8l(B
2384: @subsection @code{assoc}
2385: @findex assoc
1.23 takayama 2386:
2387: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2388: @table @t
1.34 ohara 2389: @item assoc(@var{a},@var{b})
2390: :: $BO"A[%j%9%H$r$D$/$k(B
1.23 takayama 2391: @end table
2392:
2393: @table @var
2394: @item return
1.34 ohara 2395: List
2396: @item a
2397: List
2398: @item b
2399: List
1.23 takayama 2400: @end table
2401:
2402: @itemize @bullet
1.34 ohara 2403: @item $B%j%9%H(B @var{a}, @var{b} $B$h$j(B
2404: [[@var{a}[0],@var{b}[0]], [@var{a}[1],@var{b}[1]], ...]
2405: $B$J$k?7$7$$%j%9%H$r@8@.$9$k(B.
1.23 takayama 2406: @end itemize
2407:
1.34 ohara 2408: $B2<$NNc$G$O(B @code{A} $B$KF0J*$NL>A0$,(B,
2409: @code{B} $B$KB-$NK\?t$,F~$C$F$$$k(B.
2410: @code{assoc(A,B)} $B$GF0J*$HB-$NK\?t$r%Z%"$K$7$?%j%9%H$r@8@.$9$k(B.
2411:
1.23 takayama 2412: @example
1.34 ohara 2413: [1192] A=["dog","cat","snake"];
2414: [dog,cat,snake]
2415: [1193] B=[4,4,0];
2416: [4,4,0]
2417: [1194] assoc(A,B);
2418: [[dog,4],[cat,4],[snake,0]]
1.23 takayama 2419: @end example
2420:
2421: @table @t
2422: @item $B;2>H(B
1.34 ohara 2423: @ref{cons}, @ref{append}
1.23 takayama 2424: @end table
2425:
2426: @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
2427: @noindent
2428: ChangeLog
2429: @itemize @bullet
1.34 ohara 2430: @item
2431: $B$3$N4X?t$O(B 2004-6-28 $B$K=q$+$l$?(B.
2432: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B
2433: builtin/list.c 1.9
2434: parse/eval.c 1.35,
2435: parse/parse.h 1.31,
2436: parse/quote.c 1.14--1.16.
1.23 takayama 2437: @end itemize
2438:
1.34 ohara 2439:
1.55 takayama 2440: @node set_secure_flag set_secure_mode,,, $B8@8l(B
1.34 ohara 2441: @subsection @code{set_secure_flag}, @code{set_secure_mode}
2442: @findex set_secure_flag
2443: @findex set_secure_mode
1.23 takayama 2444:
2445: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2446: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2447: @table @t
1.34 ohara 2448: @item set_secure_flag(@var{fname},@var{m})
2449: @itemx set_secure_mode(@var{m})
2450: :: $B4X?t$N<B9T8"8B$r@_Dj$9$k(B. (web $B%5!<%S%9MQ(B)
1.23 takayama 2451: @end table
2452:
2453: @table @var
2454: @item return
2455: $B@0?t(B
1.34 ohara 2456: @item fname
2457: $BJ8;zNs(B
2458: @item m
2459: $B@0?t(B
1.23 takayama 2460: @end table
2461:
2462: @itemize @bullet
1.34 ohara 2463: @item @code{set_secure_flag}, @code{set_secure_mode} $B$O(B
2464: asir $B$r(B web $B%5!<%PEy$G8x3+$9$k$?$a$K2C$($i$l$?4X?t(B.
2465: @code{set_secure_flag} $B$G8x3+$9$k4X?t$r;XDj$9$k(B.
2466: @code{secure_mode} $B$,(B 1 $B$N>l9g$O(B @code{set_secure_flag} $B$G;XDj$5$l$?(B
2467: $B4X?t$7$+<B9T$G$-$J$$(B.
2468: $B4X?t$N<B9TESCf$G$O(B @code{secure_mode} $B$,(B 0 $B$H$J$C$F$$$k$N$G(B,
2469: $BG$0U$N4X?t$r<B9T$G$-$k(B.
2470: $B$^$?%(%i!<$N;~Ey$O(B, @code{secure_mode} $B$O(B 1 $B$K<+F0E*$KI|5"$9$k(B.
2471: $B$?$@$7(B @code{def} $B$O<B9T$G$-$J$$(B.
2472: $B8x3+$9$k4X?t$G$O(B, $B$=$N=hM}Cf$OG$0U$N4X?t$,<B9T$G$-$k$N$G(B,
2473: security $B$K==J,Cm0U$7$?<BAu$r$9$kI,MW$,$"$k(B.
2474: @item
2475: @code{set_secure_flag} $B$O(B, @var{fname} $B$N(B secure flag $B$r(B @var{m}
2476: $B$K$9$k(B.
2477: $B8x3+$9$kL?Na$O(B 1 $B$K@_Dj$9$k(B.
2478: @item
2479: @var{set_secure_mode(1)} $B$G(B @code{secure_mode} $B$,(B 1 $B$H$J$j(B,
2480: $B8x3+$5$l$?4X?t$7$+<B9T$G$-$J$/$J$k(B.
2481: quit $BEy$b<B9T$G$-$J$$$N$GCm0U(B.
2482: @item @code{ timer } $B$N0z?t$H$7$F(B secure_flag $B$r@_Dj$7$F$$$J$$4X?t$r(B
2483: $B;XDj$7$F<B9T$7$F$b%(%i!<$,I=<($5$l$J$$(B.
2484: $B$3$N$H$-$O(B, @code{ ctrl("error_in_timer",1) } $B$r<B9T$7$F$*$/(B.
1.23 takayama 2485: @end itemize
2486:
2487: @example
1.34 ohara 2488: [1194] set_secure_flag("print_input_form_",1);
2489: 1
2490: [1195] set_secure_flag("fctr",1);
2491: 1
2492: [220] set_secure_mode(1);
2493: 1
2494: [1197] fctr((x-1)^3);
2495: [[1,1],[x-1,3]]
2496: [1198] fctr(shell("ls"));
2497: evalf : shell not permitted
2498: return to toplevel
1.23 takayama 2499: @end example
2500:
2501: @table @t
2502: @item $B;2>H(B
1.34 ohara 2503: @ref{timer}
1.23 takayama 2504: @end table
2505:
2506: @noindent
2507: ChangeLog
2508: @itemize @bullet
1.34 ohara 2509: @item @code{set_secure_flag}, @code{set_secure_mode} $B$O(B asir $B$r(B
2510: web $B%5!<%PEy$G8x3+$9$k$?$a$K2C$($i$l$?4X?t(B.
2511: sm1 $B$NF1MM$J4X?t(B RestrictedMode $B$G:NMQ$5$l$?J}K!$rMQ$$$F$$$k(B.
2512: $B$D$^$j(B, @code{set_secure_flag} $B$G8x3+$9$k4X?t$r;XDj$9$k(B.
2513: @code{secure_mode} $B$,(B 1 $B$N>l9g$O(B @code{set_secure_flag} $B$G;XDj$5$l$?(B
2514: $B4X?t$7$+<B9T$G$-$J$$(B.
2515: v$B4X?t$N<B9TESCf$G$O(B @code{secure_mode} $B$,(B 0 $B$H$J$C$F$$$k$N$G(B,
2516: $BG$0U$N4X?t$r<B9T$G$-$k(B.
2517: @item $B$3$N4X?t$O(B 2004-10-27 $B$+$i(B 2004-11-22 $B$K$+$1$F3+H/$5$l$?(B.
2518: @item cgiasir.sm1, cgi-asir.sh $B$HAH$_9g$o$;$F(B cgi $B%5!<%S%9$rDs6!$9$k$?$a$K(B
2519: $BMxMQ$9$k(B.
2520: cgi-asir.sh $B$G$O(B
2521: @code{CGI_ASIR_ALLOW} $B4D6-JQ?t$G8x3+$9$k%3%^%s%I$r;XDj$9$k(B.
2522: @item
2523: 1.24--1.25 OpenXM_contrib2/asir2000/builtin/miscf.c
2524: @item
2525: 1.36--1.38 OpenXM_contrib2/asir2000/parse/eval.c
2526: @item
2527: 1.6--1.7 OpenXM_contrib2/asir2000/parse/function.c
2528: @item
2529: 1.33 OpenXM_contrib2/asir2000/parse/parse.h
1.23 takayama 2530: @end itemize
2531:
1.34 ohara 2532: @node initialize_static_variable,,, $B8@8l(B
2533: @subsection @code{initialize_static_variable}
2534: @findex initialize_static_variable
2535:
1.23 takayama 2536:
1.34 ohara 2537: @comment --- $B@bL@(B ---
1.23 takayama 2538: @table @t
1.34 ohara 2539: @item static $BJQ?t$N=i4|2=$NLdBjE@(B. $B=i4|2=$N;~$K(B segmentation fault $B$,$*$-$k(B.
1.23 takayama 2540: @end table
2541:
2542:
2543: @itemize @bullet
1.34 ohara 2544: @item static $BJQ?t$N<h07(B.
2545: $B2<$NNc$r;2>H$N$3$H(B.
1.23 takayama 2546: @end itemize
2547:
1.34 ohara 2548:
1.23 takayama 2549: @example
1.34 ohara 2550: if (1) @{
2551: module abc;
2552: static A;
2553: A=1;
2554: endmodule;
2555: @} else @{ @};
1.23 takayama 2556:
1.34 ohara 2557: end$
2558: $B$r(B t.rr $B$H$9$k$H$-(B,
1.23 takayama 2559:
1.34 ohara 2560: [6] load("./t.rr");
2561: 1
2562: internal error (SEGV)
2563: $B$H$J$k(B.
1.23 takayama 2564:
1.34 ohara 2565: t.rr $B$r(B
2566: if (1) @{
2567: module abc;
2568: static A;
2569: localf initA;
2570: localf foo;
2571: def initA() @{
2572: A=1;
2573: @}
2574: initA();
2575: def foo() @{
2576: return A;
2577: @}
2578: endmodule;
2579: @} else @{ @};
1.23 takayama 2580:
1.34 ohara 2581: end$
2582: $B$H$9$k$H@5$7$/=i4|2=$5$l$k(B.
1.23 takayama 2583: @end example
2584:
1.34 ohara 2585: @comment --- ChangeLog
1.23 takayama 2586: @noindent
2587: ChangeLog
2588: @itemize @bullet
1.34 ohara 2589: @item oxasir-win.rr $B$N<h07$GLdBjE@$H$7$FIb>e(B. 2005.07.25.
2590: @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.
2591: @item ox_asir $B$K7W;;$r0MMj$9$k;~$O(B if (1) @{ ... @}$B$G0O$`(B.
1.23 takayama 2592: @end itemize
1.34 ohara 2593:
1.23 takayama 2594: @comment ****************************************************************
1.13 takayama 2595:
1.56 takayama 2596: @node function,,, $B8@8l(B
2597: @subsection @code{function}
2598: @findex function
2599:
2600: @table @t
2601: @item function $B@k8@$9$k$3$H$K$h$jH!?t7A<0$NITDj85$r@8@.$G$-$k(B.
2602: @end table
2603:
2604: @comment --- $B@bL@(B ---
2605: @table @t
2606: @item function $B@k8@$9$k$3$H$K$h$jH!?t7A<0$NITDj85$r@8@.$G$-$k(B.
2607: @item $BHyJ,H!?t(B diff $B$O$3$NH!?t7A<0$NITDj85$NHyJ,$r$d$O$jH!?t7A<0$NITDj85$H$7$F@8@.$9$k(B.
2608: $B$?$H$($P(B f@{1,2@}(x,y) $B$O(B f $B$r(B x $B$K$D$$$F0l3,JPHyJ,(B, y $B$K$D$$$F(B 2$B3,JPHyJ,$7$?$b$N(B.
2609: @item diff $B$O9g@.4X?t$H$7$F$N=hM}$b9T$&(B.
2610: @end table
2611:
2612:
2613: @example
2614: [1915] function f(x,y);
2615: [1916] F=f(f(x,y),y)$
2616: [1917] diff(F,y);
2617: f@{1,0@}(f(x,y),y)*f@{0,1@}(x,y)+f@{0,1@}(f(x,y),y)
2618: [1918] vtype(f(p,q));
2619: 2
2620: [1919] deg(diff(F,y),f@{0,1@}(x,y));
2621: 1
2622: @end example
2623:
2624: @xref{vtype}
2625: @xref{diff}
2626:
2627: @comment --- ChangeLog
2628: @noindent
2629: ChangeLog
2630: @itemize @bullet
2631: @item $B$$$D$N(B commit $B$GF3F~$5$l$?$+ITL@(B.
2632: @end itemize
2633:
2634: @comment ****************************************************************
2635:
1.34 ohara 2636: @node $B?tO@!&Be?t(B,,, $B<B83E*;EMM$N4X?t(B
2637: @section $B?tO@!&Be?t(B
2638:
1.24 takayama 2639:
1.34 ohara 2640: @node small_jacobi,,, $B?tO@!&Be?t(B
2641: @subsection @code{small_jacobi}
2642: @findex small_jacobi
1.24 takayama 2643:
2644: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2645: @table @t
1.34 ohara 2646: @item small_jacobi(@var{a},@var{m})
2647: :: Jacobi $B5-9f$N7W;;(B
1.24 takayama 2648: @end table
2649:
1.34 ohara 2650: @table @var
2651: @item return
2652: $B@0?t(B
2653: @item arg1, arg2
2654: $B@0?t(B
2655: @end table
1.24 takayama 2656:
2657: @itemize @bullet
1.34 ohara 2658: @item
2659: @var{m} $B$,AG?t$N$H$-$O(B Legendre $B5-9f$H$h$P$l(B,
2660: x^2 = @var{a} mod @var{m} $B$K2r$,$"$k$H$-(B 1, $B2r$,$J$$$H$-(B -1 $B$r$b$I$9(B.
2661: @item
2662: Jacobi $B5-9f$O(B Legendre $B5-9f$N@Q$GDj5A$5$l$k(B ($B=iEy@0?tO@$NK\;2>H(B).
2663: @item
2664: $B$3$N4X?t$O(B machine int $B$NHO0O$G(B jacobi $B5-9f$r7W;;$9$k(B.
1.24 takayama 2665: @end itemize
2666:
2667: @example
1.34 ohara 2668: [1286] small_jacobi(2,3);
2669: -1
2670: [1287] small_jacobi(2,7);
2671: 1
1.24 takayama 2672: @end example
2673:
2674: @table @t
2675: @item $B;2>H(B
1.34 ohara 2676: http://members.jcom.home.ne.jp/yokolabo/asirlib/
2677: $B$b8+$F$M(B.
1.24 takayama 2678: @end table
2679:
2680: @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
2681: @noindent
2682: ChangeLog
2683: @itemize @bullet
1.34 ohara 2684: @item $B$3$N4X?t$NM3Mh$OITL@(B.
1.24 takayama 2685: @end itemize
2686:
1.34 ohara 2687:
2688: @node noro_matrix.rr,,, $B?tO@!&Be?t(B
1.25 takayama 2689: @subsection @code{noro_matrix.rr}
2690: @findex noro_matrix.rr
2691:
2692: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2693: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
2694: @table @t
2695: @item linalg.unit_mat(@var{arg1})
2696: @item linalg.random_rmat(@var{arg1}, @var{arg2}, @var{arg3})
2697: @item linalg.minipoly_mat(@var{arg1})
2698: @item linalg.compute_kernel(@var{arg1})
2699: @item linalg.compute_image(@var{arg1})
2700: @item linalg.jordan_canonical_form(@var{arg1})
2701: @end table
2702:
2703:
2704: @itemize @bullet
2705: @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.
2706: @end itemize
2707:
2708: @example
2709: load("noro_matrix.rr");
2710: A=newmat(4,4,[[2,0,0,0],[3,5,1,0],[-9,-9,-1,0],[-5,0,0,1]]);
2711: B=linalg.jordan_canonical_form(A);
2712: @end example
2713:
2714: @table @t
2715: @item $B;2>H(B
2716: @ref{invmat}
2717: @end table
2718:
2719: @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
2720: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2721: @noindent
2722: ChangeLog
2723: @itemize @bullet
2724: @item $B$3$N4X?t$O(B 2004-04 $B:"$+$i@~7ABe?t(BIII $B$N9V5A$r$7$J$,$i=q$+$l$?(B.
2725: @item $B%=!<%9(B: OpenXM/src/asir-contrib/packages/src/noro_matrix.rr
2726: @end itemize
2727:
2728:
1.34 ohara 2729: @node f_res,,, $B?tO@!&Be?t(B
1.26 takayama 2730: @subsection @code{f_res}
2731: @findex f_res
1.25 takayama 2732:
2733: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2734: @table @t
1.26 takayama 2735: @item f_res
1.25 takayama 2736: @end table
2737:
2738:
2739: @itemize @bullet
1.26 takayama 2740: @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 2741: @end itemize
2742:
2743: @table @t
2744: @item $B;2>H(B
2745: @ref{}
2746: @end table
2747:
2748: @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
2749: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
2750: @noindent
2751: ChangeLog
2752: @itemize @bullet
2753: @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 2754: @item OpenXM/src/ox_cdd, OpenXM/src/asir-contrib/packages/src/f_res.rr
1.25 takayama 2755: @end itemize
2756:
2757:
1.34 ohara 2758: @node D $B2C72$N@)8B$K4X$9$k4X?t(B,,, $B<B83E*;EMM$N4X?t(B
2759: @section D $B2C72$N@)8B$K4X$9$k4X?t(B
1.27 ohara 2760:
2761:
1.34 ohara 2762: @node nk_restriction.restriction,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
1.29 nakayama 2763: @subsection @code{nk_restriction.restriction}
2764: @comment --- $B:w0zMQ%-!<%o!<%I(B
2765: @findex nk_restriction.restriction
2766:
2767: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2768: @table @t
1.34 ohara 2769: @item nk_restriction.restriction(@var{Id}, @var{VL}, @var{DVL}, @var{W})
1.52 nakayama 2770: :: D $B2C72(B M = D / @var{Id} ($B%[%m%N%_%C%/(B D $B%$%G%"%k(B @var{Id}) $B$KBP$7$F(B,
2771: $B=E$_%Y%/%H%k(B @var{W} $B$K$D$$$F$N@)8B2C72$rJV$9(B.
1.29 nakayama 2772: @end table
2773:
2774: @comment --- $B0z?t$N4JC1$J@bL@(B ---
2775: @table @var
2776: @item Id
2777: $B%$%G%"%k$N@8@.85$N%j%9%H(B
2778: @item VL
2779: $BJQ?t$N%j%9%H(B
2780: @item DVL
2781: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
2782: @item W
2783: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
2784: @end table
2785:
2786: @itemize @bullet
2787: @item
1.52 nakayama 2788: @var{W} $B$NMWAG$OHsIi@0?t$G(B, 0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$(B.
2789: ($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)
1.29 nakayama 2790: @item
1.52 nakayama 2791: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@)8B$r9T$&(B.
2792: $BNc$($P(B, @var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,1,0]} $B$G$"$l$P(B,
2793: x,y $B$K$D$$$F@)8B$r9T$&(B.
1.29 nakayama 2794: @end itemize
2795:
1.52 nakayama 2796: $B0J2<$O(B, $B%$%G%"%k(B
1.34 ohara 2797: @iftex
1.29 nakayama 2798: @tex
1.34 ohara 2799: $I = D \cdot \{x \partial_x -1, y \partial_y - 1\} $
2800: @end tex
1.52 nakayama 2801: $B$H$*$$$?;~(B, D $B2C72(B
2802: @tex $M = D / I$ @end tex
2803: $B$N(B
2804: @tex $x$ @end tex
1.34 ohara 2805: @end iftex
2806: @ifinfo
1.52 nakayama 2807: I = D . @{ x dx -1, y dy - 1 @} $B$H$*$$$?;~(B,
2808: D $B2C72(B M = D / I $B$N(B x
1.34 ohara 2809: @end ifinfo
1.52 nakayama 2810: $B$K$D$$$F$N@)8B2C72$r7W;;$7$?Nc$G$"$k(B.
1.29 nakayama 2811: @example
2812: [1432] nk_restriction.restriction([x*dx-1,y*dy-1],[x,y],[dx,dy],[1,0]);
2813: -- generic_bfct_and_gr :0.001sec(0.001629sec)
2814: generic bfct : [[1,1],[s-1,1]]
2815: S0 : 1
1.33 ohara 2816: B_@{S0@} length : 2
1.29 nakayama 2817: -- fctr(BF) + base :0.000999sec(0.0005109sec)
2818: [[y*dy-1,(y*dy-1)*dx,-1],[[1],[0]]]
2819: @end example
1.51 nakayama 2820: $BJV$jCM$NBh(B 1 $BHVL\$NMWAG(B @code{[[1],[0]]]} $B$O(B,
2821: $B@)8B2C72$N4pDl(B
1.52 nakayama 2822: @iftex
1.51 nakayama 2823: @tex $\partial_x^1, \partial_x^0$ @end tex
2824: $B$r0UL#$7(B,
2825: $BJV$jCM$NBh(B 0 $BHVL\$NMWAG$+$i(B, $B@)8B2C72$O(B
2826: @tex $(y \partial_y - 1, 0), (0, y\partial_y-1), (-1,0)$ @end tex
1.52 nakayama 2827: @end iftex
2828: @ifinfo
2829: dx^1, dx^0
2830: $B$r0UL#$7(B,
2831: $BJV$jCM$NBh(B 0 $BHVL\$NMWAG$+$i(B, $B@)8B2C72$O(B
2832: (y dy - 1, 0), (0, ydy-1), (-1,0)
2833: @end ifinfo
1.51 nakayama 2834: $B$G@8@.$5$l$k$3$H$,$o$+$k(B.
1.29 nakayama 2835:
2836: @node nk_restriction.restriction_ideal,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
2837: @subsection @code{nk_restriction.restriction_ideal}
2838: @comment --- $B:w0zMQ%-!<%o!<%I(B
2839: @findex nk_restriction.restriction_ideal
2840:
2841: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2842: @table @t
1.34 ohara 2843: @item nk_restriction.restriction_ideal(@var{Id}, @var{VL}, @var{DVL}, @var{W})
1.52 nakayama 2844: :: $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.
1.29 nakayama 2845: @end table
2846:
2847: @comment --- $B0z?t$N4JC1$J@bL@(B ---
2848: @table @var
2849: @item Id
2850: $B%$%G%"%k$N@8@.85$N%j%9%H(B
2851: @item VL
2852: $BJQ?t$N%j%9%H(B
2853: @item DVL
2854: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
2855: @item W
2856: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
2857: @end table
2858:
2859: @itemize @bullet
2860: @item
1.52 nakayama 2861: @var{W} $B$NMWAG$OHsIi@0?t$G(B, 0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$(B.
2862: ($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)
1.29 nakayama 2863: @item
1.52 nakayama 2864: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@)8B$r9T$&(B.
2865: $BNc$($P(B, @var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,1,0]} $B$G$"$l$P(B,
2866: x,y $B$K$D$$$F@)8B$r9T$&(B.
1.29 nakayama 2867: @end itemize
2868:
1.52 nakayama 2869: $B0J2<$O(B, $B%$%G%"%k(B
1.34 ohara 2870: @iftex
1.52 nakayama 2871: @tex $I = D \cdot \{x \partial_x -1, y \partial_y - 1\} $ @end tex
1.29 nakayama 2872: $B$N(B
1.52 nakayama 2873: @tex $x$ @end tex
1.34 ohara 2874: @end iftex
2875: @ifinfo
2876: I = D . @{ x dx -1, y dy - 1 @} $B$N(B x
2877: @end ifinfo
1.29 nakayama 2878: $B$K$D$$$F$N@)8B%$%G%"%k$r7W;;$7$?Nc$G$"$k!#(B
2879: @example
2880: [1346] nk_restriction.restriction_ideal([x*dx-1,y*dy-1],[x,y],[dx,dy],[1,0]);
2881: -- generic_bfct_and_gr :0.002sec(0.001652sec)
2882: generic bfct : [[1,1],[s-1,1]]
2883: S0 : 1
1.33 ohara 2884: B_@{S0@} length : 2
1.29 nakayama 2885: -- fctr(BF) + base :0sec(0.000566sec)
2886: -- restriction_ideal_internal :0.001sec(0.0007441sec)
2887: [-1]
2888: @end example
2889:
1.34 ohara 2890: @node nk_restriction.integration,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
1.29 nakayama 2891: @subsection @code{nk_restriction.integration}
2892: @comment --- $B:w0zMQ%-!<%o!<%I(B
2893: @findex nk_restriction.integration
2894:
2895: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2896: @table @t
1.34 ohara 2897: @item nk_restriction.integration(@var{Id}, @var{VL}, @var{DVL}, @var{W})
1.52 nakayama 2898: :: D $B2C72(B M = D / @var{Id} ($B%[%m%N%_%C%/(B D $B%$%G%"%k(B @var{Id}) $B$KBP$7$F(B, $B=E$_%Y%/%H%k(B @var{W} $B$K$D$$$F$N@QJ,2C72$rJV$9(B.
1.29 nakayama 2899: @end table
2900:
2901: @comment --- $B0z?t$N4JC1$J@bL@(B ---
2902: @table @var
2903: @item Id
2904: $B%$%G%"%k$N@8@.85$N%j%9%H(B
2905: @item VL
2906: $BJQ?t$N%j%9%H(B
2907: @item DVL
2908: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
2909: @item W
2910: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
2911: @end table
2912:
2913: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
2914: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
2915: @comment --- @bullet $B$O9uE@IU$-(B ---
2916: @itemize @bullet
2917: @item
1.52 nakayama 2918: @var{W} $B$NMWAG$OHsIi@0?t$G(B, 0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$(B.
2919: ($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)
1.29 nakayama 2920: @item
1.52 nakayama 2921: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@QJ,$r9T$&(B.
2922: $BNc$($P(B, @var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,1,0]} $B$G$"$l$P(B,
2923: x,y $B$K$D$$$F@QJ,$r9T$&(B.
1.29 nakayama 2924: @end itemize
2925:
1.52 nakayama 2926: $B0J2<$O(B, $B%$%G%"%k(B
1.34 ohara 2927: @iftex
1.52 nakayama 2928: @tex $I = D \cdot \{2 t \partial_x + \partial_t, t \partial_t + 2 x \partial_x + 2\}$ @end tex
2929: $B$H$*$$$?;~(B, D $B2C72(B
2930: @tex $M = D / I$ @end tex
2931: $B$N(B
2932: @tex $t$ @end tex
1.34 ohara 2933: @end iftex
2934: @ifinfo
1.52 nakayama 2935: I = D . @{2 t dx + dt, t dt + 2 x dx + 2 @}
2936: $B$H$*$$$?;~(B, D $B2C72(B M = D / I $B$N(B t
1.34 ohara 2937: @end ifinfo
1.52 nakayama 2938: $B$K$D$$$F$N@QJ,2C72$r7W;;$7$?Nc$G$"$k(B. ([SST, Ex5.5.2, Ex5.5.6])
1.29 nakayama 2939: @example
2940: [1351] nk_restriction.integration([2*t*dx+dt,2*x*dx+t*dt+2],[t,x],
2941: [dt,dx],[1,0]);
2942: -- generic_bfct_and_gr :0.001sec(0.001796sec)
2943: generic bfct : [[1,1],[s,1],[s-1,1]]
2944: S0 : 1
1.33 ohara 2945: B_@{S0@} length : 2
1.29 nakayama 2946: -- fctr(BF) + base :0.001sec(0.0006731sec)
2947: [[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]]]
2948: @end example
1.51 nakayama 2949: $BJV$jCM$NBh(B 1 $BHVL\$NMWAG(B @code{[[1],[0]]]} $B$O(B,
2950: $B@QJ,2C72$N4pDl(B
1.52 nakayama 2951: @iftex
1.51 nakayama 2952: @tex $t^1, t^0$ @end tex
1.52 nakayama 2953: @end iftex
2954: @ifinfo
2955: t^1, t^0
2956: @end ifinfo
1.51 nakayama 2957: $B$r0UL#$7(B,
2958: $BJV$jCM$NBh(B 0 $BHVL\$NMWAG$+$i(B, $B@QJ,2C72$O(B
1.52 nakayama 2959: @iftex
1.51 nakayama 2960: @tex $(4 x \partial_x^2 + 6 \partial_x, 0), (0, -4 x \partial_x^2 - 6 \partial_x),
2961: (0, -2 x \partial_x), (0, 2 \partial_x)$ @end tex
1.52 nakayama 2962: @end iftex
2963: @ifinfo
2964: (4 x dx^2 + 6 dx, 0), (0, -4 x dx^2 - 6 dx),
2965: (0, -2 x dx), (0, 2 dx)
2966: @end ifinfo
1.51 nakayama 2967: $B$G@8@.$5$l$k$3$H$,$o$+$k(B.
1.29 nakayama 2968:
1.34 ohara 2969: @node nk_restriction.integration_ideal,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
1.29 nakayama 2970: @subsection @code{nk_restriction.integration_ideal}
2971: @comment --- $B:w0zMQ%-!<%o!<%I(B
2972: @findex nk_restriction.integration_ideal
2973:
2974: @comment --- $B4X?t$N4JC1$J@bL@(B ---
2975: @table @t
1.34 ohara 2976: @item nk_restriction.integration_ideal(@var{Id}, @var{VL}, @var{DVL}, @var{W})
1.52 nakayama 2977: :: $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.
1.29 nakayama 2978: @end table
2979:
2980: @comment --- $B0z?t$N4JC1$J@bL@(B ---
2981: @table @var
2982: @item Id
2983: $B%$%G%"%k$N@8@.85$N%j%9%H(B
2984: @item VL
2985: $BJQ?t$N%j%9%H(B
2986: @item DVL
2987: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
2988: @item W
2989: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
2990: @end table
2991:
2992: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
2993: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
2994: @comment --- @bullet $B$O9uE@IU$-(B ---
2995: @itemize @bullet
2996: @item
1.52 nakayama 2997: @var{W} $B$NMWAG$OHsIi@0?t$G(B, 0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$(B.
2998: ($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)
1.29 nakayama 2999: @item
1.52 nakayama 3000: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@QJ,$r9T$&(B.
3001: $BNc$($P(B, @var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,1,0]} $B$G$"$l$P(B,
3002: x,y $B$K$D$$$F@QJ,$r9T$&(B.
1.29 nakayama 3003: @end itemize
3004:
1.52 nakayama 3005: $B0J2<$O(B, $B%$%G%"%k(B
1.34 ohara 3006: @iftex
3007: @tex
1.29 nakayama 3008: $I = D \cdot \{2 t \partial_x + \partial_t, t \partial_t + 2 x \partial_x + 2\} $
1.34 ohara 3009: @end tex
1.29 nakayama 3010: $B$N(B
1.52 nakayama 3011: @tex $t$ @end tex
1.34 ohara 3012: @end iftex
3013: @ifinfo
3014: I = D . @{2 t dx + dt, t dt + 2 x dx + 2 @} $B$N(B t
3015: @end ifinfo
1.52 nakayama 3016: $B$K$D$$$F$N@QJ,%$%G%"%k$r7W;;$7$?Nc$G$"$k(B. ([SST, Ex5.5.2, Ex5.5.6])
1.29 nakayama 3017: @example
3018: [1431] nk_restriction.integration_ideal([2*t*dx+dt,t*dt+2*x*dx+2],[t,x],
3019: [dt,dx],[1,0]);
3020: -- generic_bfct_and_gr :0.002999sec(0.002623sec)
3021: generic bfct : [[1,1],[s,1],[s-1,1]]
3022: S0 : 1
1.33 ohara 3023: B_@{S0@} length : 2
1.29 nakayama 3024: -- fctr(BF) + base :0.001sec(0.001091sec)
3025: -- integration_ideal_internal :0.002sec(0.001879sec)
3026: [2*x*dx+1]
3027: @end example
3028:
1.42 nisiyama 3029: @node nk_restriction.ann_mul,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
3030: @subsection @code{nk_restriction.ann_mul}
3031: @comment --- $B:w0zMQ%-!<%o!<%I(B
3032: @findex nk_restriction.ann_mul
3033:
3034: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3035: @table @t
3036: @item nk_restriction.ann_mul(@var{I}, @var{J}, @var{VL}, @var{DVL})
3037: :: @var{f} $B$rNm2=$9$k%[%m%N%_%C%/(B D $B%$%G%"%k(B @var{I},
3038: @var{g} $B$rNm2=$9$k%[%m%N%_%C%/(B D $B%$%G%"%k$r(B @var{J} $B$H$7$?$H$-(B,
3039: @var{fg} $B$rNm2=$9$k%[%m%N%_%C%/(B D $B%$%G%"%k$rJV$9(B.
3040: @end table
3041:
3042: @comment --- $B0z?t$N4JC1$J@bL@(B ---
3043: @table @var
3044: @item I
3045: $B%$%G%"%k$N@8@.85$N%j%9%H(B
3046: @item J
3047: $B%$%G%"%k$N@8@.85$N%j%9%H(B
3048: @item VL
3049: $BJQ?t$N%j%9%H(B
3050: @item DVL
3051: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
3052: @end table
3053:
3054: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
3055: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
3056: @comment --- @bullet $B$O9uE@IU$-(B ---
3057: @itemize @bullet
3058: @item test_ann_mul(), test_ann_mul2(), test_ann_mul3() $B$r;2>H(B.
3059: @end itemize
3060:
3061:
3062: @node nk_restriction (option) ,,, D $B2C72$N@)8B(B, $B@QJ,$K4X$9$k4X?t$N@bL@(B (option)
1.36 nisiyama 3063: @subsection @code{nk_restriction (option)}
3064: @comment --- $B:w0zMQ%-!<%o!<%I(B
3065: @findex nk_restriction (option)
3066:
3067: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3068: @table @t
3069: @item nk_restriction.restriction(... | inhomo=@var{n}, param=@var{p}, s0=@var{m})
1.39 nisiyama 3070: @item nk_restriction.restriction_ideal(... | inhomo=@var{n}, param=@var{p}, s0=@var{m}, ht=@var{b}, ord=@var{ord})
1.36 nisiyama 3071: @item nk_restriction.integration(... | inhomo=@var{n}, param=@var{p}, s0=@var{m})
1.39 nisiyama 3072: @item nk_restriction.integration_ideal(... | inhomo=@var{n}, param=@var{p}, s0=@var{m}, ht=@var{b}, ord=@var{ord})
1.36 nisiyama 3073: :: D $B2C72$N@)8B(B, $B@QJ,$K4X$9$k4X?t$N%*%W%7%g%s$N@bL@(B
3074: @end table
3075:
3076: @comment --- $B0z?t$N4JC1$J@bL@(B ---
3077: @table @var
3078: @item @var{n}
3079: 0 $B$^$?$O(B 1
3080: @item @var{p}
3081: $B%j%9%H(B ($B78?tBN$KB0$9$kJQ?t$N%j%9%H(B)
3082: @item @var{m}
3083: $B@0?t(B
1.39 nisiyama 3084: @item @var{b}
3085: 0, 1, 2, 3 $B$N$$$:$l$+(B
3086: @item @var{ord}
3087: $B=E$_(B0$B$NJQ?t$KBP$9$k9`=g=x(B
1.36 nisiyama 3088: @end table
3089:
3090: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
3091: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
3092: @comment --- @bullet $B$O9uE@IU$-(B ---
3093: @itemize @bullet
3094: @item @var{n} $B$,(B 0 $B$G$J$$$H$-(B, $BHs@F<!ItJ,$N7W;;$r9T$&(B.
3095:
3096: restriction_ideal (integration_ideal) $B$K4X$7$F$O(B, $B%$%G%"%k(B @code{I} $B$N(B
3097: @code{M} $BJQ?t$K$D$$$F$N@)8B(B($B@QJ,(B)$B%$%G%"%k(B @code{J} $B$H(B
3098:
3099: @iftex
3100: @tex
3101: {\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}
3102: @end tex
3103: @end iftex
3104: @ifinfo
3105: 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
3106: @end ifinfo
3107:
3108: $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.
3109: $B>\$7$$=PNO$N8+J}$K$D$$$F$O(B, $B2<$NNc$d%=!<%9$N(B @code{inhomo_part} $B$N(B
3110: $B%3%a%s%H$r;2>H(B.
3111:
3112: restriction, integration $B$KBP$9$k(B @code{inhomo} $B%*%W%7%g%s$O(B
3113: restriction_ideal, integration_ideal $B$N%5%V%k!<%A%s$H$7$F$N<B9TMQ$J$N$G(B,
3114: $B%f!<%6$,L@<(E*$K;HMQ$9$k$3$H$O$J$$(B.
3115:
3116: @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.
3117: $B$^$?(B, ``generic'' $B$G$"$k$3$H$,2>Dj$5$l$k(B.
3118: $B$D$^$j(B, $B$3$l$i$NJQ?t$K0MB8$9$k$h$&$J(B generic b-$B4X?t$N:,$O(B,
3119: $B:GBg@0?t:,$G$J$$$H$$$&$3$H$G$"$k(B.
3120:
3121: @item @var{param} $B$,;XDj$5$l$k$H(B, generic b-$B4X?t$N7W;;$O(B noro $B$K$h$k(B
3122: $B9bB.%"%k%4%j%:%`$G$O$J$/(B, $B>C5nK!$,MQ$$$i$l$k(B.
3123: @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
3124: $BMxMQ$G$-$k(B.
3125:
3126: @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
3127: $B@)8B(B, $B@QJ,Ey$N7W;;$r9T$&(B.
1.39 nisiyama 3128:
3129: @item @var{b} $B$K$h$j(B, $B2C72$N%0%l%V%J4pDl7W;;$K@F<!2=(B, trace $B%"%k%4%j%:%`(B
3130: $B$rMQ$$$k$+$I$&$+;XDj$G$-$k(B.
3131: $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.
3132:
3133: 0: $B@F<!2=$J$7(B, trace $B$J$7(B
3134:
3135: 1: $B@F<!2=$J$7(B, trace $B$"$j(B
3136:
3137: 2: $B@F<!2=$"$j(B, trace $B$J$7(B ($B%G%U%)%k%H(B)
3138:
3139: 3: $B@F<!2=$"$j(B, trace $B$"$j(B
3140:
3141: @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
3142: $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
3143: $B$H$7$F;HMQ$5$l$k$N$G7W;;8zN($KBg$-$J1F6A$rM?$($k2DG=@-$,$"$k(B.
3144: $B%G%U%)%k%H$O(B 0, $B$D$^$jA4<!?t5U<!=q<0=g=x$G$"$k(B.
3145:
3146: $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 3147: @end itemize
3148:
3149: $B0J2<$O(B,
3150: @iftex
3151: @tex
3152: $ t^{b-1} (1-t)^{c-b-1} (1-xt)^{-a} $
3153: @end tex
3154: $B$N(B annihilator
3155: @tex
3156: $I = D \cdot \{ x(1-x) \partial_x^2+((1-t) \partial_t-(a+b+1)x+c-1)
3157: \partial_x-ab, (1-t)x \partial_x+t(1-t) \partial_t+(2-c)t+b-1,
3158: (xt-1) \partial_x+at \}$
3159: @end tex
3160: $B$N(B
3161: @tex
3162: $t$
3163: @end tex
3164: $B$K$D$$$F$N@QJ,%$%G%"%k(B
3165: @tex
3166: $J$
3167: @end tex
3168: $B$r7W;;$7(B, Gauss $B$ND64v2?HyJ,J}Dx<0$rF3=P$7$?Nc$G$"$k(B. ([SST, Chap 1.3])
3169: @end iftex
3170: @ifinfo
1.56 takayama 3171: t^@{b-1@} (1-t)^@{c-b-1@} (1-xt)^@{-a@}
1.36 nisiyama 3172: $B$N(B annihilator
3173: I = D . @{ x(1-x)dx^2+((1-t)dt-(a+b+1)x+c-1)dx-ab,
3174: (1-t)x dx+t(1-t)dt+(2-c)t+b-1, (xt-1)dx+at @}
3175: $B$N(B t $B$K$D$$$F$N@QJ,%$%G%"%k(B J
3176: $B$r7W;;$7(B, Gauss $B$ND64v2?HyJ,J}Dx<0$rF3=P$7$?Nc$G$"$k(B. ([SST, Chap 1.3])
3177: @end ifinfo
3178: @example
3179: [1555] A=ndbf.ann_n([t,1-t,1-x*t])$
3180: [1556] I=map(subst,A,s0,b-1,s1,c-b-1,s2,-a);
3181: [(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]
3182: [1557] J=nk_restriction.integration_ideal(I,[t,x],[dt,dx],[1,0]|inhomo=1, param=[a,b,c]);
3183: -- nd_weyl_gr :0sec(0.001875sec)
3184: -- weyl_minipoly_by_elim :0.008001sec(0.006133sec)
3185: -- generic_bfct_and_gr :0.008001sec(0.006181sec)
3186: generic bfct : [[-1,1],[s,1],[s-a+c-1,1]]
3187: S0 : 0
1.56 takayama 3188: B_@{S0@} length : 1
1.36 nisiyama 3189: -- fctr(BF) + base :0sec(0.003848sec)
3190: -- integration_ideal_internal :0sec(0.07707sec)
3191: [[(x^2-x)*dx^2+((a+b+1)*x-c)*dx+b*a],[[[[dt,(-t+1)*dx]],1]]]
3192: @end example
3193: @iftex
3194: $B$3$N=PNO$O(B
3195: @tex
3196: $\{(x^2-x) \partial_x^2+((a+b+1)x-c) \partial_x+ab \}
3197: - 1/1 \{ \partial_t (-t+1) \partial_x \} \in I$
3198: @end tex
3199: $B$G$"$k$3$H$r0UL#$9$k(B.
3200: @end iftex
3201: @ifinfo
3202: $B$3$N=PNO$O(B
3203: @{(x^2-x)dx^2+((a+b+1)x-c)dx+ab @} - 1/1 @{ dt (-t+1)dx @} \in I
3204: $B$G$"$k$3$H$r0UL#$9$k(B.
3205: @end ifinfo
3206:
1.42 nisiyama 3207: @node nk_restriction.trans_inhomo,,, D $B2C72$N@QJ,%$%G%"%k$NHs@F<!ItJ,$K4X$9$k4X?t(B
1.39 nisiyama 3208: @subsection @code{nk_restriction.trans_inhomo}
3209: @comment --- $B:w0zMQ%-!<%o!<%I(B
1.42 nisiyama 3210: @findex nk_restriction.trans_inhomo
1.39 nisiyama 3211:
3212: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3213: @table @t
3214: @item nk_restriction.trans_inhomo(@var{P}, @var{INT}, @var{VL}, @var{DVL}, @var{W})
3215: :: 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
3216: @end table
3217:
3218: @comment --- $B0z?t$N4JC1$J@bL@(B ---
3219: @table @var
3220: @item P
3221: $B@QJ,%$%G%"%k$N85(B, $B$^$?$O@)8B%$%G%"%k$N85(B
3222: @item INT
3223: nk_restriction.integration_ideal( ... |inhomo=1); $B$^$?$O(B
3224:
3225: nk_restriction.restriction_ideal( ... |inhomo=1); $B$N=PNO(B
3226: @item VL
3227: $BJQ?t$N%j%9%H(B
3228: @item DVL
3229: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
3230: @item W
3231: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
3232: @end table
3233:
3234: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
3235: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
3236: @comment --- @bullet $B$O9uE@IU$-(B ---
3237: @itemize @bullet
3238: @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.
3239: @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.
3240: @end itemize
3241:
1.42 nisiyama 3242: @node nk_restriction.ost_integration_ideal,,, D $B2C72$N@QJ,%$%G%"%k(B
3243: @subsection @code{nk_restriction.ost_integration_ideal}
3244: @comment --- $B:w0zMQ%-!<%o!<%I(B
3245: @findex nk_restriction.ost_integration_ideal
3246:
3247: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3248: $B@QJ,NN0h$,6h4V$ND>@Q$G$"$k$h$&$J@QJ,$NK~$?$9(B
1.43 nisiyama 3249: $B%[%m%N%_%C%/@F<!HyJ,J}Dx<07O$rJV$9(B (Oaku-Shiraki-Takayama, 2003).
1.42 nisiyama 3250: @table @t
3251: @item nk_restriction.ost_integration_ideal(@var{Id}, @var{VL}, @var{DVL}, @var{W}, @var{LB}, @var{UB})
3252: :: Heaviside $B4X?t$H$N@Q$NK~$?$9HyJ,J}Dx<07O$N7W;;$K%7%g!<%H%+%C%HK!$rMQ$$$k(B.
3253: @item nk_restriction.ost_integration_ideal2(@var{Id}, @var{VL}, @var{DVL}, @var{W}, @var{LB}, @var{UB})
3254: :: Heaviside $B4X?t$H$N@Q$NK~$?$9HyJ,J}Dx<07O$N7W;;$K@)8B%$%G%"%k$rMQ$$$k(B.
3255: @end table
3256:
3257: @comment --- $B0z?t$N4JC1$J@bL@(B ---
3258: @table @var
3259: @item Id
3260: $B%$%G%"%k$N@8@.85$N%j%9%H(B
3261: @item VL
3262: $BJQ?t$N%j%9%H(B
3263: @item DVL
3264: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
3265: @item W
3266: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
3267: @item LB
3268: $B@QJ,6h4V$N2<C<$rI=$9%j%9%H(B
3269: @item UB
3270: $B@QJ,6h4V$N>eC<$rI=$9%j%9%H(B
3271: @end table
3272:
3273: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
3274: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
3275: @comment --- @bullet $B$O9uE@IU$-(B ---
3276: @itemize @bullet
3277: @item $B2<C<(B, $B>eC<$KL58BBg$r;XDj$9$k$H$-$O(B, $BJ8;zNs(B "inf", "+inf", "-inf" $B$rMQ$$$k(B.
3278: @end itemize
3279:
1.43 nisiyama 3280: $B0J2<$O(B, Oaku-Shiraki-Takayama (2003) $B$NNc(B5.1$B$r7W;;$7$?$b$N$G$"$k(B.
1.42 nisiyama 3281: @iftex
3282: @tex
3283: $ \int_0^\infty \exp((-t^3+t)x) dt $
3284: @end tex
1.44 nisiyama 3285: $B$NHo@QJ,4X?t$NK~$?$9%[%m%N%_%C%/%$%G%"%k$O(B
1.42 nisiyama 3286: @tex
3287: $ I = \langle \partial_t +(3t^2-1)x, \partial_x+t^3-t \rangle $
3288: @end tex
3289: $B$G$"$k$+$i(B, $B$3$l$rF~NO$H$7$F<!$N$h$&$K7W;;$r9T$&(B.
3290: @end iftex
3291: @ifinfo
3292: \int_0^$B!g(B exp((-t^3+t)x) dt
3293: $B$NHs@QJ,4X?t$NK~$?$9%[%m%N%_%C%/%$%G%"%k$O(B
3294: I = < dt +(3t^2-1)x, dx+t^3-t >
3295: $B$G$"$k$+$i(B, $B$3$l$rF~NO$H$7$F<!$N$h$&$K7W;;$r9T$&(B.
3296: @end ifinfo
3297: @example
3298: [1871] Id=[dt+(3*t^2-1)*x, dx+t^3-t]$
3299: [1872] VL=[t,x]$
3300: [1873] DVL=[dt,dx]$
3301: [1874] W=[1,0]$
3302: [1875] nk_restriction.ost_integration_ideal(Id,VL,DVL,W,[0],["inf"]);
3303: -- nd_weyl_gr :0.008sec(0.006768sec)
3304: -- weyl_minipoly :0.004001sec(0.003029sec)
3305: -- generic_bfct_and_gr :0.012sec(0.0129sec)
3306: generic bfct : [[1,1],[s,1],[s-2,1]]
3307: S0 : 2
1.56 takayama 3308: B_@{S0@} length : 3
1.42 nisiyama 3309: -- fctr(BF) + base :0.008sec(0.007395sec)
3310: -- integration_ideal_internal :0.012sec + gc : 0.016sec(0.04311sec)
3311: [-27*x^3*dx^3-54*x^2*dx^2+(4*x^3+3*x)*dx+4*x^2-3,27*x^2*dx^4+135*x*dx^3+(-4*x^2+105)*dx^2-16*x*dx-8]
3312:
3313:
3314: [1876] nk_restriction.ost_integration_ideal2(Id,VL,DVL,W,[0],["inf"]);
3315: ($BN,(B)
3316: [27*x^3*dx^3+54*x^2*dx^2+(-4*x^3-3*x)*dx-4*x^2+3,-27*x^2*dx^4-135*x*dx^3+(4*x^2-105)*dx^2+16*x*dx+8]
3317: @end example
3318: $B$3$N=PNO$O(B, $B@QJ,$rNm2=$9$k%[%m%N%_%C%/7O$G$"$k(B.
3319:
1.44 nisiyama 3320: @node nk_restriction.ost_sum,,, D $B2C72$N@QJ,%$%G%"%k(B
3321: @subsection @code{nk_restriction.ost_sum}
3322: @comment --- $B:w0zMQ%-!<%o!<%I(B
3323: @findex nk_restriction.ost_sum
3324:
3325: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3326: @table @t
3327: @item nk_restriction.ost_sum(@var{Id}, @var{VL}, @var{DVL}, @var{W})
3328: :: $BOB$NK~$?$9(B($B@F<!(B/$BHs@F<!(B)$B:9J,J}Dx<07O$rJV$9(B.
3329: @end table
3330:
3331: @comment --- $B0z?t$N4JC1$J@bL@(B ---
3332: @table @var
3333: @item Id
3334: $B%$%G%"%k$N@8@.85$N%j%9%H(B
3335: @item VL
3336: $BJQ?t$N%j%9%H(B
3337: @item DVL
3338: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$k:9J,:nMQAG$NJ}$NJQ?t(B)
3339: @item W
3340: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
3341: @end table
3342:
3343: @comment --- $B$3$3$G4X?t$N>\$7$$@bL@(B ---
3344: @comment --- @itemize$B!A(B@end itemize $B$O2U>r=q$-(B ---
3345: @comment --- @bullet $B$O9uE@IU$-(B ---
3346: @itemize @bullet
3347: @item Oaku-Shiraki-Takayama (2003) $B$NBh(B6$B@a$N%"%k%4%j%:%`$N<BAu(B.
3348: @item $B%*%W%7%g%s(B inhomo $B$,(B 0 $B$G$J$$$H$-(B, $BHs@F<!ItJ,$rM?$($k>pJs$bJV$9(B.
3349: @end itemize
3350:
3351: $B0J2<$O(B, Oaku-Shiraki-Takayama (2003) $B$NNc(B6.5$B$NHs@F<!ItJ,$^$G7W;;$7$?$b$N$G$"$k(B.
3352: @iftex
3353: @tex
3354: $ \sum_{k=a}^b {n \choose k} $
3355: @end tex
3356: $B$NHsOB4X?t$NK~$?$9%[%m%N%_%C%/%$%G%"%k$O(B
3357: @tex
3358: $ I = \langle (n-k+1)E_n-(n+1), (k+1)E_k-(n-k) \rangle $
3359: @end tex
3360: $B$G$"$k$+$i(B, $B$3$l$rF~NO$H$7$F<!$N$h$&$K7W;;$r9T$&(B.
3361: @end iftex
3362: @ifinfo
1.56 takayama 3363: \sum_@{k=a@}^b n_C_k
1.44 nisiyama 3364: $B$NHsOB4X?t$NK~$?$9%[%m%N%_%C%/%$%G%"%k$O(B
3365: I = < (n-k+1)E_n-(n+1), (k+1)E_k-(n-k) >
3366: $B$G$"$k$+$i(B, $B$3$l$rF~NO$H$7$F<!$N$h$&$K7W;;$r9T$&(B.
3367: @end ifinfo
3368: @example
3369: [1871] Id=[(n-k+1)*en-(n+1), (k+1)*ek-(n-k)]$
3370: [1872] VL=[k,n]$
3371: [1873] DVL=[ek,en]$
3372: [1874] W=[1,0]$
3373: [1875] nk_restriction.ost_sum(Id,VL,DVL,W|inhomo=1);
3374: -- nd_weyl_gr :0.006667sec(0.004057sec)
3375: -- weyl_minipoly :0sec(0.001163sec)
3376: -- generic_bfct_and_gr :0.01sec(0.007085sec)
3377: generic bfct : [[1,1],[s,1]]
3378: S0 : 0
1.56 takayama 3379: B_@{S0@} length : 1
1.44 nisiyama 3380: -- fctr(BF) + base :0.003333sec(0.001785sec)
3381: -- restriction_ideal_internal :0sec(0.002336sec)
3382: [[(en-2)*n+en-2],[[[[ek-1,[(-en+1)*n-en+1,1]]],1]]]
3383: @end example
3384:
1.53 nakayama 3385: @node nk_restriction.module_restriction,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
1.51 nakayama 3386: @subsection @code{nk_restriction.module_restriction}
3387: @comment --- $B:w0zMQ%-!<%o!<%I(B
3388: @findex nk_restriction.module_restriction
3389:
3390: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3391: @table @t
3392: @item nk_restriction.module_restriction(@var{M}, @var{VL}, @var{DVL}, @var{W})
1.52 nakayama 3393: :: D $B2C72(B D^r/@var{M} (@var{M} $B$O(B D^r $B$NItJ,2C72(B) $B$N=E$_%Y%/%H%k(B @var{W} $B$K$D$$$F$N@)8B2C72$rJV$9(B.
1.51 nakayama 3394: @end table
3395:
3396: @comment --- $B0z?t$N4JC1$J@bL@(B ---
3397: @table @var
1.52 nakayama 3398: @item M
3399: D $B<+M32C72(B D^r $B$NItJ,2C72(B
1.51 nakayama 3400: @item VL
3401: $BJQ?t$N%j%9%H(B
3402: @item DVL
3403: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
3404: @item W
3405: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
3406: @end table
3407:
3408: @itemize @bullet
3409: @item
3410: @var{W} $B$NMWAG$OHsIi@0?t$G(B, 0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$(B.
3411: @comment{($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)}
3412: $B8=:_$N$H$3$m(B, 1 $BJQ?t$K$D$$$F$@$1@)8B$r$H$k$h$&$K$7$+<BAu$7$F$$$J$$$?$a(B,
3413: @var{W} $B$O(B 0 $BHVL\$NMWAG$@$1@5$N@0?t$,F~$k(B.
3414: @item
3415: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@)8B$r9T$&(B.
3416: $BNc$($P(B, @var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,0,0]} $B$G$"$l$P(B
3417: x $B$K$D$$$F@)8B$r9T$&(B.
3418: @end itemize
3419:
1.52 nakayama 3420: $B0J2<$O(B, D $B<+M32C72(B
1.51 nakayama 3421: @iftex
1.52 nakayama 3422: @tex $D^2$ @end tex
3423: $B$NItJ,2C72(B
1.51 nakayama 3424: @tex
3425: $M = D \cdot \{(\partial_x, \partial_y), (\partial_y, \partial_x), (x,y) \}$
3426: @end tex
1.52 nakayama 3427: $B$r$H$j(B, D $B2C72(B
3428: @tex $D^2 / M$ @end tex
3429: $B$N(B
3430: @tex $x$ @end tex
3431: @end iftex
1.51 nakayama 3432: @ifinfo
1.52 nakayama 3433: D^2 $B$NItJ,2C72(B M = D . @{ (dx, dy), (dy, dx), (x, y) @}
3434: $B$r$H$j(B, D $B2C72(B D^2 / M $B$N(B x
1.51 nakayama 3435: @end ifinfo
1.52 nakayama 3436: $B$D$$$F$N@)8B2C72$r7W;;$7$?Nc$G$"$k(B.
1.51 nakayama 3437: @example
3438: [2691] nk_restriction.module_restriction([[dx,dy],[dy,dx],[x,y]], [x,y], [dx,dy], [1,0]);
3439: ....
3440: bfunction :
3441: s
3442: [[1,1],[s,1]]
3443: integer roots :
3444: [0,0]
3445: Generators:
3446: [e1,e2]
3447: Relations:
3448: [-8*e2*dy,4*e2*dy^2,-4*e2*dy^3,4*e1*y*dy-4*e1,-4*e1*dy^2,-4*e2,-e2*y*dy^2+2*e2*dy,-e1*y*dy+e1,e1*y*dy-e1]
3449: [[0,-1],[-dy^2,0],[y*dy-1,0]]
3450: @end example
3451: $B@)8B2C72$O(B
1.52 nakayama 3452: @iftex
1.51 nakayama 3453: @tex $(0, -1), (-\partial_y^2, 0), (y \partial_y -1 , 0)$ @end tex
1.52 nakayama 3454: @end iftex
3455: @ifinfo
3456: (0, -1), (-dy^2, 0), (y, dy-1, 0)
3457: @end ifinfo
1.51 nakayama 3458: $B$G@8@.$5$l$k$3$H$,$o$+$k(B.
3459:
1.53 nakayama 3460: @node nk_restriction.module_integration,,, D $B2C72$N@)8B$K4X$9$k4X?t(B
1.51 nakayama 3461: @subsection @code{nk_restriction.module_integration}
3462: @comment --- $B:w0zMQ%-!<%o!<%I(B
3463: @findex nk_restriction.module_integration
3464:
3465: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3466: @table @t
3467: @item nk_restriction.module_integration(@var{M}, @var{VL}, @var{DVL}, @var{W})
1.52 nakayama 3468: :: D $B2C72(B D^r/M (@var{M} $B$O(B D^r $B$NItJ,2C72(B) $B$N=E$_%Y%/%H%k(B @var{W} $B$K$D$$$F$N@QJ,2C72$rJV$9(B.
1.51 nakayama 3469: @end table
3470:
3471: @comment --- $B0z?t$N4JC1$J@bL@(B ---
3472: @table @var
1.52 nakayama 3473: @item M
3474: D $B<+M32C72(B D^r $B$NItJ,2C72(B
1.51 nakayama 3475: @item VL
3476: $BJQ?t$N%j%9%H(B
3477: @item DVL
3478: $BJQ?t$N%j%9%H(B(@var{VL} $B$KBP1~$9$kHyJ,:nMQAG$NJ}$NJQ?t(B)
3479: @item W
3480: $B=E$_%Y%/%H%k$rI=$9%j%9%H(B
3481: @end table
3482:
3483: @itemize @bullet
3484: @item
3485: @var{W} $B$NMWAG$OHsIi@0?t$G(B, 0 $BHVL\$NMWAG$+$iO"B3$7$F@5$N@0?t$,F~$i$J$1$l$P$J$i$J$$(B.
3486: @comment{($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)}
3487: $B8=:_$N$H$3$m(B, 1 $BJQ?t$K$D$$$F$@$1@QJ,$r$H$k$h$&$K$7$+<BAu$7$F$$$J$$$?$a(B,
3488: @var{W} $B$O(B 0 $BHVL\$NMWAG$@$1@5$N@0?t$,F~$k(B.
3489: @item
3490: $B@5$N=E$_$r;}$DJQ?t$K$D$$$F$N@QJ,$r9T$&(B.
3491: $BNc$($P(B, @var{VL} @code{=[x,y,z]}, @var{W} @code{=[1,0,0]} $B$G$"$l$P(B
3492: x $B$K$D$$$F@QJ,$r9T$&(B.
3493: @end itemize
3494:
1.52 nakayama 3495: $B0J2<$O(B, D $B<+M32C72(B
1.51 nakayama 3496: @iftex
1.52 nakayama 3497: @tex $D^2$ @end tex
3498: $B$NItJ,2C72(B
3499: @tex $M = D \cdot \{(x, y), (y, x), (\partial_x, \partial_y) \}$ @end tex
3500: $B$r$H$j(B, D $B2C72(B
3501: @tex $D^2/M$ @end tex
1.51 nakayama 3502: $B$N(B
1.52 nakayama 3503: @tex $x$ @end tex
3504: @end iftex
1.51 nakayama 3505: @ifinfo
1.52 nakayama 3506: D^2 $B$NItJ,2C72(B M = D . @{ (x, y), (y, x), (dx, dy) @} $B$r$H$j(B,
3507: D $B2C72(B D^2 / M $B$N(B x
1.51 nakayama 3508: @end ifinfo
1.52 nakayama 3509: $B$K$D$$$F$N@QJ,2C72$r7W;;$7$?Nc$G$"$k(B.
1.51 nakayama 3510: @example
3511: [2702] nk_restriction.module_integration([[x,y],[y,x],[dx,dy]], [x,y], [dx,dy], [1,0]);
3512: ...
3513: bfunction :
3514: s
3515: [[1,1],[s,1]]
3516: integer roots :
3517: [0,0]
3518: Generators:
3519: [e1,e2]
3520: Relations:
3521: [-8*e2*y,-4*e2*y^2,-4*e2*y^3,-4*e1*y*dy-8*e1,-4*e1*y^2,-4*e2,-e2*y^2*dy-4*e2*y,e1*y*dy+2*e1,e1*y*dy+2*e1]
3522: [[0,-1],[y*dy+2,0],[-y^2,0]]
3523: @end example
3524: $B@QJ,2C72$O(B
1.52 nakayama 3525: @iftex
1.51 nakayama 3526: @tex $(0, -1), (y \partial_y + 2, 0), (-y^2, 0)$ @end tex
1.52 nakayama 3527: @end iftex
3528: @ifinfo
3529: (0, -1), (y dy + 2, 0), (-y^2, 0)
3530: @end ifinfo
1.51 nakayama 3531: $B$G@8@.$5$l$k$3$H$,$o$+$k(B.
1.44 nisiyama 3532:
1.30 takayama 3533: @noindent
3534: ChangeLog
3535: @itemize @bullet
3536: @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 3537: @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.
3538: @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
3539: $B?7$?$J4X?t(B trans_inhomo() $B$,DI2C$5$l$?(B. 1.10--1.13 $B$r8+$h(B.
1.44 nisiyama 3540: @item 2011-08 $B$K(B ost_sum() $B$,DI2C$5$l$?(B. 1.20 $B$r8+$h(B.
1.51 nakayama 3541: @item 2016-05 $B$K(B module_integration(), module_restriction() $B$,DI2C$5$l$?(B.
1.30 takayama 3542: @end itemize
3543:
1.37 takayama 3544: @node $B$=$NB>(B($BL$J,N`(B),,, $B<B83E*;EMM$N4X?t(B
3545: @section $B$=$NB>(B($BL$J,N`(B)
3546:
3547: @node tk_pfn.rkn,,, $B<B83E*;EMM$N4X?t(B
3548: @subsection @code{tk_pfn.rkn}
3549: @findex tk_pfn.rkn
3550:
3551: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3552: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
3553: @table @t
3554: @item tk_pfn.rkn(@var{F},@var{X},@var{Y},@var{Xs},@var{Ys},@var{Ht},@var{H})
3555: :: Pfaffian $BJ}Dx<0$KBP$9$k(B Runge-Kutta $BK!(B
3556: @end table
3557:
3558: @table @var
3559: @item return
3560: $B%j%9%H(B $BFHN)JQ?t$H2r$NAH(B
3561: @item F, X, Y, Xs, Ys, Ht, H
3562: @var{F} $B$O(B Pfaffian $BJ}Dx<0$N78?t9TNs%j%9%H(B.
3563: @var{X} $B$OFHN)JQ?t%j%9%H(B.
3564: @var{Y} $B$O=>B0JQ?t%j%9%H(B.
3565: @var{Xs} $BFHN)JQ?t$N=PH/CM%j%9%H(B.
3566: @var{Ys} $B$O=PH/;~$N=>B0JQ?t$NCM%j%9%H(B.
3567: @var{Xt} $B$ODd;_$9$kFHN)JQ?t$NCM%j%9%H(B.
3568: @var{H} $B$OHy>/?t(B.
3569: @end table
3570:
3571: @itemize @bullet
3572: @item $B$3$N4X?t$OO"N)(BPfaffian$BJ}Dx<0(B dY/d X[i] = F[i] Y $B$r?tCME*$K2r$/(B.
3573: @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.
3574: @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.
3575: @item X[i] $B$,F0$/HO0O$O<B?t$G$J$$$H$$$1$J$$(B.
3576: @item Xs[i] <= X[i] <= Xt[i] $B$^$?$O(B Xt[i] <= X[i] <= Xs[i] $B$G$"$k(B.
3577: @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.
3578: @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.
3579: @item $B;29M(B. taka_runge_kutta.rr, yang.rr
3580: @end itemize
3581:
3582: @example
3583: [1355] import("tk_pfn.rr");
3584: [1590] tk_pfn.test1();
3585: Value at (3,0.1)[8.99,6,-0.2]
3586: Value at (1,3)[-8,2,-6]
3587: [[[1,3],-8,2,-6],
3588: [[1,2.9],-7.41,2,-5.8],
3589: --- snip ---
3590: [[3,0.1],8.99,6,-0.2]]
3591: @end example
3592:
3593:
3594: @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
3595: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
3596: @noindent
3597: ChangeLog
3598: @itemize @bullet
3599: @item $B$3$N4X?t$O(B 2009-12 $B$+$i(B 2010-01 $B$K$+$1$F:G=i$NHG$,=q$+$l$?(B.
3600: @item @code{OpenXM/src/asir-contrib/packages/src/tk_pfn.rr} 1.1, 1.2
3601: @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.
3602: @end itemize
1.29 nakayama 3603:
1.40 takayama 3604:
3605: @node tk_pfn.graph,,, $B<B83E*;EMM$N4X?t(B
3606: @subsection @code{tk_pfn.graph}
3607: @findex tk_pfn.graph
3608:
3609: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3610: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
3611: @table @t
3612: @item tk_pfn.graph(@var{Pf},@var{Dom},@var{Iv},@var{Step})
3613: :: 2$BJQ?t(B Pfaffian $BJ}Dx<0$r(B Runge-Kutta $BK!$G2r$$$F%0%i%UI=<($9$k(B.
3614: @end table
3615:
3616: @table @var
3617: @item return
1.41 takayama 3618: $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, ...].
3619: [x$B$NCM(B, y$B$NCM(B] $B$O(B [0,0],[0.2,0],[0.4,0], ... , [0,0.2],[0.2,0.2], ... $B$N$h$&$K(B
3620: y $B$NCM$,30B&%k!<%W(B, x $B$NCM$,FbB&%k!<%W$N7A<0$GA}$($k(B.
1.40 takayama 3621: @item Pf, Dom, Iv, Step
3622: @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.
3623: @var{Dom} $B%j%9%H(B. $B2r$/$Y$-NN0h(B.
3624: @var{Iv} $B%j%9%H(B. $BNN0h$N:8C<$G$N=i4|CM(B.
3625: @var{Step} $B9o$_I}(B.
3626: @end table
3627:
3628: @itemize @bullet
3629: @item tk_pf2.rr, mt_graph.rr $B$r(B import $B$7$F$*$/I,MW$,$"$k(B.
3630: @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.
3631: @item @var{Dom} $B$O(B [[xmin,xmax],[ymin,ymax]] $B$N7A<0(B.
3632: @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.
3633: @item option $B$H$7$F$O(B fit=1 $B$,$"$k(B. Z$B<4$rE,59D4@0$9$k(B.
1.41 takayama 3634: @item @var{Dom} $B$NC<$O%0%i%UI=<($N;~$K0lIt%+%C%H$5$l$k$N$GCm0U(B.
1.40 takayama 3635: @end itemize
3636:
3637: @example
3638: [1355] import("tk_pf2.rr"); import("mt_graph.rr"); import("tk_pfn.rr");
1.41 takayama 3639: [1590] tk_pfn.testgraph1();
1.40 takayama 3640:
3641: $B$3$3$G(B testgraph1() $B$O0J2<$N$H$*$j(B.
1.56 takayama 3642: def testgraph1() @{
1.40 takayama 3643: /* tk_bess2.bess2pf(1/2); */
3644: Pf= [[[ 0, (1)/(x), 0 ],
3645: [ -x, (2*x^2+1)/(x), -2*x ],
3646: [ -y, 0, 0 ]],
3647: [[ 0, 0, (1)/(y) ],
3648: [ -x, 0, 0 ],
3649: [ -x, (1/2)/(x), (-1/2)/(y) ]]];
3650: /* tk_bess2.bess2Iv(1/2,[0.5,1.5]); */
3651: Iv = [0.105994,-0.651603,-0.760628];
3652: Dom=[[0.5,1.5],[1.5,9]];
3653: Step = 0.5;
1.41 takayama 3654: return tk_pfn.graph(Pf,Dom,Iv,Step | fit=1);
1.56 takayama 3655: @}
1.40 takayama 3656:
3657:
3658: @end example
3659:
3660:
3661: @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
3662: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
3663: @noindent
3664: ChangeLog
3665: @itemize @bullet
3666: @item $B$3$N4X?t$O(B 2010-08 $B$K:G=i$NHG$,=q$+$l$?(B.
3667: @item @code{OpenXM/src/asir-contrib/packages/src/tk_pfn.rr} 1.8
3668: @end itemize
3669:
1.41 takayama 3670: @node tk_rk.runge_kutta_4,,, $B<B83E*;EMM$N4X?t(B
3671: @subsection @code{tk_rk.runge_kutta_4}
3672: @findex tk_rk.runge_kutta_4
3673:
3674: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3675: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
3676: @table @t
3677: @item tk_rk.runge_kutta_4(@var{Eq},@var{X},@var{Y},@var{X0},@var{Y0},@var{Terminal},@var{Step})
3678: :: 4$B<!$N(B Runge-Kutta $BK!$K$h$kHyJ,J}Dx<0$N?tCM6a;w2r(B
3679: @end table
3680:
3681: @table @var
3682: @item return
3683: $B%j%9%H(B $B%j%9%H$NMWAG$O0J2<$N7A<0(B [@var{X}$B$NCM(B,Y_1$B$NCM(B,Y_2$B$NCM(B, ...].
3684: @var{X} $B$NCM$O8:$C$F$$$/(B. $B$h$C$F%j%9%H$N@hF,$,(B @var{Terminal} $BIU6a$G$N(B @var{Y} $B$NCM(B.
3685: @item Eq, X, Y, Step
3686: @var{Eq} $B$O(B $BJ}Dx<0$N1&JU(B. $B%j%9%H(B. Y[0]'=Eq[0], Y[1]'=Eq[1], ... $B$G$"$k(B.
3687: @var{X} $BFHN)JQ?tL>(B.
3688: @var{Y} $B%j%9%H(B. $B=>B0JQ?t$N%j%9%H(B.
3689: @var{Step} $B9o$_I}(B.
3690: @item X0, Y0, Terminal
3691: @var{X0} $B=PH/E@$N(B @var{X} $B$NCM(B.
3692: @var{Y0} $B=PH/E@$G$N(B @var{Y} $B$N=i4|CM(B.
3693: @var{Terminal} @var{X} $B$N=*CeE@(B.
3694: @end table
3695:
3696: @itemize @bullet
3697: @item taka_runge_kutta.rr $B$r(B import $B$7$F$*$/I,MW$,$"$k(B.
3698: @item $B$3$N4X?t$OO"N)>oHyJ,J}Dx<0(B Y[0]'=Eq[0], Y[1]'=Eq[1], ... $B$r?tCME*$K2r$/(B.
3699: @item $BNc$O%=!<%9%3!<%I(B (@code{OpenXM/lib/asir-contrib/src/taka_runge_kutta.rr} )$B$N(B
3700: @code{tk_rk.test4()} $B$r;2>H(B.
3701: @end itemize
3702:
3703: @example
3704: [1355] import("taka_runge_kutta.rr");
3705: [1590] tk_rk.test4();
3706:
3707: $B$3$3$G(B test4() $B$O0J2<$N$H$*$j(B. $B?6F0$NJ}Dx<0(B, y0'=y1, y1'=-y0 (y0''+y0=0). $BEz$O(B y0=cos(x)
3708: taka_plot_auto $B$O2<J}8~$G(B y $B$,@5(B.
3709:
1.56 takayama 3710: def test4() @{
1.41 takayama 3711: A=runge_kutta_4([y1,-y0],x,[y0,y1],0,[1,0],3.14*2,0.1);
3712: taka_plot_auto(A);
3713: return(A);
1.56 takayama 3714: @}
1.41 takayama 3715:
3716: @end example
3717:
3718:
3719: @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
3720: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
3721: @noindent
3722: ChangeLog
3723: @itemize @bullet
3724: @item $B$3$N4X?t$O(B 2000 $BG/Be$NA0H>$K:G=i$NHG$,=q$+$l$?(B. 2010$BG/(B Pfaffian $B$N?tCM2r@O$N0Y$K:FEY@0Hw(B
3725: @item @code{OpenXM/src/asir-contrib/packages/src/taka_runge_kutta.rr} 1.17
3726: @end itemize
3727:
3728: @node tk_rk.runge_kutta_4_linear,,, $B<B83E*;EMM$N4X?t(B
3729: @subsection @code{tk_rk.runge_kutta_4_linear}
3730: @findex tk_rk.runge_kutta_4_linear
3731:
3732: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3733: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
3734: @table @t
3735: @item tk_rk.runge_kutta_4_linear(@var{P},@var{X},@var{Y},@var{X0},@var{Y0},@var{Terminal},@var{Step})
3736: :: 4$B<!$N(B Runge-Kutta $BK!$K$h$kHyJ,J}Dx<0$N?tCM6a;w2r(B. $B@~7AJ}Dx<0@lMQ(B.
3737: @end table
3738:
3739: @table @var
3740: @item return
3741: $B%j%9%H(B $B%j%9%H$NMWAG$O0J2<$N7A<0(B [@var{X}$B$NCM(B,Y_1$B$NCM(B,Y_2$B$NCM(B, ...].
3742: @var{X} $B$NCM$O8:$C$F$$$/(B. $B$h$C$F%j%9%H$N@hF,$,(B @var{Terminal} $BIU6a$G$N(B @var{Y} $B$NCM(B.
3743: @item P, X, Y, Step
3744: @var{P} $B$O(B $BJ}Dx<0$N1&JU(B. $B%j%9%H(B. Y'=P Y $B$G$"$k(B. $B=>B0JQ?t(B @var{Y} $B$OITMW(B.
3745: @var{X} $BFHN)JQ?tL>(B.
3746: @var{Y} $B%j%9%H(B. $B=>B0JQ?t$N%j%9%H(B. $B=>B0JQ?t$O<+F0@8@.$5$l$k(B. $B;H$o$l$F$$$J$$$N$G6u%j%9%H$G$h$$(B.
3747: @var{Step} $B9o$_I}(B.
3748: @item X0, Y0, Terminal
3749: @var{X0} $B=PH/E@$N(B @var{X} $B$NCM(B.
3750: @var{Y0} $B=PH/E@$G$N(B @var{Y} $B$N=i4|CM(B.
3751: @var{Terminal} @var{X} $B$N=*CeE@(B.
3752: @end table
3753:
3754: @itemize @bullet
3755: @item taka_runge_kutta.rr $B$r(B import $B$7$F$*$/I,MW$,$"$k(B.
3756: @end itemize
3757:
3758: @example
3759: [1355] import("taka_runge_kutta.rr");
3760: [1590] A=tk_rk.runge_kutta_4_linear([[0,1],[-1,0]],x,[ ], 0, [1,0], 3.14*2, 0.1);
3761: [1591] taka_plot_auto(A);
3762:
3763: $B?6F0$NJ}Dx<0(B, y0'=y1, y1'=-y0 (y0''+y0=0). $BEz$O(B y0=cos(x) $B$r2r$$$F$$$k(B.
3764: taka_plot_auto $B$O2<J}8~$G(B y $B$,@5(B.
3765:
3766: @end example
3767:
3768:
3769: @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
3770: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
3771: @noindent
3772: ChangeLog
3773: @itemize @bullet
3774: @item 2010$BG/(B Pfaffian $B$N?tCM2r@O$N0Y$K:F@0Hw(B.
3775: @item @code{OpenXM/src/asir-contrib/packages/src/taka_runge_kutta.rr} 1.17
3776: @end itemize
3777:
1.40 takayama 3778:
3779:
1.57 ! takayama 3780: @node fj_simplify.simplify,,, $B<B83E*;EMM$N4X?t(B
! 3781: @subsection @code{fj_simplify.simplify}
! 3782: @findex fj_simplify.simplify
1.38 takayama 3783:
3784: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3785: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
3786: @table @t
1.57 ! takayama 3787: @item fj_simplify.simplify(@var{arg1})
1.38 takayama 3788: :: arg1 $B$r4JC12=$9$k(B.
3789: @end table
3790:
3791: @table @var
3792: @item return
3793: $BB?9`<0(B, $BM-M}<0(B $B$^$?$O(B quote
3794: @item arg1
3795: $BB?9`<0(B $B$^$?$O(B $BM-M}<0(B
3796: @end table
3797:
3798: @itemize @bullet
3799: @item
3800: $B$3$N4X?t$O(B
3801: Joel S. Cohen, Computer Algebra and Symbolic Computation,
3802: http://web.cs.du.edu/~jscohen/MathematicalMethods/index.htm
3803: $B$K5-=R$5$l$F$$$k(B Automatic simplification algorithm $B$H(B
3804: B.F.Caviness, R.J.Fateman, Simplification of Radical Expressions (1976)
3805: $B$K5-=R$5$l$F$$$k(B radcan $B%"%k%4%j%:%`$N<BAu$G$"$k(B.
3806: @item
3807: $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
3808: $BCm0U$,I,MW$G$"$k(B. (x^a = exp(a*log(x)) $B$J$N$G(B)
3809: @end itemize
3810:
3811: @example
1.57 ! takayama 3812: import("fj_simplify.rr");
! 3813: [1434] fj_simplify.simplify((x^(1/2))^3);
1.38 takayama 3814: ((x)^(3/2))
1.57 ! takayama 3815: [1435] fj_simplify.simplify((2^(1/2))^2);
1.38 takayama 3816: 2
1.57 ! takayama 3817: [1436] fj_simplify.simplify((2+2^(1/2))^3);
1.38 takayama 3818: 14*((2)^(1/2))+20
1.57 ! takayama 3819: [1437] fj_simplify.simplify(exp(x)*exp(-x+y));
1.38 takayama 3820: ((@@e)^(y))
3821: @end example
3822:
3823: @table @t
3824: @item $B;2>H(B
3825: @ref{quote}
3826: @end table
3827:
3828: @noindent
3829: ChangeLog
3830: @itemize @bullet
3831: @item
3832: Todo: exp $B0J30$NFC<l4X?t$K$D$$$F$N(Bsimplification $B$N5!G=(B.
3833: @item
3834: $B$3$N4X?t$O(B 2010.01 $B$K(B M.Fujimoto $B$K$h$j:G=i$NHG$,=q$+$l$?(B.
3835: OpenXM/src/asir-contrib/packages/src/fj_simplify.rr
3836: @end itemize
3837:
1.46 takayama 3838: @node tk_jack.zonal,,, $B<B83E*;EMM$N4X?t(B
3839: @subsection @code{tk_jack.zonal}
3840: @findex tk_jack.zonal
3841:
3842: @comment --- $B4X?t$N4JC1$J@bL@(B ---
3843: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
3844: @table @t
3845: @item tk_jack.zonel(@var{p},@var{n})
3846: :: $BJ,3d(B p $B$KBP$9$k(B n $BJQ?t$N(B zonal $BB?9`<0$r=PNO$9$k(B.
3847: @end table
3848:
3849: @table @var
3850: @item return
3851: $BB?9`<0(B. x_1, x_2, ... $B$,JQ?t(B.
3852: @item p
3853: $B?t$N%j%9%H(B. p=[p0,p1,...] $B$N;~(B p0>=p1>=...>0.
3854: @item n
3855: $B<+A3?t(B
3856: @end table
3857:
3858: @itemize @bullet
3859: @item
3860: $B$3$N4X?t$O(B
3861: Koev-Edelman $B$K$h$k(B Pieri $B7?8x<0$rMQ$$$?(B Jack symmetric function $B$N7W;;(B
3862: $B%"%k%4%j%:%`$N<BAu$G$"$k(B.
3863: $B>\$7$/$O(B Wikipedia $B1Q8lHG(B Jack symmetric function $B$N9`$r;2>H(B.
3864: @item zonal(P,N) = jack(P,N,2) $B$G$"$k(B.
3865: @end itemize
3866:
3867: @example
3868: load("tk_jack.rr");
3869: [1434] tk_jack.zonal([3,2,1],3);
3870: (112*x_3*x_2^2+112*x_3^2*x_2)*x_1^3+(112*x_3*x_2^3+168*x_3^2*x_2^2+112*x_3^3*x_2)*x_1^2+(112*x_3^2*x_2^3+112*x_3^3*x_2^2)*x_1
3871: [1435] tk_jack.zonal([1,1],3);
3872: (2*x_2+2*x_3)*x_1+2*x_3*x_2
3873: [1436] tk_jack.jack([1,1],3,2);
3874: (2*x_2+2*x_3)*x_1+2*x_3*x_2
3875: @end example
3876:
3877: @table @t
3878: @item $B;2>H(B
3879: @end table
3880:
3881: @noindent
3882: ChangeLog
3883: @itemize @bullet
3884: @item
3885: $B$3$N4X?t$O(B wishart $BJ,I[$K=>$&BP>N9TNs$NBh0l8GM-CM$,(B x $B0J2<$G$"$k3NN($N7W;;$r(B
3886: holonomic gradient method $B$G$d$k$?$a$K$=$N=i4|CM$r7W;;$9$k(B C $B$N%W%m%0%i%`$,(B
3887: $BI,MW$G$"$C$?(B. $B$=$l$r(B debug $B$9$k$?$a$K$H$j$"$($:=q$$$?$b$N(B.
3888: @item $B:GE,2=$r$^$@$^$@$5$\$C$F$k(B.
3889: @end itemize
3890:
1.49 takayama 3891: @node ot_hgm_ahg.cbase,,, $B<B83E*;EMM$N4X?t(B
3892: @subsection @code{ot_hgm_ahg.cbase}
3893: @findex ot_hgm_ahg.cbase
3894:
3895: @table @t
3896: @item cbase(@var{A})
3897: :: @var{A} $B$GDj5A$5$l$k(B A-$BD64v2?J}Dx<07O$N(B Pfaffian $B$N4pDl$r5a$a$k(B.
3898: @end table
3899:
3900: @table @var
3901: @item return
3902: Pfaffian$B$N4pDl(B($BHyJ,:nMQAG$N%b%N%_%"%k(B)$B$N%j%9%H(B
3903: @item A
3904: $B@0?t$r@.J,$H$9$k9TNs(B (maximal rank $B$N$b$N(B)$B$rI=$9%j%9%H(B
3905: @end table
3906:
3907: @itemize @bullet
3908: @item A-$BD64v2?%$%G%"%k$N(B Q(x)[dx] $B$K$*$1$kI8=`4pDl$O(B Pfaffian $B$N4pDl$H$J$k$,(B, $B5U$O$+$J$i$:$7$b??$G$O$J$$(B. $B8D?t$O$b$A$m$sF1$8$G$"$k(B.
3909: @item
3910: $B%"%k%4%j%:%`$O(B
3911: T.Hibi, K.Nishiyama, N.Takayama, Pfaffian Systems of A-Hypergeometric Equations I, Bases of Twisted Cohomology Groups, arxiv:1212.6103
3912: $B$K$h$k(B.
3913: $B$5$i$K%Q%i%a!<%?(B b $B$r?t$KFC<l2=$9$k3NN(;;K!$rMQ$$$F$$$k(B.
3914: @end itemize
3915:
3916: @example
3917: [2190] import("ot_hgm_ahg.rr");
3918: 1
3919: [2191] ot_hgm_ahg.cbase([[1,1,1,1],[0,1,2,3]]);
3920: We use a probabilistic algorithm to determine the base.[dx2^2,dx3*dx2,dx3^2]
3921:
3922: [dx3,dx4,1]
3923: @end example
3924:
3925: @table @t
3926: @item $B;2>H(B
3927: @ref{get_mat2}
3928: @end table
3929:
3930: @noindent
3931: ChangeLog
3932: @itemize @bullet
3933: @item
3934: $B$3$N4X?t$O(B 2012 $B$+$i(B 2014-$B=U5Y$_$K$+$1$F$+$+$l$?(B.
3935: @item version 1.1 $B0JA0$NHG$O(B h-mle/A-hg/Prog ($B8&5f%0%k!<%W$N6&M-%U%)%k%@(B) $B$K$"$j(B.
3936: @end itemize
3937:
3938: @node ot_hgm_ahg.get_mat2,,, $B<B83E*;EMM$N4X?t(B
3939: @subsection @code{ot_hgm_ahg.get_mat2}
3940: @findex ot_hgm_ahg.get_mat2
3941: @comment get_mat2
3942: @table @t
3943: @item get_mat2(@var{A},@var{W},@var{Std},@var{Mset})
3944: :: @var{A} $B$GDj5A$5$l$k(B A-$BD64v2?J}Dx<07O(B H_A $B$N(B Pfaffian $B$N4pDl$r5a$a$k$?$a$N(B Sylvester $BK!(B $B$rE,MQ$9$k$?$a$N9TNs$r@8@.$9$k(B.
3945: @end table
3946:
3947: @table @var
3948: @item return
3949: $B%j%9%H(B
3950: @item A
3951: $B@0?t$r@.J,$H$9$k9TNs(B (maximal rank $B$N$b$N(B)$B$rI=$9%j%9%H(B
3952: @item W
3953: $B%j%9%H(B. toric ideal $B$N%0%l%V%J!<4pDl$r7W;;$9$k$?$a$N(B weight vector.
3954: $BB?J,$J$s$G$b$$$$$O$:(B.
3955: @item Std
3956: $B%j%9%H(B. Pfaffian $B$N4pDl(B. cbase(A) $B$N=PNO$rMQ$$$k(B.
3957: @item Mset
3958: Sylvester $B7?9TNs$r:n$k$?$a$NHyJ,:nMQAG$N%b%N%_%"%k$N%j%9%H(B.
3959: @end table
3960:
3961: @itemize @bullet
3962: @item $B=PNO$r(B @var{P} $B$KBeF~$9$k$H(B,
3963: @var{P}[0]*@var{P}[2] - @var{P}[1]*@var{Std} $B$,(B modulo H_A $B$G(B 0 $B$H$J$k(B.
3964: @var{P}[0] $B$H(B @var{P}[2] $B$r7k9g$7$?9TNs$,(B, sylvester $B9TNs(B ($BO@J8$N5-9f$G$N(B F').
3965: @var{P}[2], @var{Std} $B$,(B index $B%b%N%_%"%k$G$"$k(B.
3966: $BO@J8$G$N5-9f$G$O(B @var{P}[2] $B$O(B M_t, @var{Std} $B$O(B S.
3967: @item
3968: $B%"%k%4%j%:%`$O(B
3969: K.Ohara, N.Takayama, Pfaffian Systems of A-Hypergeometric Equations II, Holonomic Gradient Method
3970: $B$K$h$k(B. $BO@J8$N9TNs(B F'.
3971: @end itemize
3972:
3973: @example
3974: [2190] import("ot_hgm_ahg.rr");
3975: 1
3976: [2191] A=[[1,1,1,1],[0,1,2,3]]$
3977: Std=ot_hgm_ahg.cbase(A)$
3978: W=[[dx1,1,dx2,1,dx3,1,dx4,1]]$
3979: Mset=[1,dx1,dx2,dx3,dx4]$
3980: [2192] ot_hgm_ahg.get_mat2(A,W,Std,Mset);
3981:
3982: $B>JN,(B
3983: @end example
3984:
3985: @table @t
3986: @item $B;2>H(B
3987: @ref{cbase}
3988: @end table
3989:
3990: @noindent
3991: ChangeLog
3992: @itemize @bullet
3993: @item
3994: $B$3$N4X?t$O(B 2012 $B$+$i(B 2014-$B=U5Y$_$K$+$1$F$+$+$l$?(B.
3995: @item version 1.1 $B0JA0$NHG$O(B h-mle/A-hg/Prog ($B8&5f%0%k!<%W$N6&M-%U%)%k%@(B) $B$K$"$j(B.
3996: @item
3997: $B%=!<%9(B ot_hgm_ahg.rr $B$N(B test3(), test3b(), test4(), test5(), test6(), test6c() $BEy$KMxMQNc$,$"$k(B.
3998: @item
3999: test3b() $B$G(B @var{Mset} $B$r0l<!<0A4It$K$7$?$b$N$,(B, $BO@J8$NNc(B.
4000: @end itemize
4001:
4002: @comment -------------------
4003: @comment hgm_ahg_contiguity
4004: @comment -------------------
4005: @node ot_hgm_ahg.hgm_ahg_contiguity,,, $B<B83E*;EMM$N4X?t(B
4006: @subsection @code{ot_hgm_ahg.hgm_ahg_contiguity}
4007: @findex ot_hgm_ahg.hgm_ahg_contiguity
4008:
4009: @table @t
4010: @item hgm_ahg_contiguity(@var{A},@var{StdMon},@var{Line},@var{X0},@var{InitVal},@var{Start},@var{End})
4011: :: @var{A} $B$GDj5A$5$l$k(B A-$BD64v2?J}Dx<07O$N(Bcontiguity relation
4012: $B$r(B Sylvester matrix $B$rMQ$$$F7W;;$7(B, $B$=$l$rMQ$$$FD64v2?4X?t$NCM$r5a$a$k(B.
4013: @end table
4014:
4015: @table @var
4016: @item return
4017: $B4pDl$rD64v2?4X?t$K:nMQ$5$;$?%Y%/%H%k$NCM(B F(End;X0) ??
4018: @item A
4019: $B@0?t$r@.J,$H$9$k9TNs(B (maximal rank $B$N$b$N(B)$B$rI=$9%j%9%H(B.
4020: @item StdMon
4021: $B%j%9%H(B. Pfaffian $B$N4pDl$rM?$($kHyJ,:nMQAG$N%b%N%_%"%k$N%j%9%H(B.
4022: @item Line
4023: $B%j%9%H(B [ContiDir,Beta,Z].
4024: @item X0
4025: $B%j%9%H(B. x $BJQ?t$NCM(B.
4026: @item InitVal
4027: $B%j%9%H(B. $B4pDl$rD64v2?4X?t$K:nMQ$5$;$?%Y%/%H%k$N=i4|CM(B F(Start;X0)
4028: @item Start
4029: $B%j%9%H(B. Z $B%Q%i%a!<%?$N=i4|CM(B??
4030: @item End
4031: $B%j%9%H(B. Z $B%Q%i%a!<%?$N=*C<CM(B??
4032: @end table
4033:
4034: @itemize @bullet
4035: @item Todo, $B$3$N4X?t$N%$%s%?%U%'!<%9$OJQ99$5$l$kM=Dj(B.
4036: @item X0 $B$OM-M}?t$N%j%9%H(B.
4037: @item ContiDir $B$O(B End-Start $B$HF1$8J}8~(B.
4038: @item Beta. A$BD64v2?4X?t$N(B B $B%Q%i%a!<%?$N=i4|CM(B ??
4039: @item Z. ContiDir $B$G$N0l<!85(B contiguity $B$rI=8=$9$k$?$a$NITDj85$NL>A0(B.
4040: @item $B%=!<%9Cf$NMxMQNc(B. test_fd_conti(), test_c111_conti()
4041: @item
4042: $B%"%k%4%j%:%`$*$h$SMxE@$O(B
4043: K.Ohara, N.Takayama, Pfaffian Systems of A-Hypergeometric Equations II, Holonomic Gradient Method
4044: $B;2>H(B.
4045: @end itemize
4046:
4047: @example
4048: [2190] import("ot_hgm_ahg.rr");
4049: 1
4050: [2191] ot_hgm_ahg.test_fd_conti();
4051: (Todo, $B0z?t$,$I$&$J$k$+$NNc$r2C$($k(B.)
4052: @end example
4053:
4054: @table @t
4055: @item $B;2>H(B
4056: @ref{get_mat2}
4057: @ref{hgm_ahg_expected_value_contiguity}
4058: @ref{hgm_ahg}
4059: @end table
4060:
4061: @noindent
4062: ChangeLog
4063: @itemize @bullet
4064: @item
4065: $B$3$N4X?t$O(B 2014-07-11 $B$K:G=i$NHG$,(B 1.10$BHG(B ot_hgm_ahg.rr $B$K(B commit $B$5$l$?(B.
4066: @item $B%$%s%?%U%'!<%9$,99?7$5$l$?HG$O(B, 1.??$BHG(B.
4067: @end itemize
4068:
4069: @comment -------------------
4070: @comment tk_hgpoly.optip
4071: @comment -------------------
4072: @node tk_hgpoly.optip,,, $B<B83E*;EMM$N4X?t(B
4073: @subsection @code{tk_hgpoly.optip}
4074: @findex tk_hgpoly.optip
4075:
4076: @table @t
4077: @item hgpoly.optip(@var{A},@var{B},@var{W})
4078: :: $B@0?t7W2hLdBj$r%0%l%V%J!<4pDl$rMQ$$$F2r$/(B.
4079: @end table
4080:
4081: @table @var
4082: @item return
4083: $B%j%9%H(B.
4084: @item A
4085: $BHsIi@0?t$r@.J,$H$9$k9TNs(B (maximal rank $B$N$b$N(B)$B$rI=$9%j%9%H(B
4086: @item B
4087: $BHsIi@0?t$r@.J,$H$9$k%Y%/%H%k$rI=$9%j%9%H(B
4088: @item W
4089: $BHsIi@0?t$r@.J,$H$9$k%Y%/%H%k$rI=$9%j%9%H(B
4090: @end table
4091:
4092: @itemize @bullet
4093: @item @var{A} U = @var{B} $B$rK~$?$9HsIi$N@0?t%Y%/%H%k(B U $B$NCf$G(B,
4094: $BFb@Q(B @var{W} U $B$r:G>.2=$9$k(B U $B$rLa$9(B.
4095: @end itemize
4096:
4097: @example
4098: [0] import("tk_hgpoly.rr");
4099: [2191] tk_hgpoly.optip([[1,1,1,1],[0,1,2,3]],[20,40],[1,1,1,0]);
4100: [6,1,0,13]
4101: @end example
4102:
4103: @table @t
4104: @item $B;2>H(B
4105: @ref{feasible}
4106: @end table
4107:
4108: @noindent
4109: ChangeLog
4110: @itemize @bullet
4111: @item
4112: $B$3$N4X?t$O(B 2014-12-12 $B$K(B commit $B$5$l$?(B.
4113: $B85HG$O(B h-mle/A-hg/Prog
4114: @end itemize
4115:
4116: @comment -------------------
4117: @comment tk_hgpoly.hgpoly
4118: @comment -------------------
4119: @node tk_hgpoly.hgpoly,,, $B<B83E*;EMM$N4X?t(B
4120: @subsection @code{tk_hgpoly.hgpoly}
4121: @findex tk_hgpoly.hgpoly
4122: @table @t
4123: @item hgpoly.hgpoly(@var{A},@var{B})
4124: :: @var{A}, @var{B} $B$GDj5A$5$l$kD64v2?B?9`<0$r7W;;$9$k(B.
4125: @end table
4126:
4127: @table @var
4128: @item return
4129: $B%j%9%H(B.
4130: @item A
4131: $BHsIi@0?t(B(todo, $B:FEY3NG'(B)$B$r@.J,$H$9$k9TNs(B (maximal rank $B$N$b$N(B)$B$rI=$9%j%9%H(B
4132: @item B
4133: $BHsIi@0?t$r@.J,$H$9$k%j%9%H(B.
4134: @end table
4135:
4136: @itemize @bullet
4137: @item $BLa$jCM$r(B F $B$H$9$k$H$-(B, F[0] $B$,D64v2?B?9`<0(B. $BJQ?t$O(B x_1, x_2, ...
4138: F[1] $B$O(B F[0] $B$NJ,;6I=8=B?9`<0(B.
4139: @end itemize
4140:
4141: @example
4142: [0] import("tk_hgpoly.rr");
4143: [2191] tk_hgpoly.hgpoly([[1,1,1,1],[0,1,2,3]],[2,2]);
4144: [x_3*x_1+1/2*x_2^2,(1/2)*<<0,2,0,0>>+(1)*<<1,0,1,0>>]
4145: @end example
4146:
4147:
4148: @noindent
4149: ChangeLog
4150: @itemize @bullet
4151: @item
4152: $B$3$N4X?t$O(B 2014-12-12 $B$K(B commit $B$5$l$?(B.
4153: @end itemize
4154:
4155: @comment -------------------
4156: @comment tk_fd.abc2ahg
4157: @comment -------------------
4158: @node tk_fd.abc2ahg,,, $B<B83E*;EMM$N4X?t(B
4159: @subsection @code{tk_fd.abc2ahg}
4160: @findex tk_fd.abc2ahg
4161: @table @t
4162: @item tk_fd.abc2ahg(@var{A},@var{B},@var{C})
4163: :: F_D(@var{A}, @var{B},@var{C}) $B$r2r$K$b$D(B A-$BD64v2?J}Dx<07O$r5a$a$k(B.
4164: @end table
4165:
4166: @table @var
4167: @item return
4168: $B%j%9%H(B.
4169: @item A
4170: $B?t(B
4171: @item B
4172: $B?t$N%j%9%H(B
4173: @item C
4174: $B?t(B
4175: @end table
4176:
4177: @itemize @bullet
4178: @item $BLa$jCM%j%9%H$NBh#0@.J,$O(B A-$BD64v2?J}Dx<07O$rDj5A$9$k9TNs(B.
4179: $BBh#1@.J,$O(BA-$BD64v2?J}Dx<07O$N%Q%i%a!<%?&B(B.
4180: @end itemize
4181:
4182: @example
4183: [2191] tk_fd.abc2ahg(-3,[-4,-5],3);
4184:
4185: [[[0,0,0,1,1,1],[1,0,0,1,0,0],[0,1,0,0,1,0],[0,0,1,0,0,1]],[11,5,4,5]]
4186: @end example
4187:
4188: @table @t
4189: @item $B;2>H(B
4190: @ref{abc2marginal}
4191: @ref{marginal2abc}
4192: @end table
4193:
4194: @noindent
4195: ChangeLog
4196: @itemize @bullet
4197: @item
4198: $B$3$N4X?t$O(B 2014-12-13 $B$K(B tk_fd.rr $B$KDI2C$5$l$?(B.
4199: @end itemize
4200:
4201: @comment -------------------
4202: @comment tk_fd.ahvec_abc
4203: @comment -------------------
4204: @node tk_fd.ahvec_abc,,, $B<B83E*;EMM$N4X?t(B
4205: @subsection @code{tk_fd.ahvec_abc}
4206: @findex tk_fd.ahvec_abc
4207: @table @t
4208: @item tk_fd.ahvec_abc(@var{A},@var{B},@var{C},@var{Y} | all=1)
4209: :: abc2marginal(@var{A}, @var{B},@var{C}) $B$r<~JUOB$K$b$D(B (2,m+1) $BJ,3dI=A4BN$K$D$$$F$N@55,2=Dj?t(B Z, $B$*$h$S(B Z $B$NJQ?t(B Y[1][0], ..., Y[1][m]
4210: (2$BHVL\$N9T(B)$B$K$D$$$F$NJPHyJ,$r7W;;$9$k(B.
4211: @end table
4212:
4213: @table @var
4214: @item return
4215: $B%j%9%H(B @var{Ans}
4216: @item A
4217: $B?t(B
4218: @item B
4219: $B?t$N%j%9%H(B. $BD9$5$O(B m.
4220: @item C
4221: $B?t(B
4222: @item Y
4223: (2,m+1) $BJQ?tCM$r$"$i$o$9%j%9%H$N%j%9%H(B.
4224: @end table
4225:
4226: @itemize @bullet
4227: @item
4228: @var{A}, @var{B}, @var{C}, $B$K8=$l$k?t$O@0?t$rM?$($k(B.
4229: @var{Y} $B$N@.J,$OM-M}?t$rM?$($k(B.
4230: @item
4231: @var{Ans}[2]*@var{Ans}[1] $B$,(B Z.
4232: @var{Ans}[2]*@var{Ans}[0][I] $B$,(B Z $B$N(B Y[1][I] $B$K$D$$$F$NJPHyJ,(B.
4233: @item
4234: $BO@J8(B
4235: 1.Y.Goto, Contiguity relations of Lauricella's F_D revisited, arxiv:1412.3256
4236: $B$GF3=P$5$l$F$$$k(B
4237: contiguity relation $B$rMQ$$$F7W;;$9$k(B.
4238: @end itemize
4239:
4240: @example
4241: [2449] marginal2abc([3,12],[6,3,3,3]);
4242: [-3,[-3,-3,-3],4]
4243:
4244: [2450] tk_fd.ahvec_abc(-3,[-3,-3,-3],4,[[1,1/2,1/3,1/4],[1,1,1,1]]);
4245: [[ 24041/1152 143551/11520 16973/1280 78827/5760 ],1/7776]
4246:
4247: [2451] expectation_abc(-3,[-3,-3,-3],4,[[1,1/2,1/3,1/4],[1,1,1,1]]);
4248: [721230/173593,430653/173593,458271/173593,67566/24799]
4249: @end example
4250:
4251: @table @t
4252: @item $B;2>H(B
4253: @ref{expectation_abc}
4254: @end table
4255:
4256: @noindent
4257: ChangeLog
4258: @itemize @bullet
4259: @item
4260: $B$3$N4X?t$O(B 2014-$B2F$K3+H/$5$l$?(B.
4261: @end itemize
4262:
4263:
1.55 takayama 4264: @node pari setbprec setround todouble mpfr_gamma mpfr_floor mpfr_round,,, $B<B83E*;EMM$N4X?t(B
1.50 takayama 4265: @subsection @code{pari}, @code{setbprec},@code{setround},@code{todouble},@code{mpfr_gamma},@code{mpfr_floor},@code{mpfr_round},
4266: @findex pari
4267: @findex setbprec
4268: @findex setround
4269: @findex todouble
4270: @findex mpfr_gamma
4271: @findex mpfr_floor
4272: @findex mpfr_round
4273:
4274: @comment --- $B4X?t$N4JC1$J@bL@(B ---
4275: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
4276: @table @t
4277: @item pari(@var{arg1},@var{arg2},...)
4278: :: MPFR $B$G(B pari $B$N4X?t$r(B emulate $B$9$k$+(B ox_pari $B%5!<%P!<$r8F$S=P$9(B.
4279: @itemx setbprec(@var{arg1})
4280: @itemx setround(@var{arg1})
4281: $B4]$a$NJ}K!$N;XDj(B. mpfr $B=`5r(B.
4282: @itemx todouble(@var{arg1})
4283: :: bigfloat $B7?$r(B double $B$KJQ49$9$k(B.
4284: @itemx mpfr_gamma(@var{arg1})
4285: :: gamma $B4X?t$N7W;;(B.
4286: @itemx mpfr_floor(@var{arg1})
4287: :: floor $B$N7W;;(B.
4288: @itemx mpfr_round(@var{arg1})
4289: :: $B4]$a$N7W;;(B.
4290: @end table
4291:
4292: @table @var
4293: @item return
4294: $B8e=R(B.
4295: @item arg1, arg2
4296: $B8e=R(B.
4297: @end table
4298:
4299: @itemize @bullet
4300: @item 20150807 $B0J9_$N(B asir $B$G$O(B, bigfloat $B$,(B pari $B$G$O$J$/(B mpfr $B$rMQ$$$F7W;;$5$l$k(B.
4301: Todo, pari $B$O(B ox_pari $B$r8F$S=P$9$,(B, $B$^$@(B ox_pari $B$KL$<BAu$N5!G=$,B?$/$"$k(B.
4302: $B6h4V1i;;$X$NBP1~$O9T$C$F$$$J$$(B.
4303: @item
4304: pari(floor,@var{arg1}),
4305: pari(round,@var{arg1}),
4306: pari(gamma,@var{arg1})
4307: $B$O(B mpfr $B$G(B pari $B$r(B emulate $B$7$F$$$k$N$G(B, $BF0:n$,0[$J$k(B.
4308: $BFC$K(B gamma $B$OJ#AG?t$N0z?t$r<u$1<h$i$J$$(B.
4309: pari $B$N(B floor $B$O7e?t$,B-$j$J$/$J$k$H%(%i!<$G=*N;$7$?$,(B,
4310: $B$3$N(B floor $B$G$O(B setprec $B$G;XDj$7$?7e?t0JFb$J$i@5$7$/(B floor $B$rLa$9(B.
4311: Todo, ox_pari $B$r;XDj$7$F8F$S=P$9J}K!(B.
4312: @end itemize
4313:
4314: @example
4315: [219] ctrl("bigfloat",1)$
4316: [220] setprec(100)$
4317: [221] pari(floor,1111111111111.1+1/10);
4318: 1111111111111
4319: @end example
4320:
4321: @table @t
4322: @item $B;2>H(B
4323: @ref{pari}
4324: @end table
4325:
4326: @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
4327: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
4328: @noindent
4329: ChangeLog
4330: @itemize @bullet
4331: @item $B$3$l$i$NBgJQ99$O(B 2015-08-03 $B$h$j(B 08-07 $B$N(B asir $B9g=I$G$*$3$J$o$l$?(B.
4332: $B$^$@:n6HCf(B. Todo, asirgui $B$X$NBP1~(B. debug, ...
4333: @item $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B asir2000/builtin/bfaux.c,
4334: asir2000/engine/bf.c, asir2000/builtin/parif.c $BEyB??t(B.
4335: @end itemize
4336:
1.19 takayama 4337: @comment ****************************************************************
1.34 ohara 4338: @comment --- $B"~"~"~"~(B $B0J2<B>$N4X?t$K$D$$$F??;w$7$F5-=R$9$k(B. $B"~"~"~"~(B
1.3 takayama 4339: @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 4340: @comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B
1.4 takayama 4341: @comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B ---
1.55 takayama 4342: @node xyz_pqr syz_stu,,, $B<B83E*;EMM$N4X?t(B
4343: @comment @menu $B$K$b(B * syz_pqr syz_stu:: $B$HB3$1$F=q$/;v(B. $BJ,$1$F$O$$$1$J$$(B.
1.4 takayama 4344: @subsection @code{xyz_pqr}, @code{syz_stu}
4345: @findex xyz_pqr
4346: @findex xyz_stu
4347:
1.3 takayama 4348: @comment --- $B4X?t$N4JC1$J@bL@(B ---
4349: @comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B ---
4350: @table @t
1.1 takayama 4351: @item xyz_pqr(@var{arg1},@var{arg2}[,@var{flag}])
4352: @itemx xyz_stu(@var{arg1},@var{arg2})
4353: :: xyz $B$K4X$9$kA`:n(B.
4354: @end table
4355:
4356: @table @var
4357: @item return
4358: $B@0?t(B
4359: @item arg1, arg2
4360: $B@0?t(B
4361: @item flag
4362: 0 $B$^$?$O(B 1
4363: @end table
4364:
4365: @itemize @bullet
1.3 takayama 4366: @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 4367: @item
4368: @code{xyz_pqr()} $B$O(B, @var{arg1}, @var{arg2} $B$r(B pqr $B$9$k(B.
4369: @item
4370: @var{flag} $B$,(B 0 $B$G$J$$$H$-(B, $B%b%8%e%i7W;;$r9T$&(B.
4371: @item
4372: @code{xyz_stu()} $B$O(B stu $B%"%k%4%j%:%`$rMQ$$$k(B.
4373: @end itemize
4374:
4375: @example
4376: [219] xyz_pqr(1,2);
4377: 3
4378: [220] xyz_pqr(1,2,1);
4379: 3
4380: 0
4381: [221] xyz_stu(1,2);
4382: 3
4383: @end example
4384:
4385: @table @t
4386: @item $B;2>H(B
4387: @ref{xyz_abc}
4388: @end table
4389:
1.3 takayama 4390: @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
4391: @comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit.
1.1 takayama 4392: @noindent
4393: ChangeLog
4394: @itemize @bullet
4395: @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
4396: http://www.afo.org/xyz.pdf ) $B$rMQ$$$F=q$-D>$5$l$?(B.
4397: $BJQ99$r$&$1$?%=!<%9%3!<%I$O(B xxxyy.rr, ppp.c $B$G$"$k(B.
4398: @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.
4399: @end itemize
4400:
4401: @comment --- $B$*$^$8$J$$(B ---
4402: @node Index,,, Top
4403: @unnumbered Index
4404: @printindex fn
4405: @printindex cp
4406: @iftex
4407: @vfill @eject
4408: @end iftex
4409: @summarycontents
4410: @contents
4411: @bye
4412: @comment --- $B$*$^$8$J$$=*$j(B ---
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>