helpasst.red 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. module helpasst;
  2. algebraic procedure assist();
  3. <<write " Argument of ASSISTHELP must be an integer between 3 and 14. ";
  4. write " Each integer corresponds to a section number in the documentation:";
  5. write " 3: switches ", " 4: lists "," 5: bags ",
  6. " 6: sets ";
  7. write " 7: utilities ", " 8: properties and flags ",
  8. " 9: control functions ";
  9. write " 10: handling of polynomials ";
  10. write " 11: handling of transcendental functions";
  11. write " 12: handling of n-dimensional vectors ";
  12. write " 13: grassmann variables "," 14: matrices";>>;
  13. algebraic procedure assisthelp(n);
  14. if n = assist then assist()
  15. else
  16. if not fixp n then rederr("Argument must be an integer")
  17. else
  18. if n>=15 then "Argument must be less then 15"
  19. else
  20. if n<3 then "Argument must be greater or equal to 3"
  21. else
  22. begin scalar xx;
  23. xx:= asflist(n,assist_func);
  24. return if length xx=1 then rest first xx
  25. else
  26. for each i in xx collect rest i
  27. end$
  28. algebraic(
  29. assist_func:= {{3, "switches", "switchorg"},
  30. {4, "dot", "mklist", "algnlist", "frequency", "sequences",
  31. "split", "kernlist"},
  32. {4, "delete", "delete_all", "remove"},
  33. {4, "elmult", "insert", "insert_keep_order", "merge_list"},
  34. {4, "last", "belast", "position", "depth", "mkdepth_one",
  35. "pair", "delpair", "appendn"},
  36. {4, "repfirst", "represt", "asfirst", "aslast",
  37. "asrest","restaslist", "asflist", "asslist"},
  38. {5, "putbag", "clearbag", "bagp", "baglistp", "alistp",
  39. "abaglistp", "listbag"},
  40. {6, "union", "setp", "mkset", "diffset", "symdiff"},
  41. {7, "mkidnew", "list_to_ids", "oddp", "followline",
  42. "detidnum", "dellastdigit", "=="},
  43. {7, "randomlist", "mkrandtabl"},
  44. {7, "permutations", "perm_to_num", "num_to_perm",
  45. "combnum", "combinations", "cyclicpermlist",
  46. "symmetrize", "remsym"},
  47. {7, "extremum", "sortnumlist", "sortlist","algsort"},
  48. {7, "funcvar", "implicit", "depatom", "explicit",
  49. "simplify", "korderlist", "remcom"},
  50. {7, "checkproplist", "extractlist", "array_to_list",
  51. "list_to_array"},
  52. {7, "remvector", "remindex", "mkgam"},
  53. {8, "putflag", "putprop", "displayprop", "displayflag",
  54. "clearflag", "clearprop"},
  55. {9, "nordp", "depvarp", "alatomp", "alkernp", "precp"},
  56. {9, "show", "suppress", "clearop", "clearfunctions"},
  57. {10, "alg_to_symb", "symb_to_alg"},
  58. {10, "gcdnl", "distribute", "leadterm", "redexpr",
  59. "monom", "lowestdeg", "splitterms", "splitplusminus",
  60. "norm_mon", "norm_pol", "list_coeff_pol"},
  61. {11, "trigexpand", "hypexpand","trigreduce","hypreduce"},
  62. {12, "sumvect", "minvect", "sscalvect", "crossvect",
  63. "mpvect"},
  64. {13, "putgrass", "remgrass", "grassp", "grassparity",
  65. "ghostfactor"},
  66. {14, "mkidm", "baglmat", "coercemat", "unitmat","submat",
  67. "matsubr", "matsubc", "matextr", "matextc"},
  68. {14, "hconcmat", "vconcmat", "tpmat", "hermat", "seteltmat",
  69. "geteltmat"}});
  70. endmodule;
  71. end;