ghyper.log 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. Codemist Standard Lisp 3.54 for DEC Alpha: May 23 1994
  2. Dump file created: Mon May 23 10:39:11 1994
  3. REDUCE 3.5, 15-Oct-93 ...
  4. Memory allocation: 6023424 bytes
  5. +++ About to read file ndotest.red
  6. % Test cases for hypergeometric functions
  7. % from Wolfram Koepf: Power Series in Computer Algebra
  8. % J. Symbolic Computation 13, (1992)
  9. load_package specfn2;
  10. *** erfc already defined as operator
  11. (specfn2)
  12. hypergeometric({-alpha},{},x);
  13. *** hypergeometric declared operator
  14. hypergeometric({ - alpha},{},x)
  15. hypergeometric({},{},x);
  16. hypergeometric({},{},x)
  17. x * hypergeometric({1,1},{2},x);
  18. hypergeometric({1,1},{2},x)*x
  19. x * hypergeometric({},{3/2},-x^2/4);
  20. 2
  21. 3 - x
  22. hypergeometric({},{---},-------)*x
  23. 2 4
  24. hypergeometric({},{1/2},-x^2/4);
  25. 2
  26. 1 - x
  27. hypergeometric({},{---},-------)
  28. 2 4
  29. x * hypergeometric({},{3/2},x^2/4);
  30. 2
  31. 3 x
  32. hypergeometric({},{---},----)*x
  33. 2 4
  34. hypergeometric({},{1/2},x^2/4);
  35. 2
  36. 1 x
  37. hypergeometric({},{---},----)
  38. 2 4
  39. x * hypergeometric({1/2,1/2},{3/2},x^2);
  40. 1 1 3 2
  41. hypergeometric({---,---},{---},x )*x
  42. 2 2 2
  43. x * hypergeometric({1/2,1},{3/2},-x^2);
  44. 1 3 2
  45. hypergeometric({---,1},{---}, - x )*x
  46. 2 2
  47. x * hypergeometric({1/2,1/2},{3/2},-x^2);
  48. 1 1 3 2
  49. hypergeometric({---,---},{---}, - x )*x
  50. 2 2 2
  51. x * hypergeometric({1/2,1},{3/2},x^2);
  52. 1 3 2
  53. hypergeometric({---,1},{---},x )*x
  54. 2 2
  55. % another example which shows the polynomial case:
  56. hypergeometric({12,12/34},{3},x);
  57. 6
  58. hypergeometric({12,----},{3},x)
  59. 17
  60. % Some more (nontrivial) examples from
  61. % Graham, Knuth, Ptashnik: Concrete Mathematics
  62. % Addison-Wesley Publishing Company, 1989
  63. HYPERGEOMETRIC({a,b,-n},{c,a+b-c-n+1},1);
  64. hypergeometric({a,b, - n},{c,a + b - c - n + 1},1)
  65. % is known for integers though
  66. hypergeometric({a,b,-4},{c,a+b-c-4+1},z);
  67. hypergeometric({a,b,-4},{c,a + b - c - 3},z)
  68. hypergeometric({1-c-2n,-2n},{c},1);
  69. hypergeometric({ - c - 2*n + 1, - 2*n},{c},1)
  70. hypergeometric({a,b},{1+b-a},-1);
  71. hypergeometric({a,b},{ - a + b + 1},-1)
  72. % Kummer's formula (z=1)
  73. hypergeometric({a,b},{c},1);
  74. hypergeometric({a,b},{c},1)
  75. end;
  76. (TIME: ghyper 250 266)
  77. End of Lisp run after 0.28+1.44 seconds