version 1.4, 2004/03/20 01:09:47 |
version 1.21, 2005/07/25 12:23:05 |
|
|
%% $OpenXM: OpenXM/src/asir-doc/exp/exp-ja.texi,v 1.3 2004/03/18 05:45:08 takayama Exp $ |
%% $OpenXM: OpenXM/src/asir-doc/exp/exp-ja.texi,v 1.20 2005/05/04 11:06:55 takayama Exp $ |
\input texinfo |
\input texinfo |
@iftex |
@iftex |
@catcode`@#=6 |
@catcode`@#=6 |
|
|
@title $B<B83E*;EMM$N4X?t(B |
@title $B<B83E*;EMM$N4X?t(B |
@subtitle Risa/Asir $B<B83E*;EMM4X?t@bL@=q(B |
@subtitle Risa/Asir $B<B83E*;EMM4X?t@bL@=q(B |
@subtitle 1.0 $BHG(B |
@subtitle 1.0 $BHG(B |
@subtitle 2004 $BG/(B 3 $B7n(B |
@subtitle 2005 $BG/(B 5 $B7n(B |
|
|
@author by Risa/Asir comitters |
@author by Risa/Asir committers |
@page |
@page |
@vskip 0pt plus 1filll |
@vskip 0pt plus 1filll |
Copyright @copyright{} Risa/Asir committers |
Copyright @copyright{} Risa/Asir committers |
Line 113 ChangeLog $B$N9`L\$O(B www.openxm.org $B$N(B cvswe |
|
Line 113 ChangeLog $B$N9`L\$O(B www.openxm.org $B$N(B cvswe |
|
* get_element_names:: |
* get_element_names:: |
* get_element_at:: |
* get_element_at:: |
* put_element_at:: |
* put_element_at:: |
|
* dp_initial_term:: |
|
* dp_order:: |
|
* dp_weyl_gr_main:: |
|
* list:: |
|
* mapat:: |
|
* set_print_function:: |
|
* small_jacobi:: |
|
* flatten_quote:: |
|
* sprintf:: |
|
* quote_to_funargs:: |
|
* funargs_to_quote:: |
|
* get_function_name:: |
|
* remove_paren:: |
|
* set_secure_mode:: |
|
* set_secure_flag:: |
|
* double_quote:: |
@end menu |
@end menu |
|
|
@comment --- $B"~"~"~"~(B $B4X?t(B quotetotex, quotetotex_env $B$N@bL@(B $B"~"~"~"~(B |
@comment --- $B"~"~"~"~(B $B4X?t(B quotetotex, quotetotex_env $B$N@bL@(B $B"~"~"~"~(B |
Line 170 symbol_table $B$K$h$kJQ49$,:G=i$KE,MQ$5$l$k(B. |
|
Line 186 symbol_table $B$K$h$kJQ49$,:G=i$KE,MQ$5$l$k(B. |
|
alpha, beta, $BEy$O<+F0E*$r%.%j%7%cJ8;z$KJQ49$9$k%F!<%V%k$O(B |
alpha, beta, $BEy$O<+F0E*$r%.%j%7%cJ8;z$KJQ49$9$k%F!<%V%k$O(B |
$BFbB"$:$_(B. |
$BFbB"$:$_(B. |
@item |
@item |
dp_vars_prefix: $BJ,;6I=8=B?9`<0$O(B |
dp_vars_prefix: $BJ,;6I=8=B?9`<0$O(B |
@tex |
@tex |
$x_0, x_1, \cdots$ |
$x_0, x_1, \cdots$ |
@end tex |
@end tex |
$B$NB?9`<0$H$7$F(B latex $B7A<0$KJQ49$5$l$k$,$3$N(B |
$B$NB?9`<0$H$7$F(B latex $B7A<0$KJQ49$5$l$k$,$3$N(B |
x $B$NItJ,$rJQ99$9$k(B. |
x $B$NItJ,$rJQ99$9$k(B. |
|
@item |
|
dp_vars_origin: $B%$%s%G%C%/%9$N;O$^$j$NCM$r;XDj$9$k(B. |
|
$B%G%U%)!<%k%H$O(B 0. |
@item |
@item |
dp_vars_hweyl: $BJ,;6I=8=B?9`<0$r%o%$%kBe?t$N85$H$_$J$7$F(B |
dp_vars_hweyl: $BJ,;6I=8=B?9`<0$r%o%$%kBe?t$N85$H$_$J$7$F(B |
latex $B7A<0$KJQ49$9$k(B. |
latex $B7A<0$KJQ49$9$k(B. |
Line 190 $\partial_0, \partial_1, \cdots$ |
|
Line 209 $\partial_0, \partial_1, \cdots$ |
|
@end tex |
@end tex |
$B$KJQ49$9$k(B. |
$B$KJQ49$9$k(B. |
$B4q?t8D$N>l9g$O:G8e$NJQ?t$,F1;~2=JQ?t$H$7$F(B h $B$GI=<($5$l$k(B. |
$B4q?t8D$N>l9g$O:G8e$NJQ?t$,F1;~2=JQ?t$H$7$F(B h $B$GI=<($5$l$k(B. |
|
@item |
|
dp_dvars_prefix: dp_vars_hweyl $B$,(B 1 $B$N;~$K8eH>ItJ,$N(B prefix $B$r;XDj$9$k(B. |
|
$B%G%U%)!<%k%H$O(B @tex $\partial$ @end tex |
|
@item |
|
dp_dvars_origin: dp_vars_hweyl $B$,(B 1 $B$N;~$N%$%s%G%C%/%9$N;O$^$j$NCM(B. |
@item |
@item |
conv_func: $B%f!<%6Dj5A$NJQ494X?t$r$h$V(B. |
conv_func: $B%f!<%6Dj5A$NJQ494X?t$r$h$V(B. |
@item |
@item |
Line 218 print_tex_form(contrib) |
|
Line 242 print_tex_form(contrib) |
|
@noindent |
@noindent |
ChangeLog |
ChangeLog |
@itemize @bullet |
@itemize @bullet |
@item $B$3$N4X?t$O(B 2004$BG/(B2$B7nKv$+$i(B3$B7n$K$+$1$F(B asir $B$r(B |
@item |
knoppix $BHG(B texmacs $B$KBP1~$5$;$k$?$a$K=q$+$l$?(B. |
$B$3$N4X?t$O(B 2004$BG/(B2$B7nKv$+$i(B3$B7n$K$+$1$F(B asir $B$r(B |
Asir-contrib $B$N(B print_tex_form $B$,$=$N867?$G$"$j(B, $B$=$l$r8zN(2=$7$^$?(B |
knoppix $BHG(B texmacs $B$KBP1~$5$;$k$?$a$K=q$+$l$?(B. |
$B=PNO7A<0$r2~A1$7$?(B. |
Asir-contrib $B$N(B print_tex_form $B$,$=$N867?$G$"$j(B, $B$=$l$r8zN(2=$7$^$?(B |
OpenXM/src/kxx/ox_texmacs.c, OpenXM/src/texmacs $B$b;2>H(B. |
$B=PNO7A<0$r2~A1$7$?(B. |
@item OpenXM/src/asir-contrib/packages/src/noro_print.rr 1.1--1.8, |
OpenXM/src/kxx/ox_texmacs.c, OpenXM/src/texmacs $B$b;2>H(B. |
noro_print_default.rr 1.1--1.3 $B$b;2>H(B. |
@item |
@item $BJQ99$r<u$1$?%U%!%$%k$O(B OpenXM_contrib2/asir2000 $B$N2<$N<!$N%U%!%$%k(B. |
OpenXM/src/asir-contrib/packages/src/noro_print.rr 1.1--1.8, |
|
noro_print_default.rr 1.1--1.3 $B$b;2>H(B. |
|
@item |
|
$BJQ99$r<u$1$?%U%!%$%k$O(B OpenXM_contrib2/asir2000 $B$N2<$N<!$N%U%!%$%k(B. |
builtin/strobj.c 1.14--1.43, |
builtin/strobj.c 1.14--1.43, |
include/ca.h 1.46, io/cexpr.c 1.18, io/pexpr.c 1.32, io.sexpr.c 1.29, |
include/ca.h 1.46, io/cexpr.c 1.18, io/pexpr.c 1.32, io.sexpr.c 1.29, |
parse/arith.c 1.12, parse/parse.h 1.28--1.29, |
parse/arith.c 1.12, parse/parse.h 1.28--1.29, |
parse/quote.c 1.7--1.8, 1.12. |
parse/quote.c 1.7--1.8, 1.12. |
@item |
@item |
knoppix/math $B$O(B $BJ!2,Bg3X$N_@ED$5$s$,Cf?4$H$J$j3+H/$5$l$F$$$k(B. |
knoppix/math $B$O(B $BJ!2,Bg3X$N_@ED$5$s$,Cf?4$H$J$j3+H/$5$l$F$$$k(B. |
|
@item |
|
dp_dvars_prefix, *_origin $B$O(B builtin/strobj.c 1.46 $B$GF3F~$5$l$?(B. |
|
@item |
|
Todo: quotetoterminalform ($BJ,;6I=8=B?9`<0$N8+0W$$=PNO(B). |
@end itemize |
@end itemize |
|
|
|
|
|
|
@noindent |
@noindent |
ChangeLog |
ChangeLog |
@itemize @bullet |
@itemize @bullet |
@item $B$3$N4X?t$O(B 2004-3 $B$K(B print_tex_form $B$r8zN(2=$9$k$?$a$K=q$+$l$?(B. |
@item |
@item OpenXM_contrib2/asir2000 $B$N2<$N0J2<$N%U%!%$%k$r8+$h(B. |
$B$3$N4X?t$O(B 2004-3 $B$K(B print_tex_form $B$r8zN(2=$9$k$?$a$K=q$+$l$?(B. |
|
@item |
|
OpenXM_contrib2/asir2000 $B$N2<$N0J2<$N%U%!%$%k$r8+$h(B. |
io/ox_asir.c 1.52, builtin/strobj.c 1.12--1.13, 1.16, |
io/ox_asir.c 1.52, builtin/strobj.c 1.12--1.13, 1.16, |
engine/str.c 1.5, parse/quote.c 1.9. |
engine/str.c 1.5, parse/quote.c 1.9. |
|
@item |
|
rtostr $B$,(B text buffer $B7?$N%G!<%?$K4X$7$F$*$=$+$C$?(B. $BB.EY$N2~A1$O(B |
|
asir2000/io/pexpr_body.c 1.2, asir2000/parse/lex.c 1.32. |
@end itemize |
@end itemize |
|
|
|
|
Line 420 engine/str.c 1.5, parse/quote.c 1.9. |
|
Line 456 engine/str.c 1.5, parse/quote.c 1.9. |
|
@item b |
@item b |
??? |
??? |
@item sw |
@item sw |
Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. |
Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. $BA4$F$NMWAG$OHsIi(B. |
@end table |
@end table |
|
|
@itemize @bullet |
@itemize @bullet |
Line 431 Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. |
|
Line 467 Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. |
|
dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B. |
dp_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B. |
@comment ~taka/this03/misc-2003/A2/dp |
@comment ~taka/this03/misc-2003/A2/dp |
@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. |
@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. |
@verbatim |
@example |
order : '[' orderElement { ',' orderElement } ']' |
order : '[' orderElement { ',' orderElement } ']' |
orderElemnt : weightVec | builtinOrder |
orderElement : weightVec | builtinOrder |
weightVec : '[' weightElement { ',' weightElement } ']' |
weightVec : '[' weightElement { ',' weightElement } ']' |
builtiniOrder : '[' orderName ',' setOfVariables ']' |
builtiniOrder : '[' orderName ',' setOfVariables ']' |
weightElement : NUMBER | setOfVariables ',' NUMBER |
weightElement : NUMBER | setOfVariables ',' NUMBER |
setOfVariables: V | range(V,V) |
setOfVariables: V | range(V,V) |
ornderName : @grlex | @glex | @lex |
orderName : @@grlex | @@glex | @@lex |
@end verbatim |
@end example |
$B$3$3$G(B @code{V} $B$O(B $BJQ?tL>(B, @code{NUMBER} $B$O@0?t$r$"$o$i$9(B. |
$B$3$3$G(B @code{V} $B$O(B $BJQ?tL>(B, @code{NUMBER} $B$O@0?t$r$"$o$i$9(B. |
$BNc(B1: @code{v=[x,y,z,u,v], order=[[x,10,y,5,z,1],[@@grlex,range(x,v)]]} |
$BNc(B1: @code{v=[x,y,z,u,v], order=[[x,10,y,5,z,1],[@@grlex,range(x,v)]]} |
$B$O(B @code{x},@code{y},@code{z} $B$,$=$l$>$l(B weight 10, 5, 1 $B$r$b$D(B |
$B$O(B @code{x},@code{y},@code{z} $B$,$=$l$>$l(B weight 10, 5, 1 $B$r$b$D(B |
$B=g=x$GHf3S$7$?$"$H(B, @code{[x,y,z,u,v]} $B$K$D$$$F$N(B |
$B=g=x$GHf3S$7$?$"$H(B, @code{[x,y,z,u,v]} $B$K$D$$$F$N(B |
graded reverse lexicographic order $B$r(B tie-breaker $B$H$7$FMQ$$$k$3$H$r0UL#$9$k(B. |
graded reverse lexicographic order $B$r(B tie-breaker $B$H$7$FMQ$$$k$3$H$r0UL#$9$k(B. |
$B;29M=q(B: SST, S, $BEy(B. |
$B;29M=q(B: B.Sturmfels: Gr\"obner Bases and Convex Polytopes (1995). |
|
M.Saito, B.Sturmfels, N.Takayama: |
|
Gr\"obner Deformations of Hypergeometric Differential Equations (2000). |
|
@item |
|
$B=g=xMWAG(B (orderElement) $B$N;XDjJ}K!$O(B |
|
(1) $BJQ?tL>$^$?$O(B range$B$G;XDj$5$l$?JQ?t$N=89g$H=E$_$NCM$N7+$jJV$7(B |
|
(2) $B=E$_$NCM$rJQ?t%j%9%H$N=gHV$KJB$Y$kJ}K!(B |
|
(3) $BJQ?tL>$^$?$O(B range$B$G;XDj$5$l$?JQ?t$N=89g$H=g=xL>$NAH(B |
|
$B$N;0DL$j$N4pACE*J}K!$,$"$k(B. |
|
$B;w$?;XDjJ}K!$,(B Macaulay, Singular, CoCoA, Kan/sm1 $BEy$N4DO@%7%9%F%`$G(B |
|
$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 |
|
$B$5$i$K2~NI$r2C$($?$b$N$G=@Fp@-$,9b$$(B. |
@item |
@item |
order $B$N(B tie-breaker $B$O(B grlex $B$,%G%U%)!<%k%H(B. |
order $B$N(B tie-breaker $B$O(B grlex $B$,%G%U%)!<%k%H(B. |
@item |
@item |
$BJ,;6I=8=B?9`<0$r0z?t$H$7$?$H$-$O7k2L$bJ,;6I=8=B?9`<0$H$7$FLa$k(B. |
$BJ,;6I=8=B?9`<0$r0z?t$H$7$?$H$-$O7k2L$bJ,;6I=8=B?9`<0$H$7$FLa$k(B. |
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. |
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. |
|
@item |
|
$B%*%W%7%g%s$NCM$O(B option_list $B%-!<%o!<%I$rMQ$$$F%j%9%H$GM?$($F$b$h$$(B. |
|
$B2<$NNc$r;2>H(B. |
@end itemize |
@end itemize |
|
|
@example |
@example |
Line 471 graded reverse lexicographic order $B$r(B tie-breake |
|
Line 521 graded reverse lexicographic order $B$r(B tie-breake |
|
[ 1 1 1 1 0 ] |
[ 1 1 1 1 0 ] |
[ R R R R R ] |
[ R R R R R ] |
[(47774098944)*<<0,0,0,0,13>>+ ... ] |
[(47774098944)*<<0,0,0,0,13>>+ ... ] |
|
|
|
[1153] Opt=[["v",[x,y]], ["order",[[x,5,y,1]]]]; |
|
[[v,[x,y]],[order,[[x,5,y,1]]]] |
|
[1154] dp_gr_main([x^2+y^2-1,x*y-1] | option_list=Opt); |
|
[ 5 1 ] |
|
[ R R ] |
|
[-y^4+y^2-1,x+y^3-y] |
@end example |
@end example |
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{xyz_abc} |
|
@end table |
|
|
|
@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 |
@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 |
@noindent |
@noindent |
ChangeLog |
ChangeLog |
Line 504 parse/arith.c 1.11, |
|
Line 556 parse/arith.c 1.11, |
|
parse/glob.c 1.44-1.45, |
parse/glob.c 1.44-1.45, |
parse/lex.c 1.29, |
parse/lex.c 1.29, |
parse/parse.h 1.23--1.26 |
parse/parse.h 1.23--1.26 |
|
@item |
|
Todo: return $B%-!<%o!<%I$GLa$jCM$N%G!<%?$r(B quote $B$N%j%9%H$K$G$-$k$h$&$K(B. |
|
attribute, ring $B9=B$BN(B. |
@end itemize |
@end itemize |
|
|
@comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B |
@comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B |
Line 525 parse/parse.h 1.23--1.26 |
|
Line 580 parse/parse.h 1.23--1.26 |
|
@itemize @bullet |
@itemize @bullet |
@item |
@item |
asir-port.sh $B$O(B knoppix $B@lMQ$G$"$k(B. |
asir-port.sh $B$O(B knoppix $B@lMQ$G$"$k(B. |
$B$3$N%3%^%s%I$O(B asir $B$N%P%$%J%j$*$h$S(B FFL $B$GG[I[$G$-$J$$ItJ,$r(B |
$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 |
ftp.math.kobe-u.ac.jp $B$h$j%@%&%s%m!<%I$7$F(B |
ftp.math.kobe-u.ac.jp $B$h$j%@%&%s%m!<%I$7$F(B |
/home/knoppix/.asir-tmp $B$X%;!<%V$7$F(B, $B<B9T$9$k(B. |
/home/knoppix/.asir-tmp $B$X%;!<%V$7$F(B, $B<B9T$9$k(B. |
.asirrc $B$*$h$S(B .TeXmacs/plugins/ox/progs/init-ox.scm $B$b%@%&%s%m!<%I$9$k(B. |
.asirrc $B$*$h$S(B .TeXmacs/plugins/ox/progs/init-ox.scm $B$b%@%&%s%m!<%I$9$k(B. |
|
|
@item OpenXM_contrib2/asir2000/builtin/compobj.c 1.8. |
@item OpenXM_contrib2/asir2000/builtin/compobj.c 1.8. |
@end itemize |
@end itemize |
|
|
|
@comment --- $B"~"~"~"~(B $B4X?t(B dp_gr_main $B$N@bL@(B $B"~"~"~"~(B |
|
@node dp_weyl_gr_main,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{dp_weyl_gr_main} |
|
@findex dp_weyl_gr_main |
|
|
|
@comment --- $B4X?t$N4JC1$J@bL@(B --- |
|
@comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B --- |
|
@table @t |
|
@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}) |
|
:: dp_weyl_gr_main $B$N?7$7$$%$%s%?%U%'!<%9(B. dp_gr_main $B$HF1$87A<0$G$"$k(B. |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$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) |
|
@item f |
|
$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) |
|
@item vv |
|
$B%j%9%H(B ($BJQ?t$N%j%9%H(B) |
|
@item oo |
|
$B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B) |
|
@item n |
|
0 $B$+(B1 (homogenization $B$r$9$k$+(B). [$B%F%9%H$^$@(B] |
|
@item m |
|
$B=g=x$r(B matrix $B$GI=8=$9$k>l9g(B (cf. dp_ord). [$B%F%9%H$^$@(B] |
|
@item b |
|
??? |
|
@item sw |
|
Sugar strategy $B$rE,MQ$9$k$H$-$N(B weight vector. $BA4$F$NMWAG$OHsIi(B. [$B%F%9%H$^$@(B] |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
@code{dp_weyl_gr_main(@var{f})} $B$O(B, @var{f} $B$N%0%l%V%J4pDl$r7W;;$9$k(B. |
|
$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 |
|
$B7OE}$@$C$F$$$J$+$C$?(B. |
|
dp_weyl_gr_main $B$N?7$7$$%$%s%?%U%'!<%9$G$O=g=x$r$"$kJ8K!$K=>$$;XDj$9$k(B. |
|
$B;XDjJ}K!$K$D$$$F$O(B dp_gr_main $B$N%^%K%e%"%k$r;2>H(B. |
|
@item |
|
$BJ,;6I=8=B?9`<0$N3F%b%N%_%"%k$ND9$5$,6v?t$N$H$-$O%o%$%kBe?t(B |
|
K[x_1, ..., x_n, d_1, ..., d_n] |
|
$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 |
|
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. |
|
$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. |
|
@item |
|
$BJ,;6I=8=B?9`<0$N3F%b%N%_%"%k$ND9$5$,4q?t$N$H$-$OF1<!2=%o%$%kBe?t(B |
|
K[x_1, ..., x_n, d_1, ..., d_n, h] |
|
$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 |
|
d_i x_i = x_i d_i + h^2 |
|
$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. |
|
$B>\$7$/$O(B dp_gr_main $B$G;2>H$7$?(B Saito, Sturmfels, Takayama $B$N652J=q$r$_$h(B. |
|
@end itemize |
|
|
|
@example |
|
[1220] F=sm1.gkz([ [[1,1,1,1],[0,1,3,4]], [0,0]]); /* Command in asir-contrib*/ |
|
[[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]] |
|
[1221] V=[x1,x2,x3,x4,dx1,dx2,dx3,dx4]$ |
|
[1222] dp_weyl_gr_main(F[0] | v=V, order=[[dx1,1,dx2,1,dx3,1,dx4,1]]); |
|
... |
|
[1238] FF=map(dp_ptod,F[0],V); |
|
[(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] |
|
|
|
[1244] FF=map(dp_ptod,F[0],V); |
|
[(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>>] |
|
|
|
dp_weyl_gr_main(FF | v=V, order=[[0,0,0,0,1,1,1,1]]); |
|
|
|
[1246] dp_weyl_gr_main(FF | v=V, order=[[dx1,1,dx2,1,dx3,1,dx4,1]]); |
|
[ 0 0 0 0 1 1 1 1 ] |
|
[ R R R R R R R R ] |
|
... |
|
|
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{dp_gr_main} |
|
@end table |
|
|
|
@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 |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item dp_gr_main $B$N%$%s%?%U%'!<%9$,(B dp_weyl_gr_main $B$X$bF3F~$5$l$?(B. |
|
@item |
|
OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B. |
|
builtin/dp-supp.c 1.32--1.33 |
|
builtin/dp.c 1.49--1.50 |
|
@end itemize |
|
|
|
@comment --- $B"~"~"~"~(B $B4X?t(B dp_initial_term $B$N@bL@(B $B"~"~"~"~(B |
|
@node dp_initial_term,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{dp_initial_term} |
|
@findex dp_initial_term |
|
|
|
@comment --- $B4X?t$N4JC1$J@bL@(B --- |
|
@table @t |
|
@item dp_initial_term(@var{f} | v=@var{vv}, order=@var{oo}) |
|
:: dp_initial_term $B$OM?$($i$l$?(B weight $B$KBP$9$k@hF,9`$NOB$rLa$9(B. |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$BJ,;6I=8=B?9`<0$^$?$OJ,;6I=8=B?9`<0$N%j%9%H(B. |
|
@item f |
|
$BJ,;6I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B. |
|
@item vv |
|
$B%j%9%H(B ($BJQ?t$N%j%9%H(B) |
|
@item oo |
|
$B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B) |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
dp_initial_term $B$OM?$($i$l$?(B weight w $B$KBP$9$k@hF,9`$NOB$rLa$9(B. |
|
$B$3$l$OB?$/$N652J=q$G(B @tex ${\rm in}_w(f)$ @end tex |
|
$B$H=q$+$l$F$$$k(B. |
|
@item |
|
$B=g=x$rI=$9%j%9%H$O(B dp_gr_main $B$GDj5A$7$?J8K!$K=>$&(B. |
|
$B$3$N%j%9%H$N@hF,$,(B weight vector $B$GL5$$>l9g$O%(%i!<$H$J$k(B. |
|
$B$?$H$($P(B order=[[@@lex,...]] $B$O%(%i!<$H$J$k(B. |
|
@item |
|
$B7k2L$OM?$($i$l$?=g=x$K4X$7$F%=!<%H$5$l$F$k$o$1$G$O$J$$(B. |
|
@end itemize |
|
|
|
@example |
|
[1220] F=<<2,0,0>>+<<1,1,0>>+<<0,0,1>>; |
|
(1)*<<2,0,0>>+(1)*<<1,1,0>>+(1)*<<0,0,1>> |
|
[1220] dp_initial_term(F | order=[[1,1,1]]); |
|
[ 1 1 1 ] |
|
[ R R R ] |
|
(1)*<<2,0,0>>+(1)*<<1,1,0>> |
|
[1221] dp_initial_term(F | v=[x,y,z], order=[[x,1]]); |
|
[ 1 0 0 ] |
|
[ R R R ] |
|
(1)*<<2,0,0>> |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{dp_gr_main}, @ref{dp_weyl_gr_main}, @ref{dp_order}, @ref{dp_hm} |
|
@end table |
|
|
|
@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 |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item |
|
OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B. |
|
builtin/dp-supp.c 1.32 |
|
builtin/dp.c 1.49 |
|
@end itemize |
|
|
|
@comment --- $B"~"~"~"~(B $B4X?t(B dp_order $B$N@bL@(B $B"~"~"~"~(B |
|
@node dp_order,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{dp_order} |
|
@findex dp_order |
|
|
|
@comment --- $B4X?t$N4JC1$J@bL@(B --- |
|
@table @t |
|
@item dp_order(@var{f} | v=@var{vv}, order=@var{oo}) |
|
:: dp_order $B$OM?$($i$l$?(B weight $B$KBP$9$k<!?t$N:GBgCM$rLa$9(B. |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$B?t$+?t$N%j%9%H(B |
|
@item f |
|
$BJ,;6I=8=B?9`<0$+J,;6I=8=B?9`<0$N%j%9%H(B. |
|
@item vv |
|
$B%j%9%H(B ($BJQ?t$N%j%9%H(B) |
|
@item oo |
|
$B%j%9%H(B ($B=g=x$r$"$i$o$9%j%9%H(B) |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
$B=g=x$rI=$9%j%9%H$O(B dp_gr_main $B$GDj5A$7$?J8K!$K=>$&(B. |
|
$B$3$N%j%9%H$N@hF,$,(B weight vector $B$GL5$$>l9g$O%(%i!<$H$J$k(B. |
|
$B$?$H$($P(B order=[[@@lex,...]] $B$O%(%i!<$H$J$k(B. |
|
@item |
|
dp_order $B$OM?$($i$l$?(B weight w $B$KBP$9$k<!?t$N:GBgCM$rLa$9(B. |
|
$B$3$l$r(B @tex ${\rm ord}_w(f)$ @end tex |
|
$B$H=q$/O@J8$d652J=q$b$"$k(B. |
|
@item |
|
$B0z?t$,%j%9%H$N>l9g3FMWAG$N<!?t$,7W;;$5$l$k(B. |
|
@end itemize |
|
|
|
@example |
|
[1220] F=<<2,0,0>>+<<1,1,0>>+<<0,0,1>>; |
|
(1)*<<2,0,0>>+(1)*<<1,1,0>>+(1)*<<0,0,1>> |
|
[1222] dp_order(F | order=[[1,1,1]]); |
|
[ 1 1 1 ] |
|
[ R R R ] |
|
2 |
|
[1223] dp_order(F | v=[x,y,z], order=[[x,1]]); |
|
[ 1 0 0 ] |
|
[ R R R ] |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{dp_gr_main}, @ref{dp_weyl_gr_main}, @ref{dp_initial_term}, @ref{dp_hm} |
|
@end table |
|
|
|
@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 |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item |
|
OpenXM_contrib2/asir2000 $B$N2<$N<!$N3F%U%!%$%k$,=$@5$r$&$1$?(B. |
|
builtin/dp-supp.c 1.32 |
|
builtin/dp.c 1.49 |
|
@end itemize |
|
|
|
|
|
@comment mapat |
|
@node mapat,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{mapat} |
|
@findex mapat |
|
|
|
@table @t |
|
@item mapat(@var{fname},@var{pos}[,@var{arg0}, @var{arg1}, ...]) |
|
:: @var{pos} $B$KBP$9$k(B map $B4X?t(B |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$B%*%V%8%'%/%H(B |
|
@item pos |
|
$B@0?t(B |
|
@item arg0, arg1, arg2, ... |
|
$B%*%V%8%'%/%H(B |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
@code{map} $B4X?t$O(B 0 $BHVL\$N0z?t$KBP$7$F$7$+F0:n$7$J$$$,(B, @code{mapat} |
|
$B4X?t$O;XDj$7$?HV9f$N0z?t$KBP$7$F(B @code{map} $B4X?t$r<B9T$9$k(B. |
|
@item |
|
@code{mapat(fname,0,A0,A1,...)} $B$O(B |
|
@code{map(fname,A0,A1,...)} $B$KEy2A$G$"$k(B. |
|
@item |
|
$B<!$NI{:nMQ$,$"$k(B. $B$^$@=q$$$F$J$$(B. |
|
@end itemize |
|
|
|
@example |
|
[219] mapat(deg,1,x^2+y^3+x+y,[x,y]); |
|
[2,3] |
|
[220] mapat(subst,1,x+y+z,[x,y,z],2); |
|
[y+z+2,x+z+2,x+y+2] |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{map} |
|
@end table |
|
|
|
@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 |
|
@comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit. |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item $B$3$N4X?t$O(B 2004-6-22 $B$K%3%_%C%H$5$l$?(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/pf.c, subst.c $B$G$"$k(B. |
|
@end itemize |
|
|
|
@comment list |
|
@node list,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{list} |
|
@findex list |
|
|
|
@table @t |
|
@item list([@var{arg0}, @var{arg1}, ...]) |
|
:: list $B$r@8@.$9$k(B. |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$B%j%9%H(B |
|
@item arg0, arg1, arg2, ... |
|
$B%*%V%8%'%/%H(B |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
@var{arg0}, @var{arg1}, ... $B$rMWAG$H$9$k%j%9%H$r@8@.$9$k(B. |
|
@end itemize |
|
|
|
@example |
|
[219] list(1,2,3); |
|
[1,2,3] |
|
[220] list(1,2,[3,4]); |
|
[1,2,[3,4]] |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{cons} |
|
@end table |
|
|
|
@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 |
|
@comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit. |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item $B$3$N4X?t$O(B 2004-6-22 $B$K%3%_%C%H$5$l$?(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/list.c $B$G$"$k(B. |
|
@end itemize |
|
|
|
|
|
@node set_print_function,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{set_print_function} |
|
@findex set_print_function |
|
|
|
@comment --- $B4X?t$N4JC1$J@bL@(B --- |
|
@table @t |
|
@item set_print_function([@var{fname}]) |
|
:: $B2hLLI=<(MQ$N4X?t$rEPO?(B |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$B@0?t(B |
|
@item fname |
|
$BJ8;zNs(B |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
@code{set_print_function} $B$O(B @code{fname(F)} $B$rDL>o$N2hLLI=<(4X?t$NBe$o$j$K$h$V(B. |
|
@code $B0z?t$,$J$$>l9g$O2hLLI=<(4X?t$r%G%U%)!<%k%H$XLa$9(B. |
|
@code Asir-contrib $B$O$3$N4X?t$rMQ$$$F=PNO4X?t$r(B Asir-contrib $BMQ$KJQ99$7$F$$$k(B. |
|
@end itemize |
|
|
|
@example |
|
[219] def my_output(F) { |
|
print("Out: ",0); print(rtostr(F)); |
|
} |
|
[220] set_print_function("my_output"); |
|
Out: 0 |
|
[221] 1+2; |
|
Out: 3 |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{rtostr} |
|
@end table |
|
|
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item $B$3$N4X?t$O(B 2001-9-4 $B$K(B asir-contrib $B$N$?$a$KF3F~$5$l$?(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/print.c 1.11 $B$G$"$k(B. |
|
@end itemize |
|
|
|
|
|
@node small_jacobi,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{small_jacobi} |
|
@findex small_jacobi |
|
|
|
@comment --- $B4X?t$N4JC1$J@bL@(B --- |
|
@table @t |
|
@item small_jacobi(@var{a},@var{m}) |
|
:: Jacobi $B5-9f$N7W;;(B |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$B@0?t(B |
|
@item arg1, arg2 |
|
$B@0?t(B |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
@var{m} $B$,AG?t$N$H$-$O(B Legendre $B5-9f$H$h$P$l(B, |
|
x^2 = @var{a} mod @var{m} $B$K2r$,$"$k$H$-(B 1, $B2r$,$J$$$H$-(B -1 $B$r$b$I$9(B. |
|
@item |
|
Jacobi $B5-9f$O(B Legendre $B5-9f$N@Q$GDj5A$5$l$k(B ($B=iEy@0?tO@$NK\;2>H(B). |
|
@item |
|
$B$3$N4X?t$O(B machine int $B$NHO0O$G(B jacobi $B5-9f$r7W;;$9$k(B. |
|
@end itemize |
|
|
|
@example |
|
[1286] small_jacobi(2,3); |
|
-1 |
|
[1287] small_jacobi(2,7); |
|
1 |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
http://members.jcom.home.ne.jp/yokolabo/asirlib/ |
|
$B$b8+$F$M(B. |
|
@end table |
|
|
|
@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 |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item $B$3$N4X?t$NM3Mh$OITL@(B. |
|
@end itemize |
|
|
|
|
|
@node flatten_quote,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{flatten_quote} |
|
@findex flatten_quote |
|
|
|
@comment --- $B4X?t$N4JC1$J@bL@(B --- |
|
@table @t |
|
@item flatten_quote(@var{q},@var{op}) |
|
:: quote $B$N3g8L$r$H$j$5$k(B. |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
Quote |
|
@item q |
|
Quote |
|
@item op |
|
$B1i;;;R$rI=$9J8;zNs(B. |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
Quote $B7?$N%G!<%?$OLZ9=B$$r$7$F$$$k(B |
|
( quotetolist $B;2>H(B ). |
|
@code{quote_flatten()} $B$O(B, @var{q} $B$NCf$K$"$i$l$k1i;;;R(B @var{op} |
|
$B$N;R6!%N!<%I$rJ?Ey$K$9$k(B. |
|
$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. |
|
$B$?$H$($P(B (1+2)+(3+4) $B$H$$$&I=8=$r(B 1+2+3+4 $B$KJQ49$9$k(B. |
|
@item |
|
$B8=:_$N<BAu$G$O(B n-ary $B$N1i;;;R$ODj5A$5$l$F$$$J$$$N$G(B, |
|
1+2+3 $B$O<B$O(B 1+(2+3) $B$HI=8=$5$l$F$$$k(B. |
|
$B$D$^$j(B + $B1i;;;R$O1&7k9gE*$G$"$k(B. |
|
@item R=0; for (I=0; I<N; I++) R = R+ P[I]; $B$J$kB-$7;;$r7+$jJV$9$H(B, |
|
+ $B$O:87k9gE*$K$J$k(B. $B1&7k9gE*$KJQ49$9$k$K$O(B flatten_quote $B$r8F$V(B. |
|
@item $BL>A0$O(B quote_flatten $B$G$J$/(B flatten_quote $B$G$"$k(B. |
|
@end itemize |
|
|
|
@example |
|
[1288] flatten_quote(quote((1+2)+(3+4*(x+3))),"+"); |
|
quote(1+2+3+4*(x+3)) |
|
[1289] flatten_quote(quote( (x*y)*(p*3)-(x*y)*z),"*"); |
|
quote(x*y*p*3-x*y*z) |
|
[1290] quotetolist(quote(1+2+3)); |
|
[b_op,+,[b_op,+,[internal,1],[internal,2]],[internal,3]] |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{quotetolist}, @ref{print_tex_form}(contrib) |
|
@end table |
|
|
|
@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 |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item |
|
$B$3$N4X?t$O(B 2004-7-7 $B$+$i(B 2004-7-8 $B$K$+$1$F(B |
|
quote $B$K4X$9$kA`:n$r8&5f$9$k$?$a$K<B83E*$K=q$+$l$?(B. |
|
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 |
|
$B1~MQ(B. |
|
@item |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B |
|
builtin/strobj.c 1.47, |
|
parse/eval.c 1.35, |
|
parse/parse.h 1.31, |
|
parse/quote.c 1.14--1.16. |
|
@end itemize |
|
|
|
@node assoc,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{assoc} |
|
@findex assoc |
|
|
|
@comment --- $B4X?t$N4JC1$J@bL@(B --- |
|
@table @t |
|
@item assoc(@var{a},@var{b}) |
|
:: $BO"A[%j%9%H$r$D$/$k(B |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
List |
|
@item a |
|
List |
|
@item b |
|
List |
|
@end table |
|
|
|
@itemize @bullet |
|
@item $B%j%9%H(B @var{a}, @var{b} $B$h$j(B |
|
[[@var{a}[0],@var{b}[0]], [@var{a}[1],@var{b}[1]], ...] |
|
$B$J$k?7$7$$%j%9%H$r@8@.$9$k(B. |
|
@end itemize |
|
|
|
$B2<$NNc$G$O(B @code{A} $B$KF0J*$NL>A0$,(B, |
|
@code{B} $B$KB-$NK\?t$,F~$C$F$$$k(B. |
|
@code{assoc(A,B)} $B$GF0J*$HB-$NK\?t$r%Z%"$K$7$?%j%9%H$r@8@.$9$k(B. |
|
|
|
@example |
|
[1192] A=["dog","cat","snake"]; |
|
[dog,cat,snake] |
|
[1193] B=[4,4,0]; |
|
[4,4,0] |
|
[1194] assoc(A,B); |
|
[[dog,4],[cat,4],[snake,0]] |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{cons}, @ref{append} |
|
@end table |
|
|
|
@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 |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item |
|
$B$3$N4X?t$O(B 2004-6-28 $B$K=q$+$l$?(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B |
|
builtin/list.c 1.9 |
|
parse/eval.c 1.35, |
|
parse/parse.h 1.31, |
|
parse/quote.c 1.14--1.16. |
|
@end itemize |
|
|
|
|
|
@node sprintf,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{sprintf} |
|
@findex sprintf |
|
|
|
@table @t |
|
@item sprintf(@var{format}[,@var{args}]) |
|
:: C $B$K;w$?%W%j%s%H4X?t(B |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$BJ8;zNs(B |
|
@item format |
|
$BJ8;zNs(B |
|
@item args |
|
$B%*%V%8%'%/%H(B |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
$B%U%)!<%^%C%HJ8;zNs(B @var{format } $B$K$7$?$,$$(B @var{args} $B$rJ8;zNs$KJQ49$9$k(B. |
|
@item |
|
$B%U%)!<%^%C%HJ8;zNs$NCf$K(B @code{%a} (any) $B$,MxMQ2DG=(B. |
|
@var{args} $B$N8D?t$O%U%)!<%^%C%HJ8;zNs$NCf$N(B @code{%a} $B$N8D?t$KEy$7$/$9$k$3$H(B. |
|
@end itemize |
|
|
|
@example |
|
[0] sprintf("%a: rat = %a",10,x^2-1); |
|
10: rat = x^2-1 |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{rtostr} |
|
@end table |
|
|
|
@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 |
|
@comment --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit. |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item |
|
$B$3$N4X?t$O(B 2004-7-13 $B$K%3%_%C%H$5$l$?(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/strobj (1.50) $B$G$"$k(B. |
|
@item |
|
@code{%a} $B$O(B Maple $B$N(B sprintf $B$N??;w$+(B. |
|
@end itemize |
|
|
|
|
|
@node quote_to_funargs,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{quote_to_funargs}, @code{funargs_to_quote}, @code{remove_paren} |
|
@findex quote_to_funargs |
|
@findex funargs_to_quote |
|
@findex remove_paren |
|
|
|
@table @t |
|
@item quote_to_funargs(@var{q}) |
|
:: quote $B$r(B funarg $B7A<0(B($B%j%9%H(B) $B$X(B. |
|
@item funargs_to_quote(@var{f}) |
|
:: funarg $B7A<0$r(B quote $B$X(B. |
|
@item get_function_name(@var{f}) |
|
:: funarg $B7A<0$N(B op $B$rJ8;zNs$X(B. |
|
@item remove_paren(@var{q}) |
|
:: $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) |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
quote(funargs_to_quote, remove_paren) $B$+(B $B%j%9%H(B(quote_to_funargs) |
|
@item q |
|
quote |
|
@item f |
|
$B%j%9%H(B |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
@code{quote_to_funargs} $B$O(B quote $B7?$N%G!<%?(B ($BFbItE*$K$O(B FNODE) $B$r(B |
|
quote $B$X$NI|852DG=$J7A$G%j%9%H$XJQ49$9$k(B. |
|
@code{quotetolist} $B$O(B quote $B$r%j%9%H$XJQ49$9$k$,(B, $B0lIt$N>pJs$r<N$F$k$?$a(B |
|
$B$b$H$N(B quote $B$NI|85$O$G$-$J$$(B. |
|
@item |
|
@code{quote_to_funargs} $B$NLa$jCM$O(B [fid, op, arg1, arg2, ...] |
|
$B$J$k7A<0$r$7$F$$$k(B. |
|
$B$3$3$G(B op $B$O(B node $B$NL>A0$G$"$j(B, |
|
$B4X?t(B @code{get_function_name} $B$rMQ$$$F?M4V$,FI$a$k7A<0(B |
|
$B$G<h$j$@$;$k(B. |
|
$B$?$H$($P(B @code{get_function_name(quote_to_funargs(quote(1+2))[1])} |
|
$B$O(B "+" $B$rLa$9(B. |
|
@item |
|
$BL>A0(B@code{get_function_name} $B$O$=$N$&$AJQ99$5$l$k$@$m$&(B. |
|
@item |
|
$B2<$NNc$G(B |
|
quote_to_funargs(FA[2]); |
|
[34,[b_op,+,[internal,x],[internal,1]]] |
|
$B$H$J$k(B. |
|
34 $B$O(B @code{I_PAREN} $B$r0UL#$9$k(B. |
|
$B?t$H0UL#$NBP1~I=$O(B @code{OpenXM/src/asir-contrib/packages/src/noro_simplify.rr} |
|
$B$^$?$O(B @code{OpenXM_contrib2/asir2000/parse/parse.h} $B$r8+$h(B. |
|
$B0J2<$N(B fid $B$,(B 0, 1, 2, ... $B$KBP1~$E$1$i$l$F$$$k(B. |
|
I_BOP, I_COP, I_AND, I_OR, I_NOT, I_CE, |
|
I_PRESELF, I_POSTSELF, |
|
I_FUNC, I_FUNC_OPT, I_IFUNC, I_MAP, I_RECMAP, I_PFDERIV, |
|
I_ANS, I_PVAR, I_ASSPVAR, |
|
I_FORMULA, I_LIST, I_STR, I_NEWCOMP, I_CAR, I_CDR, I_CAST, |
|
I_INDEX, I_EV, I_TIMER, I_GF2NGEN, I_GFPNGEN, I_GFSNGEN, |
|
I_LOP, I_OPT, I_GETOPT, I_POINT, I_PAREN, I_MINUS, |
|
I_NARYOP |
|
@end itemize |
|
|
|
$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. |
|
@example |
|
[0] ctrl("print_quote",1) $ |
|
|
|
[1] Q=quote((x+1)+(x+2)); |
|
[b_op,+,[u_op,(),[b_op,+,[internal,x],[internal,1]]], |
|
[u_op,(),[b_op,+,[internal,x],[internal,2]]]] |
|
|
|
[2] FA=quote_to_funargs(Q); |
|
[0,<...quoted...>, |
|
[u_op,(),[b_op,+,[internal,x],[internal,1]]], |
|
[u_op,(),[b_op,+,[internal,x],[internal,2]]]] |
|
|
|
[3] FA2=quote_to_funargs(FA[2])[1]; |
|
[b_op,+,[internal,x],[internal,1]] |
|
|
|
[4] FA3=quote_to_funargs(FA[3])[1]; |
|
[b_op,+,[internal,x],[internal,2]] |
|
|
|
[5] funargs_to_quote([FA[0],FA[1],FA2,FA3]); |
|
[b_op,+,[b_op,+,[internal,x],[internal,1]], |
|
[b_op,+,[internal,x],[internal,2]]] |
|
@end example |
|
|
|
$B<!$NNc$O(B OpenXM/asir-contrib $BHG$N(B asir $B$G<B9T(B. |
|
@example |
|
[1287] load("noro_simplify.rr"); |
|
1 |
|
[1293] noro_simplify.remove_paren(quote( f(1-(x)))); |
|
quote(f(1-x)) |
|
@end example |
|
|
|
funargs_to_quote $B$rMQ$$$F4{B8$N(B quote $B$N;R6!$rCV$-49$($F(B |
|
$B?7$7$$(B quote $B$r$D$/$j=P$;$k(B. |
|
@example |
|
[1184] R=quote_to_funargs(quote(a+(b+c))); |
|
[0,<...quoted...>,<...quoted...>,<...quoted...>] |
|
[1185] T=quote_to_funargs(quote(1+2)); |
|
[0,<...quoted...>,<...quoted...>,<...quoted...>] |
|
[1186] funargs_to_quote([0,R[1],R[2],T[2]]); |
|
quote(a+1) |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{quotetolist} |
|
@end table |
|
|
|
|
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item |
|
$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 |
|
$B$N<B83E*4X?t$G$"$k(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$OB?4t$K$o$?$k$N$G$^$@=q$+$J$$(B. |
|
@item |
|
$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. |
|
@item |
|
2004-6-26 $B$N7W;;Be?t%;%_%J!<$K$*$$$F(B, $BCf@n$5$s$,(B simplifier $B$K$D$$$F$$$m$$$mLdBjDs5/(B |
|
$B$r$7$?(B ($B7W;;Be?t%;%_%J!<%S%G%*;2>H(B). |
|
@item parse/quote.c $B$N(B {\tt strcut fid_spec fid_spec_tab[] } |
|
$B$NItJ,$K=q$$$F$"$k7A<0$K(B @code{funargs_to_quote} $B$OJQ49$9$k(B. |
|
@end itemize |
|
|
|
@node set_secure_flag,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{set_secure_flag}, @code{set_secure_mode} |
|
@findex set_secure_flag |
|
@findex set_secure_mode |
|
|
|
@comment --- $B4X?t$N4JC1$J@bL@(B --- |
|
@comment --- @itemx $B$OJ#?t$KBP$7$F@bL@$r0l$D$D$1$k>l9g$K;H$&(B --- |
|
@table @t |
|
@item set_secure_flag(@var{fname},@var{m}) |
|
@itemx set_secure_mode(@var{m}) |
|
:: $B4X?t$N<B9T8"8B$r@_Dj$9$k(B. (web $B%5!<%S%9MQ(B) |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$B@0?t(B |
|
@item fname |
|
$BJ8;zNs(B |
|
@item m |
|
$B@0?t(B |
|
@end table |
|
|
|
@itemize @bullet |
|
@item @code{set_secure_flag}, @code{set_secure_mode} $B$O(B |
|
asir $B$r(B web $B%5!<%PEy$G8x3+$9$k$?$a$K2C$($i$l$?4X?t(B. |
|
@code{set_secure_flag} $B$G8x3+$9$k4X?t$r;XDj$9$k(B. |
|
@code{secure_mode} $B$,(B 1 $B$N>l9g$O(B @code{set_secure_flag} $B$G;XDj$5$l$?(B |
|
$B4X?t$7$+<B9T$G$-$J$$(B. |
|
$B4X?t$N<B9TESCf$G$O(B @code{secure_mode} $B$,(B 0 $B$H$J$C$F$$$k$N$G(B, |
|
$BG$0U$N4X?t$r<B9T$G$-$k(B. |
|
$B$^$?%(%i!<$N;~Ey$O(B, @code{secure_mode} $B$O(B 1 $B$K<+F0E*$KI|5"$9$k(B. |
|
$B$?$@$7(B @code{def} $B$O<B9T$G$-$J$$(B. |
|
$B8x3+$9$k4X?t$G$O(B, $B$=$N=hM}Cf$OG$0U$N4X?t$,<B9T$G$-$k$N$G(B, |
|
security $B$K==J,Cm0U$7$?<BAu$r$9$kI,MW$,$"$k(B. |
|
@item |
|
@code{set_secure_flag} $B$O(B, @var{fname} $B$N(B secure flag $B$r(B @var{m} |
|
$B$K$9$k(B. |
|
$B8x3+$9$kL?Na$O(B 1 $B$K@_Dj$9$k(B. |
|
@item |
|
@var{set_secure_mode(1)} $B$G(B @code{secure_mode} $B$,(B 1 $B$H$J$j(B, |
|
$B8x3+$5$l$?4X?t$7$+<B9T$G$-$J$/$J$k(B. |
|
quit $BEy$b<B9T$G$-$J$$$N$GCm0U(B. |
|
@item @code{ timer } $B$N0z?t$H$7$F(B secure_flag $B$r@_Dj$7$F$$$J$$4X?t$r(B |
|
$B;XDj$7$F<B9T$7$F$b%(%i!<$,I=<($5$l$J$$(B. |
|
$B$3$N$H$-$O(B, @code{ ctrl("error_in_timer",1) } $B$r<B9T$7$F$*$/(B. |
|
@end itemize |
|
|
|
@example |
|
[1194] set_secure_flag("print_input_form_",1); |
|
1 |
|
[1195] set_secure_flag("fctr",1); |
|
1 |
|
[220] set_secure_mode(1); |
|
1 |
|
[1197] fctr((x-1)^3); |
|
[[1,1],[x-1,3]] |
|
[1198] fctr(shell("ls")); |
|
evalf : shell not permitted |
|
return to toplevel |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{timer} |
|
@end table |
|
|
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item @code{set_secure_flag}, @code{set_secure_mode} $B$O(B asir $B$r(B |
|
web $B%5!<%PEy$G8x3+$9$k$?$a$K2C$($i$l$?4X?t(B. |
|
sm1 $B$NF1MM$J4X?t(B RestrictedMode $B$G:NMQ$5$l$?J}K!$rMQ$$$F$$$k(B. |
|
$B$D$^$j(B, @code{set_secure_flag} $B$G8x3+$9$k4X?t$r;XDj$9$k(B. |
|
@code{secure_mode} $B$,(B 1 $B$N>l9g$O(B @code{set_secure_flag} $B$G;XDj$5$l$?(B |
|
$B4X?t$7$+<B9T$G$-$J$$(B. |
|
v$B4X?t$N<B9TESCf$G$O(B @code{secure_mode} $B$,(B 0 $B$H$J$C$F$$$k$N$G(B, |
|
$BG$0U$N4X?t$r<B9T$G$-$k(B. |
|
@item $B$3$N4X?t$O(B 2004-10-27 $B$+$i(B 2004-11-22 $B$K$+$1$F3+H/$5$l$?(B. |
|
@item cgiasir.sm1, cgi-asir.sh $B$HAH$_9g$o$;$F(B cgi $B%5!<%S%9$rDs6!$9$k$?$a$K(B |
|
$BMxMQ$9$k(B. |
|
cgi-asir.sh $B$G$O(B |
|
@code{CGI_ASIR_ALLOW} $B4D6-JQ?t$G8x3+$9$k%3%^%s%I$r;XDj$9$k(B. |
|
@item |
|
1.24--1.25 OpenXM_contrib2/asir2000/builtin/miscf.c |
|
@item |
|
1.36--1.38 OpenXM_contrib2/asir2000/parse/eval.c |
|
@item |
|
1.6--1.7 OpenXM_contrib2/asir2000/parse/function.c |
|
@item |
|
1.33 OpenXM_contrib2/asir2000/parse/parse.h |
|
@end itemize |
|
|
|
@node double_quote,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{double_quote} |
|
@findex double_quote |
|
|
|
|
|
@comment --- $B@bL@(B --- |
|
@table @t |
|
@item double_quote, double quote $B$N<h07$d(B static $BJQ?t$N=i4|2=$NLdBjE@(B. |
|
@end table |
|
|
|
|
|
@itemize @bullet |
|
@item double quote $B$N<h07(B. $B2<$N$h$&$J%W%m%0%i%`$G(B parse error $B$,@8$8$k(B. |
|
$BLnO$[)$/(B: "TeXmacs $BMQ$K(B, $BE:;z$N<+F0JQ49$J$I$r$d$C$F$$$k$H$-$K(B, ox_asir $B$,<u$1<h$C$?(B |
|
$BJ8;zNs$N%P%C%/%9%i%C%7%e$,(B1 $B8D$N>l9g$K(B 2 $B8D$KA}$d$9$H$$$&4X?t$,DI2C(B |
|
$B$5$l$F$$$^$9(B. $B;n$7$K$3$l$r30$9$H(B OK $B$N$h$&$G$9(B. $B$G$b$-$C$HB>$G$*$+$7$J(B |
|
$B$3$H$,5/$-$k$G$7$g$&$M(B. |
|
$B;W$$=P$7$F$-$^$7$?(B. TeX $B$rAw$k$H$-$K(B, $B%P%C%/%9%i%C%7%e$@$i$1$K(B |
|
$B$J$k$N$rHr$1$k$?$a$@$C$?$h$&$J(B... " |
|
@item static $BJQ?t$N<h07(B. |
|
$B2<$NNc$r;2>H$N$3$H(B. |
|
@end itemize |
|
|
|
@example |
|
if (1) @{ |
|
S="\"hoge\""; |
|
print(S); |
|
@}else@{ @}; |
|
$B$r(B $B%U%!%$%k(B t.rr $B$K3JG<(B. |
|
|
|
[1207] S=util_read_file_as_a_string("/home/nobuki/t.rr"); |
|
if (1) @{ |
|
S="\"hoge\""; |
|
print(S); |
|
@}else@{ @}; |
|
|
|
[1208] eval_str(S); |
|
exprparse : parse error |
|
0 |
|
|
|
t.rr $B$r(B |
|
if (1) @{ |
|
S=" "+asciitostr([34])+"hoge"+asciitostr([34])+" "; |
|
print(S); |
|
@}else@{ @}; |
|
$B$HJQ99(B. S $B$KFI$_9~$`(B. |
|
[1212] eval_str(S); |
|
exprparse : parse error |
|
0 |
|
S="" $B$,$J$/$F$b(B if (1) $B$@$H%(%i!<$N$h$&$@(B. |
|
|
|
[1213] ox_launch(0,"ox_asir"); |
|
0 |
|
[1214] ox_execute_string(0,S); |
|
0 $B$7$+$7$3$A$i$O@5$7$/F0:n(B. |
|
|
|
@end example |
|
|
|
@example |
|
if (1) @{ |
|
module abc; |
|
static A; |
|
A=1; |
|
endmodule; |
|
@} else @{ @}; |
|
|
|
end$ |
|
$B$r(B t.rr $B$H$9$k$H$-(B, |
|
|
|
[6] load("./t.rr"); |
|
1 |
|
internal error (SEGV) |
|
$B$H$J$k(B. |
|
|
|
t.rr $B$r(B |
|
if (1) @{ |
|
module abc; |
|
static A; |
|
localf initA; |
|
localf foo; |
|
def initA() @{ |
|
A=1; |
|
@} |
|
initA(); |
|
def foo() @{ |
|
return A; |
|
@} |
|
endmodule; |
|
@} else @{ @}; |
|
|
|
end$ |
|
$B$H$9$k$H@5$7$/=i4|2=$5$l$k(B. |
|
@end example |
|
|
|
@comment --- ChangeLog |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item oxasir-win.rr $B$N<h07$GLdBjE@$H$7$FIb>e(B. 2005.07.25. |
|
@item ox_asir $B$K7W;;$r0MMj$9$k;~$O(B if (1) @{ ... @}$B$G0O$`(B. |
|
@end itemize |
|
|
|
|
|
@comment **************************************************************** |
|
@comment --- $B"~"~"~"~(B $B0J2<B>$N4X?t$K$D$$$F??;w$7$F5-=R$9$k(B. $B"~"~"~"~(B |
@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. |
@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. |
@comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B |
@comment --- $B"~"~"~"~(B $B4X?t(B syz_pqr, xyz_stu $B$N@bL@(B $B"~"~"~"~(B |
@comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B --- |
@comment --- $BJ#?t$N4X?t$r$^$H$a$F@bL@$9$kNc(B --- |
|
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B xxxyy.rr, ppp.c $B$G$"$k(B. |
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B xxxyy.rr, ppp.c $B$G$"$k(B. |
@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. |
@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. |
@end itemize |
@end itemize |
|
@comment **************************************************************** |
@comment --- $B"~"~"~"~(B $B0J2<B>$N4X?t$K$D$$$F??;w$7$F5-=R$9$k(B. $B"~"~"~"~(B |
|
|
|
|
|
@comment --- $B$*$^$8$J$$(B --- |
@comment --- $B$*$^$8$J$$(B --- |
@node Index,,, Top |
@node Index,,, Top |