version 1.9, 2002/10/24 05:19:50 |
version 1.20, 2003/08/24 05:19:43 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/Kan/usage.c,v 1.8 2001/08/21 14:12:46 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/Kan/usage.c,v 1.19 2003/08/23 02:28:39 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
#include "datatype.h" |
#include "datatype.h" |
#include "stackm.h" |
#include "stackm.h" |
Line 151 void Kusage2(fp,s) |
|
Line 151 void Kusage2(fp,s) |
|
fppp(fp," [(forkExec) argList fdList sigblock] extension pid\n"); |
fppp(fp," [(forkExec) argList fdList sigblock] extension pid\n"); |
fppp(fp," [(getchild)] extension listOfPid (generated by forkExec)\n"); |
fppp(fp," [(getchild)] extension listOfPid (generated by forkExec)\n"); |
fppp(fp," [(keywords) ] extension array-of-names-of-primitives \n"); |
fppp(fp," [(keywords) ] extension array-of-names-of-primitives \n"); |
|
fppp(fp," [(nobody) ] extension null \n"); |
fppp(fp," [(getUniqueFileName) path] extension newName \n"); |
fppp(fp," [(getUniqueFileName) path] extension newName \n"); |
fppp(fp," [(outputObjectToFile) path obj] extension null \n"); |
fppp(fp," [(outputObjectToFile) path obj] extension null \n"); |
fppp(fp," [(ostype)] extension list \n"); |
fppp(fp," [(ostype)] extension list \n"); |
Line 176 void Kusage2(fp,s) |
|
Line 177 void Kusage2(fp,s) |
|
fppp(fp," [(isReducible) poly1 poly2 ] gbext integer \n"); |
fppp(fp," [(isReducible) poly1 poly2 ] gbext integer \n"); |
fppp(fp," [(lcm) poly1 poly2] gbext poly \n"); |
fppp(fp," [(lcm) poly1 poly2] gbext poly \n"); |
fppp(fp," [(grade) poly1 ] gbext integer \n"); |
fppp(fp," [(grade) poly1 ] gbext integer \n"); |
|
fppp(fp," [(ord_ws_all) fv wv] gbext integer \n"); |
fppp(fp," [(mod) poly1 universalNumber] gbext poly \n"); |
fppp(fp," [(mod) poly1 universalNumber] gbext poly \n"); |
fppp(fp," poly = poly1 mod universalNumber where char=0 and \n"); |
fppp(fp," poly = poly1 mod universalNumber where char=0 and \n"); |
fppp(fp," poly and poly2 belong to a same ring.\n"); |
fppp(fp," poly and poly2 belong to a same ring.\n"); |
Line 193 void Kusage2(fp,s) |
|
Line 195 void Kusage2(fp,s) |
|
fppp(fp," [(toe_) poly] gbext poly \n"); |
fppp(fp," [(toe_) poly] gbext poly \n"); |
fppp(fp," [(toe_) array_of_poly] gbext poly cf. toVectors \n"); |
fppp(fp," [(toe_) array_of_poly] gbext poly cf. toVectors \n"); |
fppp(fp," [(isOrdered) poly] gbext poly \n"); |
fppp(fp," [(isOrdered) poly] gbext poly \n"); |
|
fppp(fp," [(reduceContent) poly] gbext [poly c] \n"); |
}else if (strcmp(s,"get")==0) { |
}else if (strcmp(s,"get")==0) { |
fppp(fp,"<< [f0 f1 ... fn] k get fk >>\n"); |
fppp(fp,"<< [f0 f1 ... fn] k get fk >>\n"); |
fppp(fp,"integer k;"); |
fppp(fp,"integer k;"); |
Line 230 void Kusage2(fp,s) |
|
Line 233 void Kusage2(fp,s) |
|
}else if (strcmp(s,"homogenize") == 0) { |
}else if (strcmp(s,"homogenize") == 0) { |
fppp(fp,"<< f homogenize g >>\n"); |
fppp(fp,"<< f homogenize g >>\n"); |
fppp(fp,"poly f,g;\n"); |
fppp(fp,"poly f,g;\n"); |
fppp(fp,"array of poly f,g;\n"); |
fppp(fp,"array of poly f,g;\n\n"); |
|
fppp(fp,"[(degreeShift) (value)] homogenize [shiftD shiftUV]\n"); |
|
fppp(fp,"[(degreeShift) (reset)] homogenize [null null]\n"); |
|
fppp(fp,"[(degreeShift) shiftD ] homogenize [shiftD shiftUV]\n"); |
|
fppp(fp,"[(degreeShift) [shiftD shiftUV]] homogenize [shiftD shiftUV]\n"); |
|
fppp(fp,"[(degreeShift) [ ] fv] homogenize hfv\n"); |
|
fppp(fp,"[(degreeShift) shiftD fv] homogenize hfv\n"); |
|
fppp(fp,"[(degreeShift) [shiftD shiftUV] fv] homogenize hfv\n"); |
|
fppp(fp,"shiftD : degree shift vector for (0,1)-h homogenization\n"); |
|
fppp(fp,"shiftUV : degree shift vector for (-1,1)-s homogenization (internal for ecart.)\n"); |
|
fppp(fp,"fv : polynomial or vector of polynomials.\n"); |
|
fppp(fp,"Example: [(x) ring_of_differential_operators 0] define_ring\n"); |
|
fppp(fp," [(degreeShift) [[1 0] [0 1]] [(x+1). (Dx+1).]] homogenize ::\n"); |
|
fppp(fp," [(degreeShift) (value)] homogenize ::\n"); |
|
fppp(fp,"Note. min of ord (-1,1)[0,1] is min {-1,1, 1+1,1+0} = -1 =m \n"); |
|
fppp(fp," Degree of H is b-a+v(i)-m where v=[0,1]\n"); |
|
fppp(fp,"DegreeShift is automatically reset when set_up_ring is called.\n"); |
}else if (strcmp(s,"idiv") == 0) { |
}else if (strcmp(s,"idiv") == 0) { |
fppp(fp,"<< a b idiv a/b >>\n"); |
fppp(fp,"<< a b idiv a/b >>\n"); |
fppp(fp,"int a,b,a/b;\n"); |
fppp(fp,"int a,b,a/b;\n"); |
Line 252 void Kusage2(fp,s) |
|
Line 271 void Kusage2(fp,s) |
|
fppp(fp,"h is the initial term of the polynomial f.\n"); |
fppp(fp,"h is the initial term of the polynomial f.\n"); |
fppp(fp,"Example: (2 x^3 + 3 x + 1). init :: ---> 2 x^3\n"); |
fppp(fp,"Example: (2 x^3 + 3 x + 1). init :: ---> 2 x^3\n"); |
fppp(fp,"Example: [(x^3+1). (x h+ h^5).] {init} map ::\n"); |
fppp(fp,"Example: [(x^3+1). (x h+ h^5).] {init} map ::\n"); |
fppp(fp,"Example: (x+1). [0 1 1 1] init :: cf. weightv \n"); |
fppp(fp,"Example: (x+1). [0 1 1 1] init :: cf. weightv \n\n"); |
|
fppp(fp,"<< fv weight_vector init h >>\n"); |
|
fppp(fp,"<< fv [weight_vector shift_vector] init h >>\n"); |
|
fppp(fp,"<< fv init h >> or << hv [ ] init h >>\n"); |
|
fppp(fp,"fv is a polynomial or a vector of polynomials.\n"); |
|
fppp(fp,"h is the initial term with respect to the weight vector and the shift vector\n"); |
|
fppp(fp,"if they are given.\n"); |
|
fppp(fp,"Note: the last x variable is always assumed to be the vector index.\n"); |
|
fppp(fp,"Example: [(x,y) ring_of_differential_operators 0] define_ring\n"); |
|
fppp(fp," [(x^2*Dx^2+2*x*Dx+x). (Dx+x).] [[(Dx) 1 (x) -1] weightv [0 -1]] init ::\n"); |
}else if (strcmp(s,"lc")==0) { |
}else if (strcmp(s,"lc")==0) { |
fppp(fp,"<< obj lc leftCell >>\n"); |
fppp(fp,"<< obj lc leftCell >>\n"); |
fppp(fp,"class leftCell;\n"); |
fppp(fp,"class leftCell;\n"); |
Line 457 void Kusage2(fp,s) |
|
Line 485 void Kusage2(fp,s) |
|
fppp(fp,"orderMatrix, gbListTower, Schreyer, \n"); |
fppp(fp,"orderMatrix, gbListTower, Schreyer, \n"); |
fppp(fp,"outputOrder, multSymbol, variableNames, Version,\n"); |
fppp(fp,"outputOrder, multSymbol, variableNames, Version,\n"); |
fppp(fp,"AvoidTheSameRing, RingStack, LeftBracket, RightBracket,\n"); |
fppp(fp,"AvoidTheSameRing, RingStack, LeftBracket, RightBracket,\n"); |
fppp(fp,"AutoReduce, SecureMode\n"); |
fppp(fp,"AutoReduce, SecureMode, Ecart, EcartAutomaticHomogenization\n"); |
|
fppp(fp,"DoCancel, DebugContentReduction\n"); |
fppp(fp,"Example: [(N)] system_variable\n"); |
fppp(fp,"Example: [(N)] system_variable\n"); |
fppp(fp," (maximum number of variables)/2.\n"); |
fppp(fp," (maximum number of variables)/2.\n"); |
fppp(fp," [(x) (var) 3] system_variable\n"); |
fppp(fp," [(x) (var) 3] system_variable\n"); |
Line 466 void Kusage2(fp,s) |
|
Line 495 void Kusage2(fp,s) |
|
fppp(fp," The 4th differential operator.\n"); |
fppp(fp," The 4th differential operator.\n"); |
fppp(fp," [(PrintDollar) 0] system_variable\n"); |
fppp(fp," [(PrintDollar) 0] system_variable\n"); |
fppp(fp," Set the global variable PrintDollar to 0\n"); |
fppp(fp," Set the global variable PrintDollar to 0\n"); |
|
fppp(fp,"DebugReductionEcart (bit): (2) *% (1) find_reducer,in(r) \n"); |
|
fppp(fp," (any) cont (4) #+[rat division, + ecartd] \n"); |
|
fppp(fp,"DoCancel (bit): (2) always_reduce_content (1) Noro_strategy \n"); |
|
fppp(fp," (4) DoCancel_in_reduction1 \n"); |
|
}else if (strcmp(s,"tlimit")==0) { |
|
fppp(fp,"<< { ... } t tlimit results >>\n"); |
|
fppp(fp,"Limit the execution time to t seconds.\n"); |
|
fppp(fp,"When t is not positive, tlimit pushes the execution time.\n"); |
}else if (strcmp(s,"to_records")==0) { |
}else if (strcmp(s,"to_records")==0) { |
fppp(fp,"<< ({arg1,arg2,...,argn}) to_records (arg1) ... (argn) n >>\n"); |
fppp(fp,"<< ({arg1,arg2,...,argn}) to_records (arg1) ... (argn) n >>\n"); |
fppp(fp,"Example: ({x,y2}) to_records ===> (x) (y2) 2\n"); |
fppp(fp,"Example: ({x,y2}) to_records ===> (x) (y2) 2\n"); |