algint.tst 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. COMMENT
  2. THE REDUCE INTEGRATION TEST PACKAGE
  3. Edited By
  4. Anthony C. Hearn
  5. The RAND Corporation
  6. This file is designed to provide a set of representative tests of the
  7. Reduce integration package. Not all examples go through, even when an
  8. integral exists, since some of the arguments are outside the domain of
  9. applicability of the current package. However, future improvements to
  10. the package will result in more closed-form evaluations in later
  11. releases. We would appreciate any additional contributions to this test
  12. file either because they illustrate some feature (good or bad) of the
  13. current package, or suggest domains which future versions should handle.
  14. Any suggestions for improved organization of this test file (e.g., in a
  15. way which corresponds more directly to the organization of a standard
  16. integration table book such as Gradshteyn and Ryznik) are welcome.
  17. Acknowledgments:
  18. The examples in this file have been contributed by the following.
  19. Any omissions to this list should be reported to the Editor.
  20. David M. Dahm
  21. James H. Davenport
  22. John P. Fitch
  23. Steven Harrington
  24. Anthony C. Hearn
  25. K. Siegfried Koelbig
  26. Ernst Krupnikov
  27. Arthur C. Norman
  28. Herbert Stoyan
  29. ;
  30. Comment we first set up a suitable testing functions;
  31. fluid '(gcknt!*);
  32. global '(faillist!* gcnumber!* inittime number!-of!-integrals
  33. unintlist!*);
  34. symbolic operator time;
  35. symbolic procedure initialize!-integral!-test;
  36. begin
  37. faillist!* := unintlist!* := nil;
  38. number!-of!-integrals := 0;
  39. gcnumber!* := gcknt!*;
  40. inittime := time()
  41. end;
  42. symbolic procedure summarize!-integral!-test;
  43. begin scalar totaltime;
  44. totaltime := time()-inittime;
  45. prin2t
  46. " ***** SUMMARY OF INTEGRAL TESTS *****";
  47. terpri();
  48. prin2 "Number of integrals tested: ";
  49. prin2t number!-of!-integrals;
  50. terpri();
  51. prin2 "Total time taken: ";
  52. prin2 totaltime;
  53. prin2t " ms";
  54. terpri();
  55. if gcnumber!*
  56. then <<prin2 "Number of garbage collections: ";
  57. prin2t (gcknt!* - gcnumber!*);
  58. terpri()>>;
  59. prin2 "Number of incorrect integrals: ";
  60. prin2t length faillist!*;
  61. terpri();
  62. prin2 "Number of unevaluated integrals: ";
  63. prin2t length unintlist!*;
  64. terpri();
  65. if faillist!*
  66. then <<prin2t "Integrands of incorrect integrals are:";
  67. for each x in reverse faillist!* do mathprint car x>>;
  68. if unintlist!*
  69. then <<prin2t "Integrands of unevaluated integrals are:";
  70. terpri();
  71. for each x in reverse unintlist!* do mathprint car x>>
  72. end;
  73. procedure testint(a,b);
  74. begin scalar der,diffce,res,tt;
  75. tt:=time();
  76. symbolic (number!-of!-integrals := number!-of!-integrals + 1);
  77. res:=int(a,b);
  78. % write "time for integral: ",time()-tt," ms";
  79. der := df(res,b);
  80. diffce := der-a;
  81. if diffce neq 0
  82. then begin for all x let cot x=cos x/sin x,
  83. sec x=1/cos x,
  84. sin x**2=1-cos x**2,
  85. tan(x/2)=sin x/(1+cos x),
  86. tan x=sin x/cos x,
  87. tanh x=
  88. (e**(x)-e**(-x))/(e**x+e**(-x)),
  89. coth x= 1/tanh x;
  90. diffce := diffce;
  91. for all x clear cot x,sec x,sin x**2,tan x,tan(x/2),
  92. tanh x,coth x
  93. end;
  94. %hopefully, difference appeared non-zero due to absence of
  95. %above transformations;
  96. if diffce neq 0
  97. then <<on combineexpt; diffce := diffce; off combineexpt>>;
  98. if diffce neq 0
  99. then begin scalar !*reduced;
  100. symbolic(!*reduced := t);
  101. for all x let cos(2x)= 1-2sin x**2, sin x**2=1-cos x**2;
  102. diffce := diffce;
  103. for all x clear cos(2x),sin x**2
  104. end;
  105. if diffce neq 0
  106. then <<write
  107. " ***** DERIVATIVE OF INTEGRAL NOT EQUAL TO INTEGRAND *****";
  108. symbolic(faillist!* := list(a,b,res,der) . faillist!*)>>;
  109. symbolic if smemq('int,res)
  110. then unintlist!* := list(a,b,res) . unintlist!*;
  111. return res
  112. end;
  113. symbolic initialize!-integral!-test();
  114. % References are to Gradshteyn and Ryznik.
  115. testint(1+x+x**2,x);
  116. testint(x**2*(2*x**2+x)**2,x);
  117. testint(x*(x**2+2*x+1),x);
  118. testint(1/x,x); % 2.01 #2;
  119. testint((x+1)**3/(x-1)**4,x);
  120. testint(1/(x*(x-1)*(x+1)**2),x);
  121. testint((a*x+b)/((x-p)*(x-q)),x);
  122. testint(1/(a*x**2+b*x+c),x);
  123. testint((a*x+b)/(1+x**2),x);
  124. testint(1/(x**2-2*x+3),x);
  125. % Rational function examples from Hardy, Pure Mathematics, p 253 et seq.
  126. testint(1/((x-1)*(x**2+1))**2,x);
  127. testint(x/((x-a)*(x-b)*(x-c)),x);
  128. testint(x/((x**2+a**2)*(x**2+b**2)),x);
  129. testint(x**2/((x**2+a**2)*(x**2+b**2)),x);
  130. testint(x/((x-1)*(x**2+1)),x);
  131. testint(x/(1+x**3),x);
  132. testint(x**3/((x-1)**2*(x**3+1)),x);
  133. testint(1/(1+x**4),x);
  134. testint(x**2/(1+x**4),x);
  135. testint(1/(1+x**2+x**4),x);
  136. % Examples involving a+b*x.
  137. z := a+b*x;
  138. testint(z**p,x);
  139. testint(x*z**p,x);
  140. testint(x**2*z**p,x);
  141. testint(1/z,x);
  142. testint(1/z**2,x);
  143. testint(x/z,x);
  144. testint(x**2/z,x);
  145. testint(1/(x*z),x);
  146. testint(1/(x**2*z),x);
  147. testint(1/(x*z)**2,x);
  148. testint(1/(c**2+x**2),x);
  149. testint(1/(c**2-x**2),x);
  150. % More complicated rational function examples, mostly contributed
  151. % by David M. Dahm, who also developed the code to integrate them.
  152. testint(1/(2*x**3-1),x);
  153. testint(1/(x**3-2),x);
  154. testint(1/(a*x**3-b),x);
  155. testint(1/(x**4-2),x);
  156. testint(1/(5*x**4-1),x);
  157. testint(1/(3*x**4+7),x);
  158. testint(1/(x**4+3*x**2-1),x);
  159. testint(1/(x**4-3*x**2-1),x);
  160. testint(1/(x**4-3*x**2+1),x);
  161. testint(1/(x**4-4*x**2+1),x);
  162. testint(1/(x**4+4*x**2+1),x);
  163. testint(1/(x**4+x**2+2),x);
  164. testint(1/(x**4-x**2+2),x);
  165. testint(1/(x**6-1),x);
  166. testint(1/(x**6-2),x);
  167. testint(1/(x**6+2),x);
  168. testint(1/(x**8+1),x);
  169. testint(1/(x**8-1),x);
  170. testint(1/(x**8-x**4+1),x);
  171. testint(x**7/(x**12+1),x);
  172. % Examples involving logarithms.
  173. testint(log x,x);
  174. testint(x*log x,x);
  175. testint(x**2*log x,x);
  176. testint(x**p*log x,x);
  177. testint((log x)**2,x);
  178. testint(x**9*log x**11,x);
  179. testint(log x**2/x,x);
  180. testint(1/log x,x);
  181. testint(1/log(x+1),x);
  182. testint(1/(x*log x),x);
  183. testint(1/(x*log x)**2,x);
  184. testint((log x)**p/x,x);
  185. testint(log x *(a*x+b),x);
  186. testint((a*x+b)**2*log x,x);
  187. testint(log x/(a*x+b)**2,x);
  188. testint(x*log (a*x+b),x);
  189. testint(x**2*log(a*x+b),x);
  190. testint(log(x**2+a**2),x);
  191. testint(x*log(x**2+a**2),x);
  192. testint(x**2*log(x**2+a**2),x);
  193. testint(x**4*log(x**2+a**2),x);
  194. testint(log(x**2-a**2),x);
  195. testint(log(log(log(log(x)))),x);
  196. % Examples involving circular functions.
  197. testint(sin x,x); % 2.01 #5;
  198. testint(cos x,x); % #6;
  199. testint(tan x,x); % #11;
  200. testint(1/tan(x),x); % 2.01 #12;
  201. testint(1/(1+tan(x))**2,x);
  202. testint(1/cos x,x);
  203. testint(1/sin x,x);
  204. testint(sin x**2,x);
  205. testint(x**3*sin(x**2),x);
  206. testint(sin x**3,x);
  207. testint(sin x**p,x);
  208. testint((sin x**2+1)**2*cos x,x);
  209. testint(cos x**2,x);
  210. testint(cos x**3,x);
  211. testint(sin(a*x+b),x);
  212. testint(1/cos x**2,x);
  213. testint(sin x*sin(2*x),x);
  214. testint(x*sin x,x);
  215. testint(x**2*sin x,x);
  216. testint(x*sin x**2,x);
  217. testint(x**2*sin x**2,x);
  218. testint(x*sin x**3,x);
  219. testint(x*cos x,x);
  220. testint(x**2*cos x,x);
  221. testint(x*cos x**2,x);
  222. testint(x**2*cos x**2,x);
  223. testint(x*cos x**3,x);
  224. testint(sin x/x,x);
  225. testint(cos x/x,x);
  226. testint(sin x/x**2,x);
  227. testint(sin x**2/x,x);
  228. testint(tan x**3,x);
  229. % z := a+b*x;
  230. testint(sin z,x);
  231. testint(cos z,x);
  232. testint(tan z,x);
  233. testint(1/tan z,x);
  234. testint(1/sin z,x);
  235. testint(1/cos z,x);
  236. testint(sin z**2,x);
  237. testint(sin z**3,x);
  238. testint(cos z**2,x);
  239. testint(cos z**3,x);
  240. testint(1/cos z**2,x);
  241. testint(1/(1+cos x),x);
  242. testint(1/(1-cos x),x);
  243. testint(1/(1+sin x),x);
  244. testint(1/(1-sin x),x);
  245. testint(1/(a+b*sin x),x);
  246. testint(1/(a+b*sin x+cos x),x);
  247. testint(x**2*sin z**2,x);
  248. testint(cos x*cos(2*x),x);
  249. testint(x**2*cos z**2,x);
  250. testint(1/tan x**3,x);
  251. testint(x**3*tan(x)**4,x);
  252. testint(x**3*tan(x)**6,x);
  253. testint(x*tan(x)**2,x);
  254. testint(sin(2*x)*cos(3*x),x);
  255. testint(sin x**2*cos x**2,x);
  256. testint(1/(sin x**2*cos x**2),x);
  257. testint(d**x*sin x,x);
  258. testint(d**x*cos x,x);
  259. testint(x*d**x*sin x,x);
  260. testint(x*d**x*cos x,x);
  261. testint(x**2*d**x*sin x,x);
  262. testint(x**2*d**x*cos x,x);
  263. testint(x**3*d**x*sin x,x);
  264. testint(x**3*d**x*cos x,x);
  265. testint(sin x*sin(2*x)*sin(3*x),x);
  266. testint(cos x*cos(2*x)*cos(3*x),x);
  267. testint(sin(x*kx)**3*x**2,x);
  268. testint(x*cos(xi/sin(x))*cos(x)/sin(x)**2,x);
  269. % Mixed angles and half angles.
  270. int(cos(x)/(sin(x)*tan(x/2)),x);
  271. % This integral produces a messy result because the code for
  272. % converting half angle tans to sin and cos is not effective enough.
  273. testint(sin(a*x)/(b+c*sin(a*x))**2,x);
  274. % Examples involving logarithms and circular functions.
  275. testint(sin log x,x);
  276. testint(cos log x,x);
  277. % Examples involving exponentials.
  278. testint(e**x,x); % 2.01 #3;
  279. testint(a**x,x); % 2.01 #4;
  280. testint(e**(a*x),x);
  281. testint(e**(a*x)/x,x);
  282. testint(1/(a+b*e**(m*x)),x);
  283. testint(e**(2*x)/(1+e**x),x);
  284. testint(e**(2*x)*e**(a*x),x);
  285. testint(1/(a*e**(m*x)+b*e**(-m*x)),x);
  286. testint(x*e**(a*x),x);
  287. testint(x**20*e**x,x);
  288. testint(a**x/b**x,x);
  289. testint(a**x*b**x,x);
  290. testint(a**x/x**2,x);
  291. testint(x*a**x/(1+b*x)**2,x);
  292. testint(x*e**(a*x)/(1+a*x)**2,x);
  293. testint(x*k**(x**2),x);
  294. testint(e**(x**2),x);
  295. testint(x*e**(x**2),x);
  296. testint((x+1)*e**(1/x)/x**4,x);
  297. testint((2*x**3+x)*(e**(x**2))**2*e**(1-x*e**(x**2))/(1-x*e**(x**2))**2,
  298. x);
  299. testint(e**(e**(e**(e**x))),x);
  300. % Examples involving exponentials and logarithms.
  301. testint(e**x*log x,x);
  302. testint(x*e**x*log x,x);
  303. testint(e**(2*x)*log(e**x),x);
  304. % Examples involving square roots.
  305. testint(sqrt(2)*x**2 + 2*x,x);
  306. testint(log x/sqrt(a*x+b),x);
  307. u:=sqrt(a+b*x);
  308. v:=sqrt(c+d*x);
  309. testint(u*v,x);
  310. testint(u,x);
  311. testint(x*u,x);
  312. testint(x**2*u,x);
  313. testint(u/x,x);
  314. testint(u/x**2,x);
  315. testint(1/u,x);
  316. testint(x/u,x);
  317. testint(x**2/u,x);
  318. testint(1/(x*u),x);
  319. testint(1/(x**2*u),x);
  320. testint(u**p,x);
  321. testint(x*u**p,x);
  322. testint(atan((-sqrt(2)+2*x)/sqrt(2)),x);
  323. testint(1/sqrt(x**2-1),x);
  324. testint(sqrt(x+1)*sqrt x,x);
  325. testint(sin(sqrt x),x);
  326. testint(x*(1-x^2)^(-9/4),x);
  327. testint(x/sqrt(1-x^4),x);
  328. testint(1/(x*sqrt(1+x^4)),x);
  329. testint(x/sqrt(1+x^2+x^4),x);
  330. testint(1/(x*sqrt(x^2-1-x^4)),x);
  331. % Examples from James Davenport's thesis:
  332. testint(1/sqrt(x**2-1)+10/sqrt(x**2-4),x); % p. 173
  333. testint(sqrt(x+sqrt(x**2+a**2))/x,x);
  334. % Examples generated by differentiating various functions.
  335. testint(df(sqrt(1+x**2)/(1-x),x),x);
  336. testint(df(log(x+sqrt(1+x**2)),x),x);
  337. testint(df(sqrt(x)+sqrt(x+1)+sqrt(x+2),x),x);
  338. testint(df(sqrt(x**5-2*x+1)-sqrt(x**3+1),x),x);
  339. % Another such example from James Davenport's thesis (p. 146).
  340. % It contains a point of order 3, which is found by use of Mazur's
  341. % bound on the torsion of elliptic curves over the rationals;
  342. testint(df(log(1+sqrt(x**3+1)),x),x);
  343. % Examples quoted by Joel Moses:
  344. testint(1/sqrt(2*h*r**2-alpha**2),r);
  345. testint(1/(r*sqrt(2*h*r**2-alpha**2-epsilon**2)),r);
  346. testint(1/(r*sqrt(2*h*r**2-alpha**2-2*k*r)),r);
  347. testint(1/(r*sqrt(2*h*r**2-alpha**2-epsilon**2-2*k*r)),r);
  348. testint(r/sqrt(2*e*r**2-alpha**2),r);
  349. testint(r/sqrt(2*e*r**2-alpha**2-epsilon**2),r);
  350. testint(r/sqrt(2*e*r**2-alpha**2-2*k*r**4),r);
  351. testint(r/sqrt(2*e*r**2-alpha**2-2*k*r),r);
  352. testint(1/(r*sqrt(2*h*r**2-alpha**2-2*k*r**4)),r);
  353. testint(1/(r*sqrt(2*h*r**2-alpha**2-epsilon**2-2*k*r**4)),r);
  354. Comment many of these integrals used to require Steve Harrington's
  355. code to evaluate. They originated in Novosibirsk as examples
  356. of using Analytik. There are still a few examples that could
  357. be evaluated using better heuristics;
  358. testint(a*sin(3*x+5)**2*cos(3*x+5),x);
  359. testint(log(x**2)/x**3,x);
  360. testint(x*sin(x+a),x);
  361. testint((log(x)*(1-x)-1)/(e**x*log(x)**2),x);
  362. testint(x**3*(a*x**2+b)**(-1),x);
  363. testint(x**(1/2)*(x+1)**(-7/2),x);
  364. testint(x**(-1)*(x+1)**(-1),x);
  365. testint(x**(-1/2)*(2*x-1)**(-1),x);
  366. testint((x**2+1)*x**(1/2),x);
  367. testint(x**(-1)*(x-a)**(1/3),x);
  368. testint(x*sinh(x),x);
  369. testint(x*cosh(x),x);
  370. testint(sinh(2*x)/cosh(2*x),x);
  371. testint((i*eps*sinh x-1)/(eps*i*cosh x+i*a-x),x);
  372. testint(sin(2*x+3)*cos(x)**2,x);
  373. testint(x*atan(x),x);
  374. testint(x*acot(x),x);
  375. testint(x*log(x**2+a),x);
  376. testint(sin(x+a)*cos(x),x);
  377. testint(cos(x+a)*sin(x),x);
  378. testint((1+sin(x))**(1/2),x);
  379. testint((1-sin(x))**(1/2),x);
  380. testint((1+cos(x))**(1/2),x);
  381. testint((1-cos(x))**(1/2),x);
  382. testint(1/(x**(1/2)-(x-1)**(1/2)),x);
  383. testint(1/(1-(x+1)**(1/2)),x);
  384. testint(x/(x**4+36)**(1/2),x);
  385. testint(1/(x**(1/3)+x**(1/2)),x);
  386. testint(log(2+3*x**2),x);
  387. testint(cot(x),x);
  388. testint(cot x**4,x);
  389. testint(tanh(x),x);
  390. testint(coth(x),x);
  391. testint(b**x,x);
  392. testint((x**4+x**(-4)+2)**(1/2),x);
  393. testint((2*x+1)/(3*x+2),x);
  394. testint(x*log(x+(x**2+1)**(1/2)),x);
  395. testint(x*(e**x*sin(x)+1)**2,x);
  396. testint(x*e**x*cos(x),x);
  397. Comment the following set came from Herbert Stoyan;
  398. testint(1/(x-3)**4,x);
  399. testint(x/(x**3-1),x);
  400. testint(x/(x**4-1),x);
  401. testint(log(x)*(x**3+1)/(x**4+2),x);
  402. testint(log(x)+log(x+1)+log(x+2),x);
  403. testint(1/(x**3+5),x);
  404. testint(1/sqrt(1+x**2),x);
  405. testint(sqrt(x**2+3),x);
  406. testint(x/(x+1)**2,x);
  407. COMMENT The following integrals were used among others as a test of
  408. Moses' SIN program;
  409. testint(asin x,x);
  410. testint(x**2*asin x,x);
  411. testint(sec x**2/(1+sec x**2-3*tan x),x);
  412. testint(1/sec x**2,x);
  413. testint((5*x**2-3*x-2)/(x**2*(x-2)),x);
  414. testint(1/(4*x**2+9)**(1/2),x);
  415. testint((x**2+4)**(-1/2),x);
  416. testint(1/(9*x**2-12*x+10),x);
  417. testint(1/(x**8-2*x**7+2*x**6-2*x**5+x**4),x);
  418. testint((a*x**3+b*x**2+c*x+d)/((x+1)*x*(x-3)),x);
  419. testint(1/(2-log(x**2+1))**5,x);
  420. % The next integral appeared in Risch's 1968 paper.
  421. testint(2*x*e**(x**2)*log(x)+e**(x**2)/x+(log(x)-2)/(log(x)**2+x)**2+
  422. ((2/x)*log(x)+(1/x)+1)/(log(x)**2+x),x);
  423. % The following integral would not evaluate in REDUCE 3.3.
  424. testint(exp(x*ze+x/2)*sin(pi*ze)**4*x**4,ze);
  425. % This one evaluates:
  426. testint(erf(x),x);
  427. % So why not this one?
  428. testint(erf(x+a),x);
  429. Comment some interesting integrals of algebraic functions;
  430. % The Chebyshev integral.
  431. testint((2*x**6+4*x**5+7*x**4-3*x**3-x*x-8*x-8)/
  432. ((2*x**2-1)**2*sqrt(x**4+4*x**3+2*x**2+1)),x);
  433. % This integral came from Dr. G.S. Joyce of Imperial College London.
  434. testint((1+2*y)*sqrt(1-5*y-5*y**2)/(y*(1+y)*(2+y)*sqrt(1-y-y**2)),y);
  435. % This one has a simple result.
  436. testint(x*(sqrt(x**2-1)*x**2-4*sqrt(x**2-1)+sqrt(x**2-4)*x**2
  437. -sqrt(x**2-4))/((1+sqrt(x**2-4)+sqrt(x**2-1))*(x**4-5*x**2+4)),x);
  438. % This used to reveal bugs in the integrator which have been fixed.
  439. % Since it takes a long time and doesn't have a closed form result,
  440. % it has been commented out.
  441. % testint(sqrt(-4*sqrt(2)+9)*x-sqrt(x**4+2*x**2+4*x+1)*sqrt(2),x);
  442. Comment here is an example of using the integrator with pattern
  443. matching;
  444. for all m,n let int(k1**m*log(k1)**n/(p**2-k1**2),k1)=foo(m,n),
  445. int(k1*log(k1)**n/(p**2-k1**2),k1)=foo(1,n),
  446. int(k1**m*log(k1)/(p**2-k1**2),k1)=foo(m,1),
  447. int(k1*log(k1)/(p**2-k1**2),k1)=foo(1,1),
  448. int(log(k1)**n/(k1*(p**2-k1**2)),k1)=foo(-1,n);
  449. int(k1**2*log(k1)/(p**2-k1**2),k1);
  450. COMMENT It is interesting to see how much of this one can be done;
  451. let f1s= (12*log(s/mc**2)*s**2*pi**2*mc**3*(-8*s-12*mc**2+3*mc)
  452. + pi**2*(12*s**4*mc+3*s**4+176*s**3*mc**3-24*s**3*mc**2
  453. -144*s**2*mc**5-48*s*mc**7+24*s*mc**6+4*mc**9-3*mc**8))
  454. /(384*e**(s/y)*s**2);
  455. int(f1s,s);
  456. factor ei,log;
  457. ws;
  458. Comment the following integrals reveal deficiencies in the current
  459. integrator;
  460. %high degree denominator;
  461. %testint(1/(2-log(x**2+1))**5,x);
  462. %this example should evaluate;
  463. testint(sin(2*x)/cos(x),x);
  464. %this example, which appeared in Tobey's thesis, needs factorization
  465. %over algebraic fields. It currently gives an ugly answer and so has
  466. %been suppressed;
  467. % testint((7*x**13+10*x**8+4*x**7-7*x**6-4*x**3-4*x**2+3*x+3)/
  468. % (x**14-2*x**8-2*x**7-2*x**4-4*x**3-x**2+2*x+1),x);
  469. symbolic summarize!-integral!-test();
  470. end;