ratint.tst 849 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. exp1:=441*x^7+780*x^6-2861*x^5+4085*x^4+7695*x^3+3713*x^2-43253*x+24500;
  2. exp2:=9*x^6+6*x^5-65*x^4+20*x^3+135*x^2-154*x+49;
  3. aa:=7*x^13+10*x^8+4*x^7-7*x^6-4*x^3-4*x^2+3*x+3;
  4. bb:=x^14-2*x^8-2*x^7-2*x^4-4*x^3-x^2+2*x+1;
  5. % example 2.14
  6. a:=48*x^3-84*x^2+42*x-36;
  7. b:=-4*x^3-10*x^2+44*x-30;
  8. % square free ex
  9. c:=x^8-2*x^6+2*x^2-1;
  10. %square_free(a,x);
  11. %eval_sq_free(ws,x);
  12. % hr example
  13. pu:=441*x^7+780*x^6-2861*x^5+4085*x^4+7695*x^3+3713*x^2-43253*x+24500;
  14. qu:=9*x^6+6*x^5-65*x^4+20*x^3+135*x^2-154*x+49;
  15. %makemon(p,q,x);
  16. %pf(pu/qu,x);
  17. %trst hr;
  18. k:=36*x^6+126*x^5+183*x^4+(13807/6)*x^3-407*x^2-(3242/5)*x+(3044/15);
  19. l:=(x^2+(7/6)*x+(1/3))^2*(x-(2/5))^3;
  20. %trst hr;
  21. ratint(k,l,x);
  22. ratint(exp1,exp2,x);
  23. ratint(1,x^2,x);
  24. ratint(1,x^2+1,x);
  25. ratint(1,x^3+x+1,x);
  26. ratint(1,x^5+1,x);
  27. end;