algint.red 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. module algint; % Header for REDUCE algebraic integration package.
  2. % Authors: J. Davenport and A. C. Hearn.
  3. create!-package('(algint afactor algfn antisubs coates coatesid findmagc
  4. findres finitise fixsubf fracdi genus intbasis jhddiff
  5. jhdriver linrel log2atan maninp modify modlineq nagell
  6. nbasis places precoats removecm sqfrnorm substns
  7. inttaylr torsionb wstrass zmodule),
  8. % algnums hidden phantoms primes
  9. '(int alg));
  10. % Other packages needed.
  11. load!-package 'int;
  12. % Various functions used in the algebraic integrator.
  13. symbolic smacro procedure divsf(u,v); sqrt2top(u ./ v);
  14. symbolic smacro procedure maninp(u,v,w);
  15. interr "MANINP called -- not implemented in this version";
  16. symbolic smacro procedure readclock; time();
  17. symbolic procedure superprint u; prettyprint u;
  18. % Various selectors written as macros.
  19. symbolic smacro procedure argof u;
  20. % Argument of a unary function.
  21. cadr u;
  22. symbolic smacro procedure lsubs u; car u;
  23. symbolic smacro procedure rsubs u; cdr u;
  24. symbolic smacro procedure lfirstsubs u; caar u;
  25. symbolic smacro procedure rfirstsubs u; cdar u;
  26. % Selectors for the Taylor series structure.
  27. % Format is:
  28. %function.((first.last computed so far) . assoc list of computed terms).
  29. % ***store-hack-1***:
  30. % remove this macro if more store is available.
  31. symbolic smacro procedure tayshorten u; nil;
  32. symbolic smacro procedure taylordefn u; car u;
  33. symbolic smacro procedure taylorfunction u; caar u;
  34. symbolic smacro procedure taylornumbers u; cadr u;
  35. symbolic smacro procedure taylorfirst u; caadr u;
  36. symbolic smacro procedure taylorlast u; cdadr u;
  37. symbolic smacro procedure taylorlist u; cddr u;
  38. symbolic smacro procedure taylormake(fn,nums,alist);
  39. fn . (nums . alist);
  40. endmodule;
  41. end;