version 1.23, 2006/03/12 07:05:41 |
version 1.28, 2008/11/19 03:25:38 |
|
|
%% $OpenXM: OpenXM/src/asir-doc/exp/exp-ja.texi,v 1.22 2005/07/26 05:31:52 takayama Exp $ |
%% $OpenXM: OpenXM/src/asir-doc/exp/exp-ja.texi,v 1.27 2008/11/11 08:18:50 ohara 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 2006 $BG/(B 3 $B7n(B |
@subtitle 2008 $BG/(B 1 $B7n(B |
|
|
@author by Risa/Asir committers |
@author by Risa/Asir committers |
@page |
@page |
Line 121 ChangeLog $B$N9`L\$O(B www.openxm.org $B$N(B cvswe |
|
Line 121 ChangeLog $B$N9`L\$O(B www.openxm.org $B$N(B cvswe |
|
* set_print_function:: |
* set_print_function:: |
* small_jacobi:: |
* small_jacobi:: |
* flatten_quote:: |
* flatten_quote:: |
|
* printf:: |
|
* fprintf:: |
* sprintf:: |
* sprintf:: |
* quote_to_funargs:: |
* quote_to_funargs:: |
* funargs_to_quote:: |
* funargs_to_quote:: |
Line 140 ChangeLog $B$N9`L\$O(B www.openxm.org $B$N(B cvswe |
|
Line 142 ChangeLog $B$N9`L\$O(B www.openxm.org $B$N(B cvswe |
|
* qt_is_var:: |
* qt_is_var:: |
* qt_is_ceof:: |
* qt_is_ceof:: |
* qt_rewrite:: |
* qt_rewrite:: |
|
* asirgui.hnd:: |
|
* noro_matrix.rr: |
|
* f_res:: |
|
* chdir:: |
|
* pwd:: |
|
* dcurrenttime:: |
|
|
|
|
@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 |
|
|
|
|
|
|
@node sprintf,,, $B<B83E*;EMM$N4X?t(B |
@node sprintf,,, $B<B83E*;EMM$N4X?t(B |
@subsection @code{sprintf} |
@subsection @code{printf}, @code{fprintf}, @code{sprintf} |
@findex sprintf |
@findex sprintf |
|
|
@table @t |
@table @t |
|
@item printf(@var{format}[,@var{args}]) |
|
@item fprintf(@var{fd},@var{format}[,@var{args}]) |
@item sprintf(@var{format}[,@var{args}]) |
@item sprintf(@var{format}[,@var{args}]) |
:: C $B$K;w$?%W%j%s%H4X?t(B |
:: C $B$K;w$?%W%j%s%H4X?t(B |
@end table |
@end table |
|
|
@table @var |
@table @var |
@item return |
@item return |
$BJ8;zNs(B |
$B@0?t(B(printf,fprintf), $BJ8;zNs(B(sprintf) |
@item format |
@item format |
$BJ8;zNs(B |
$BJ8;zNs(B |
|
@item fd |
|
$BHsIi@0?t(B($B%U%!%$%k5-=R;R(B) |
@item args |
@item args |
$B%*%V%8%'%/%H(B |
$B%*%V%8%'%/%H(B |
@end table |
@end table |
|
|
@itemize @bullet |
@itemize @bullet |
@item |
@item |
$B%U%)!<%^%C%HJ8;zNs(B @var{format } $B$K$7$?$,$$(B @var{args} $B$rJ8;zNs$KJQ49$9$k(B. |
@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. |
@item |
@item |
$B%U%)!<%^%C%HJ8;zNs$NCf$K(B @code{%a} (any) $B$,MxMQ2DG=(B. |
@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. |
@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. |
@item |
|
@code{sprintf} $B$O7k2L$rJ8;zNs$GJV$7(B, $BI8=`=PNO$K$O=q$-=P$5$J$$(B. |
|
@item |
|
$B=q<0J8;zNs$NCf$G(B @code{%a} (any) $B$,MxMQ2DG=(B. |
|
@var{args} $B$N8D?t$O=q<0J8;zNs$NCf$N(B @code{%a} $B$N8D?t$KEy$7$/$9$k$3$H(B. |
|
@item |
|
$B%U%!%$%k5-=R;R$O(B, @code{open_file} $B4X?t$rMQ$$$FF@$k$3$H(B. |
@end itemize |
@end itemize |
|
|
@example |
@example |
[0] sprintf("%a: rat = %a",10,x^2-1); |
[0] printf("%a: rat = %a\n",10,x^2-1)$ |
10: rat = x^2-1 |
10: rat = x^2-1 |
|
[1] S=sprintf("%a: rat = %a",20,x^2-1)$ |
|
[2] S; |
|
20: rat = x^2-1 |
|
[3] Fd=open_file("hoge.txt","w"); |
|
0 |
|
[4] fprintf(Fd,"Poly=%a\n",(x-1)^3)$ |
|
[5] close_file(Fd)$ |
|
[6] quit; |
|
|
|
$ cat hoge.txt |
|
Poly=x^3-3*x^2+3*x-1 |
@end example |
@end example |
|
|
@table @t |
@table @t |
@item $B;2>H(B |
@item $B;2>H(B |
@ref{rtostr} |
@ref{rtostr},@ref{open_file},@ref{close_file} |
@end table |
@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 |
|
|
ChangeLog |
ChangeLog |
@itemize @bullet |
@itemize @bullet |
@item |
@item |
$B$3$N4X?t$O(B 2004-7-13 $B$K%3%_%C%H$5$l$?(B. |
$B4X?t(B sprintf$B$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. |
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/strobj (1.50) $B$G$"$k(B. |
@item |
@item |
|
$B4X?t(B printf$B$O(B 2007-11-8 $B$K%3%_%C%H$5$l$?(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/print.c (1.23) $B$G$"$k(B. |
|
@item |
|
$B4X?t(B fprintf$B$O(B 2008-11-18 $B$K%3%_%C%H$5$l$?(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/file.c (1.25) $B$G$"$k(B. |
|
@item |
@code{%a} $B$O(B Maple $B$N(B sprintf $B$N??;w$+(B. |
@code{%a} $B$O(B Maple $B$N(B sprintf $B$N??;w$+(B. |
@end itemize |
@end itemize |
|
|
Line 2183 qt $B7O$N4X?t$,3+H/$5$l$?(B. |
|
Line 2219 qt $B7O$N4X?t$,3+H/$5$l$?(B. |
|
@end itemize |
@end itemize |
@comment **************************************************************** |
@comment **************************************************************** |
|
|
|
|
|
@comment **************************************************************** |
|
@node asirgui.hnd,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{asirgui.hnd} |
|
@findex asirgui.hnd |
|
|
|
@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 asirguid.hnd |
|
:: asirgui $B$N(B main window $B$N%O%s%I%kHV9f$rJ];}$9$k%U%!%$%k(B |
|
@end table |
|
|
|
|
|
@itemize @bullet |
|
@item asirgui (Windows $BHG(B) $B$r5/F0$9$k$H(B asirgui.exe $B$N$"$k%U%)%k%@$*$h$S(B $B4D6-JQ?t(B TEMP $B$,Dj5A$5$l$F$$$l$P$3$N%U%!%$%k$,:n@.$5$l$k(B. |
|
@item $BCf?H$O#1#0?J@0?t$G(B, asirgui $B$N(B main winodw $B$N%O%s%I%k$G$"$k(B. $B$3$N%O%s%I%k$"$F$K(B PostMessage $B$r$9$l$P(B, asuirgui $B$K%-!<%\!<%I$+$iF~NO$7$?$N$HF1MM$J8z2L$,F@$i$l$k(B. |
|
@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. |
|
@end itemize |
|
|
|
@example |
|
// Visual C++ $BMQ$N%F%9%H%W%m%0%i%`(B. $BI8=`F~NO$r(B asirgui $B$XAw$j9~$`(B. |
|
// test.cpp : $B%3%s%=!<%k(B $B%"%W%j%1!<%7%g%sMQ$N%(%s%H%j(B $B%]%$%s%H$NDj5A(B |
|
// |
|
|
|
#include "stdafx.h" |
|
#include "test.h" |
|
#include <windows.h> |
|
#include <stdlib.h> |
|
#include <stdio.h> |
|
#include <fcntl.h> |
|
#include <process.h> |
|
|
|
#ifdef _DEBUG |
|
#define new DEBUG_NEW |
|
#undef THIS_FILE |
|
static char THIS_FILE[] = __FILE__; |
|
#endif |
|
|
|
///////////////////////////////////////////////////////////////////////////// |
|
// $BM#0l$N%"%W%j%1!<%7%g%s(B $B%*%V%8%'%/%H(B |
|
|
|
CWinApp theApp; |
|
|
|
using namespace std; |
|
|
|
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) |
|
{ |
|
int nRetCode = 0; |
|
|
|
// MFC $B$N=i4|2=$*$h$S=i4|2=<:GT;~$N%(%i!<$N=PNO(B |
|
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0)) |
|
{ |
|
// TODO: $BI,MW$K1~$8$F%(%i!<(B $B%3!<%I$rJQ99$7$F$/$@$5$$!#(B |
|
cerr << _T("Fatal Error: MFC initialization failed") << endl; |
|
nRetCode = 1; |
|
} |
|
else |
|
{ |
|
// TODO: $B$3$N0LCV$K%"%W%j%1!<%7%g%s$NF0:n$r5-=R$7$F$/$@$5$$!#(B |
|
CString strHello; |
|
strHello.LoadString(IDS_HELLO); |
|
cout << (LPCTSTR)strHello << endl; |
|
} |
|
HWND hnd; |
|
FILE *fp = fopen("c:/Program Files/asir/bin/asirgui.hnd","r"); |
|
fscanf(fp,"%d",&hnd); |
|
fclose(fp); |
|
while (1) { |
|
int c; |
|
c = getchar(); |
|
if ( c == '#' ) break; |
|
PostMessage(hnd,WM_CHAR,c,1); |
|
} |
|
return nRetCode; |
|
} |
|
@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 --- openxm $B$N30It$+$i$N4sM?$b=R$Y$k(B. Credit. |
|
@noindent |
|
ChangeLog |
|
@itemize @bullet |
|
@item $B$3$N5!G=$O(B 2006-12-5, 2007-02-13 $B$K2C$($i$l$?(B. |
|
@item @code{OpenXM_contrib2/windows/asir32gui/asir32gui.clw} 1.11 |
|
@item @code{OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp} 1.15, 1.1.6 |
|
@end itemize |
|
@comment **************************************************************** |
|
|
|
@node noro_matrix.rr,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{noro_matrix.rr} |
|
@findex noro_matrix.rr |
|
|
|
@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 linalg.unit_mat(@var{arg1}) |
|
@item linalg.random_rmat(@var{arg1}, @var{arg2}, @var{arg3}) |
|
@item linalg.minipoly_mat(@var{arg1}) |
|
@item linalg.compute_kernel(@var{arg1}) |
|
@item linalg.compute_image(@var{arg1}) |
|
@item linalg.jordan_canonical_form(@var{arg1}) |
|
@end table |
|
|
|
|
|
@itemize @bullet |
|
@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. |
|
@end itemize |
|
|
|
@example |
|
load("noro_matrix.rr"); |
|
A=newmat(4,4,[[2,0,0,0],[3,5,1,0],[-9,-9,-1,0],[-5,0,0,1]]); |
|
B=linalg.jordan_canonical_form(A); |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{invmat} |
|
@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-04 $B:"$+$i@~7ABe?t(BIII $B$N9V5A$r$7$J$,$i=q$+$l$?(B. |
|
@item $B%=!<%9(B: OpenXM/src/asir-contrib/packages/src/noro_matrix.rr |
|
@end itemize |
|
|
|
|
|
@node f_res,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{f_res} |
|
@findex f_res |
|
|
|
@comment --- $B4X?t$N4JC1$J@bL@(B --- |
|
@table @t |
|
@item f_res |
|
@end table |
|
|
|
|
|
@itemize @bullet |
|
@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. |
|
@end itemize |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{} |
|
@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$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. |
|
@item OpenXM/src/ox_cdd, OpenXM/src/asir-contrib/packages/src/f_res.rr |
|
@end itemize |
|
|
|
|
|
@node chdir,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{chdir}, @code{pwd} |
|
@findex chdir |
|
@findex pwd |
|
|
|
@comment --- $B%G%#%l%/%H%jA`:n(B --- |
|
@table @t |
|
@item chdir(@var{directory}) |
|
@item pwd() |
|
:: $B%7%'%k%3%^%s%I(B cd $B$H(B pwd $B$KBP1~$9$kA`:n(B. |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$BJ8;zNs(B(@code{pwd}), $B@0?t(B(@code{chdir}) |
|
@item dirctory |
|
$BJ8;zNs(B |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
@code{pwd} $B$O%+%l%s%H%G%#%l%/%H%j$rJ8;zNs$GJV$9(B. |
|
@item |
|
@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. |
|
@item |
|
$B$3$l$i$N4X?t$O(B UNIX $BHG$K$N$_<BAu$5$l$F$$$k(B. |
|
@end itemize |
|
|
|
@example |
|
[0] S=pwd(); |
|
/home/ohara |
|
[1] chdir(".../taka"); |
|
-1 |
|
[2] chdir("/usr/bin"); |
|
0 |
|
@end example |
|
|
|
@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$l$i$N4X?t$O(B 2008-8-27 $B$K%3%_%C%H$5$l$?(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/miscf.c (1.27) $B$G$"$k(B. |
|
@end itemize |
|
|
|
|
|
@node dcurrenttime,,, $B<B83E*;EMM$N4X?t(B |
|
@subsection @code{dcurrenttime} |
|
@findex dcurrenttime |
|
|
|
@comment --- $B8=:_;~9o$r<hF@(B --- |
|
@table @t |
|
@item dcurrenttime() |
|
:: $B8=:_;~9o$r<hF@(B. |
|
@end table |
|
|
|
@table @var |
|
@item return |
|
$BIbF0>.?tE@?t(B |
|
@end table |
|
|
|
@itemize @bullet |
|
@item |
|
$BJV$jCM$O(B1970$BG/(B1$B7n(B1$BF|(B0$B;~(B0$BJ,(B0$BIC$+$i$N7P2aIC?t$G$"$k(B. |
|
@end itemize |
|
|
|
@example |
|
[0] ctrl("real_digit", 16); |
|
16 |
|
[1] dcurrenttime(); |
|
1226390851.34476 |
|
[2] currenttime(); |
|
1226390854 |
|
@end example |
|
|
|
@table @t |
|
@item $B;2>H(B |
|
@ref{currenttime} |
|
@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 2008-9-12 $B$K%3%_%C%H$5$l$?(B. |
|
$BJQ99$r$&$1$?%=!<%9%3!<%I$O(B builtin/time.c (1.6) $B$G$"$k(B. |
|
@end itemize |
|
|
@comment ----------- $B0J2<$O8+K\(B. $B>C$9$J(B. |
@comment ----------- $B0J2<$O8+K\(B. $B>C$9$J(B. |
@comment **************************************************************** |
@comment **************************************************************** |
@comment --- $B"~"~"~"~(B $B0J2<B>$N4X?t$K$D$$$F??;w$7$F5-=R$9$k(B. $B"~"~"~"~(B |
@comment --- $B"~"~"~"~(B $B0J2<B>$N4X?t$K$D$$$F??;w$7$F5-=R$9$k(B. $B"~"~"~"~(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$*$^$8$J$$(B --- |
@comment --- $B$*$^$8$J$$(B --- |
@node Index,,, Top |
@node Index,,, Top |