limits.doc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. A REDUCE Limits Package
  2. Stanley L. Kameny
  3. E-mail: stan%valley.uucp@rand.org
  4. LIMITS is a fast limit package for REDUCE for functions which are
  5. continuous except for computable poles and singularities, based on some
  6. earlier work by Ian Cohen and John P. Fitch. The Truncated Power Series
  7. package is used for non-critical points, at which the value of the
  8. function is the constant term in the expansion around that point.
  9. L'Hopital's rule is used in critical cases, with preprocessing of
  10. <infinity - infinity> forms and reformatting of product forms in order to
  11. be able to apply l'Hopital's rule. A limited amount of bounded arithmetic
  12. is also employed where applicable.
  13. Normal entry points:
  14. LIMIT(EXPRN:algebraic, VAR:kernel, LIMPOINT:algebraic): algebraic
  15. This is the standard way of calling limit, applying all of the methods.
  16. Direction-dependent limits:
  17. LIMIT!+(EXPRN:algebraic, VAR:kernel, LIMPOINT:algebraic): algebraic
  18. LIMIT!-(EXPRN:algebraic, VAR:kernel, LIMPOINT:algebraic): algebraic
  19. If the limit depends upon the direction of approach to the LIMPOINT, the
  20. functions LIMIT!+ and LIMIT!- may be used. They are defined by:
  21. LIMIT!+ (LIMIT!-) (EXP,VAR,LIMPOINT) ->
  22. LIMIT(EXP*,eps,0) EXP*=sub(VAR=VAR+(-)eps^2,EXP)
  23. Calling functions provided mainly for diagnostic purposes:
  24. LIMIT0(EXPRN:algebraic, VAR:kernel, LIMPOINT:algebraic): algebraic
  25. This function will use all parts of the limits package, but it does not
  26. combine log terms before taking limits, so it may fail if there is a sum
  27. of log terms which have a removable singularity in some of the terms.
  28. LIMIT1(EXPRN:algebraic, VAR:kernel, LIMPOINT:algebraic): algebraic
  29. This function uses the TPS branch only, and will fail if the limpoint is
  30. singular.
  31. LIMIT2(TOP:algebraic, BOT:algebraic, VAR:kernel, LIMPOINT:algebraic):
  32. algebraic
  33. This function applies L'Hopital's rule to the quotient (TOP/BOT).