Go to the first, previous, next, last section, table of contents.


nqt_match

nqt_match(Expr,Pattern[,Mode])
:: ExprPattern にマッチ(適合)すると 1 を戻す. しないと 0 を戻す.
return
整数
Expr
quote型
Pattern
quote型
Mode
整数
ctrl("print_quote",2);
A=quote((x-y)*(x+y));
nqt_match(A,quote(P*Q));
[P,Q]
    出力:  [x-y, x+y]
nqt_match(A,quote(P*Q),1);
    マッチしない.
nqt_match(A,quote(P*Q),2);
    マッチしない.
qt_normalize(A,1);
    出力:  ((x)^(2))+((x)*(y))+((-1)*((y)^(2)))+((-1)*(y)*(x))
qt_normalize(A,2);
    出力:  ((x)*(x))+((x)*(y))+((-1)*(y)*(x))+((-1)*(y)*(y))
参照
section nqt_match_rewrite, section qt_rewrite

ChangeLog


Go to the first, previous, next, last section, table of contents.