sum.tex 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. \documentstyle[11pt]{article}
  2. \title{The REDUCE Sum Package \\ Ver 1.0 9 Oct 1989}
  3. \date{}
  4. \author{Fujio Kako \\ Department of Mathematics \\ Faculty of Science \\
  5. Hiroshima University \\ Hiroshima 730, JAPAN \\
  6. E-mail: kako@kako.math.sci.hiroshima-u.ac.jp \\ or \\
  7. D52789@JPNKUDPC.BITNET}
  8. \begin{document}
  9. \maketitle
  10. This package implements the Gosper algorithm for the summation of series.
  11. It defines operators SUM and PROD. The operator SUM returns the indefinite
  12. or definite summation of a given expresson, and the operator PROD returns
  13. the product of the given expression. These are used with the syntax:
  14. \vspace{.1in}
  15. \noindent {\tt SUM}(EXPR:{\em expression}, K:{\em kernel}, [LOLIM:{\em expression} [, UPLIM:{\em expression}]])
  16. \vspace{.1in}
  17. \noindent {\tt PROD}(EXPR:{\em expression}, K:{\em kernel}, [LOLIM:{\em expression} [, UPLIM:{\em expression}]])
  18. \vspace{.1in}
  19. If there is no closed form solution, these operators return the input
  20. unchanged. UPLIM and LOLIM are optional parameters specifing the lower
  21. limit and upper limit of the summation (or product), respectively. If UPLIM
  22. is not supplied, the upper limit is taken as K (the summation variable
  23. itself).
  24. For example:
  25. \begin{verbatim}
  26. sum(n**3,n);
  27. sum(a+k*r,k,0,n-1);
  28. sum(1/((p+(k-1)*q)*(p+k*q)),k,1,n+1);
  29. prod(k/(k-2),k);
  30. \end{verbatim}
  31. Gosper's algorithm succeeds whenever the ratio of
  32. \[ \frac{\sum_{k=n_0}^n f(k)}{\sum_{k=n_0}^{n-1} f(k)} \]
  33. \noindent is a rational function of $n$. The function SUM!-SQ
  34. handles basic functions such as polynomials, rational functions and
  35. exponentials.
  36. The trigonometric functions sin, cos, etc. are converted to exponentials
  37. and then Gosper's algorithm is applied. The result is converted back into
  38. sin, cos, sinh and cosh.
  39. Summations of logarithms or products of exponentials are treated by the
  40. formula:
  41. \vspace{.1in}
  42. \hspace*{2em} \[ \sum_{k=n_0}^{n} \log f(k) = \log \prod_{k=n_0}^n f(k) \]
  43. \vspace{.1in}
  44. \hspace*{2em} \[ \prod_{k=n_0}^n \exp f(k) = \exp \sum_{k=n_0}^n f(k) \]
  45. \vspace{.1in}
  46. Other functions, as shown in the test file for the case of binomials and
  47. formal products, can be summed by providing LET rules which must relate
  48. the functions evaluated at $k$ and $k - 1$ ($k$ being the summation variable).
  49. There is a switch TRSUM (default OFF). If this switch is on, trace
  50. messages are printed out during the course of Gosper's algorithm.
  51. \end{document}