DEFINT.TST 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. % Test cases for definite integration.
  2. int(x/(x+2),x,2,6);
  3. int(sin x,x,0,pi/2);
  4. int(log(x),x,1,5);
  5. int((1+x**2/p**2)**(1/2),x,0,p);
  6. int(x**9+y+y**x+x,x,0,2);
  7. % Collected by Kerry Gaskell, ZIB, 1993/94.
  8. int(x^2*log(1+x),x,0,infinity);
  9. int(x*e^(-1/2x),x,0,infinity);
  10. int(x/4*e^(-1/2x),x,0,infinity);
  11. int(sqrt(2)*x^(1/2)*e^(-1/2x),x,0,infinity);
  12. int(x^(3/2)*e^(-x),x,0,infinity);
  13. int(sqrt(pi)*x^(3/2)*e^(-x),x,0,infinity);
  14. int(x*log(1+1/x),x,0,infinity);
  15. int(si(1/x),x,0,infinity);
  16. int(cos(1/x),x,0,infinity);
  17. int(sin(x^2),x,0,infinity);
  18. int(sin(x^(3/2)),x,0,infinity);
  19. int(besselj(2,x),x,0,infinity);
  20. int(besselj(2,y^(5/4)),y,0,infinity);
  21. int(x^(-1)*besselj(2,sqrt(x)),x,0,infinity);
  22. int(bessely(2,x),x,0,infinity);
  23. int(x*besseli(2,x),x,0,infinity);
  24. int(besselk(0,x),x,0,infinity);
  25. int(x^2*besselk(2,x),x,0,infinity);
  26. int(sinh(x),x,0,infinity);
  27. int(cosh(2*x),x,0,infinity);
  28. int(-3*ei(-x),x,0,infinity);
  29. int(x*shi(x),x,0,infinity);
  30. int(x*fresnel_c(x),x,0,infinity);
  31. int(x^3*e^(-2*x),x,0,infinity);
  32. int(x^(-1)*sin(x/3),x,0,infinity);
  33. int(x^(-1/2)*sin(x),x,0,infinity);
  34. int(2*x^(-1/2)*cos(x),x,0,infinity);
  35. int(sin x + cos x,x,0,infinity);
  36. int(ei(-x) + sin(x^2),x,0,infinity);
  37. int(x^(-1)*(sin (-2*x) + sin(x^2)),x,0,infinity);
  38. int(x^(-1)*(cos(x/2) - cos(x/3)),x,0,infinity);
  39. int(x^(-1)*(cos x - cos(2*x)),x,0,infinity);
  40. int(x^(-1)*(cos(x) - cos(x)),x,0,infinity);
  41. int(2,x,0,infinity);
  42. int(cos(x)*si(x),x,0,infinity);
  43. int(2*cos(x)*e^(-x),x,0,infinity);
  44. int(x/2*cos(x)*e^(-x),x,0,infinity);
  45. int(x^2/4*cos(x)*e^(-2*x),x,0,infinity);
  46. int(1/(2*x)*sin(x)*e^(-3*x),x,0,infinity);
  47. int(3/x^2*sin(x)*e^(-x),x,0,infinity);
  48. int(cos(sqrt(x))*e^(-x),x,0,infinity);
  49. int(e^(-x)*besselj(2,x),x,0,infinity);
  50. int(cos(x^2)*e^(-x),x,0,infinity);
  51. int(erf(x)*e^(-x),x,0,infinity);
  52. int(besseli(2,x)*e^(-x),x,0,infinity);
  53. int(e^(-x^2)*cos(x),x,0,infinity);
  54. int(x^(-1)*sin(x)*cos(x),x,0,infinity);
  55. int(x^(-1)*sin(x)*cos(2*x),x,0,infinity);
  56. int(x^(-1)*sin(x)*cos(x/2),x,0,infinity);
  57. int(e^x,x,0,infinity);
  58. int(e^(-x^2 - x),x,0,infinity);
  59. int(e^(-(x+x^2+1)),x,0,infinity);
  60. int(e^(-(x+1/x)^2),x,0,infinity);
  61. int(e^(-(x+2))*sin(x),x,0,infinity);
  62. int(-3*x*e^(-1/2x),x,0,infinity);
  63. int(x*e^(-1/2*x^2),x,0,infinity);
  64. int(x^2*besselj(2,x),x,0,infinity);
  65. int(x*besselk(1,x),x,0,infinity);
  66. int(-3*ei(-x),x,0,infinity);
  67. int(x^3*e^(-2*x^2),x,0,infinity);
  68. int(sqrt(2)/2*x^(-3/2)*sin x,x,0,infinity);
  69. int(x^(-1)*(sin(-2*x) + sin(x^2)),x,0,infinity);
  70. int(x^(-1)*(cos(3*x) - cos(x/2)),x,0,infinity);
  71. int(x^(-1)*(sin x - sin(2*x)),x,0,infinity);
  72. int(1/x*sin(x)*e^(-3*x),x,0,infinity);
  73. int(sin(x)*e^(-x),x,0,infinity);
  74. int(x^(-1)*sin(x)*cos(x),x,0,infinity);
  75. int(e^(1-x)*e^(2-x^2),x,0,infinity);
  76. int(e^(-1/2x),x,0,y);
  77. int(si(x),x,0,y);
  78. int(besselj(2,x^(1/4)),x,0,y);
  79. int(x*besseli(2,x),x,0,y);
  80. int(x^(3/2)*e^(-x),x,0,y);
  81. int(sinh(x),x,0,y);
  82. int(cosh(2*x),x,0,y);
  83. int(x*shi(x),x,0,y);
  84. int(x^2*e^(-x^2),x,0,y);
  85. int(x^(-1)/2*sin(x),x,0,y);
  86. int(sin x + cos x,x,0,y);
  87. int(sin x + sin(-2*x),x,0,y);
  88. int(sin(n*x),x,0,y);
  89. int(heaviside(x-1),x,0,y);
  90. % Tests of transformations defined in defint package.
  91. laplace_transform(1,x);
  92. laplace_transform(x,x);
  93. laplace_transform(x^a/factorial(a),x);
  94. laplace_transform(x,e^(-a*x),x);
  95. laplace_transform(x^k,e^(-a*x),x);
  96. laplace_transform(cosh(a*x),x);
  97. laplace_transform(1/(2*a^3),sinh(a*x)-sin(a*x),x);
  98. laplace_transform(1/(a^2),1-cos(a*x),x);
  99. laplace_transform(1/(b^2-a^2),cos(a*x)-cos(b*x),x);
  100. laplace_transform(besselj(0,2*sqrt(k*x)),x);
  101. laplace_transform(Heaviside(x-1),x);
  102. laplace_transform(1/x,sin(k*x),x);
  103. laplace_transform(1/(k*sqrt(pi)),e^(-x^2/(4*k^2)),x);
  104. laplace_transform(1/k,e^(-k^2/(4*x)),x);
  105. laplace_transform(2/(sqrt(pi*x)),besselk(0,2*sqrt(2*k*x)),x);
  106. hankel_transform(x,x);
  107. Y_transform(x,x);
  108. K_transform(x,x);
  109. struveh_transform(x,x);
  110. fourier_sin(e^(-x),x);
  111. fourier_sin(sqrt(x),e^(-1/2*x),x);
  112. fourier_sin(1/x,e^(-a*x),x);
  113. fourier_sin(x^k,x);
  114. fourier_sin(1/(b-a),(e^(-a*x)-e^(-b*x)),x);
  115. fourier_sin(besselj(0,a*x),x);
  116. fourier_sin(1/sqrt(pi*x),cos(2*sqrt(k*x)),x);
  117. fourier_sin(1/(k*sqrt(pi)),e^(-x^2/(4*k^2)),x);
  118. fourier_cos(e^(-1/2x),x);
  119. fourier_cos(x,e^(-x),x);
  120. fourier_cos(x,e^(-1/2*x^2),x);
  121. fourier_cos(2*x^2,e^(-1/2x),x);
  122. fourier_cos(x,e^(-a*x),x);
  123. fourier_cos(x^n,e^(-a*x),x);
  124. fourier_cos(1/x,sin(k*x),x);
  125. fourier_cos(1/sqrt(pi*x),cos(2*sqrt(k*x)),x);
  126. fourier_cos(1/(k*sqrt(pi)),e^(-x^2/(4*k^2)),x);
  127. fourier_cos(1/(pi*x),sin(2*k*sqrt(x)),x);
  128. fourier_cos(1/(sqrt(pi*x)),e^(-2*k*sqrt(x)),x);
  129. laplace_transform(x^n/factorial(n)*e^(-a*x),x);
  130. laplace_transform(1/(2*a^2)*(cosh(a*x)-cos(a*x)),x);
  131. laplace_transform(k*a^k/x*besselj(k,a*x),x);
  132. fourier_sin(1/x*e^(-3*x),x);
  133. fourier_sin(1/(pi*x)*sin(2*k*sqrt(x)),x);
  134. fourier_cos(x^n*e^(-a*x),x);
  135. fourier_cos(1/(k*sqrt(pi))*e^(-x^2/(4*k^2)),x);
  136. end;