residue.tst 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. % test file for residue package
  2. residue(x/(x^2-2),x,sqrt(2));
  3. poleorder(x/(x^2-2),x,sqrt(2));
  4. residue(sin(x)/(x^2-2),x,sqrt(2));
  5. poleorder(sin(x)/(x^2-2),x,sqrt(2));
  6. residue(1/(x-1)^m/(x-2)^2,x,2);
  7. poleorder(1/(x-1)/(x-2)^2,x,2);
  8. residue(sin(x)/x^2,x,0);
  9. poleorder(sin(x)/x^2,x,0);
  10. residue((1+x^2)/(1-x^2),x,1);
  11. poleorder((1+x^2)/(1-x^2),x,1);
  12. residue((1+x^2)/(1-x^2),x,-1);
  13. poleorder((1+x^2)/(1-x^2),x,-1);
  14. residue(tan(x),x,pi/2);
  15. poleorder(tan(x),x,pi/2);
  16. residue((x^n-y^n)/(x-y),x,y);
  17. poleorder((x^n-y^n)/(x-y),x,y);
  18. residue((x^n-y^n)/(x-y)^2,x,y);
  19. poleorder((x^n-y^n)/(x-y)^2,x,y);
  20. residue(tan(x)/sec(x-pi/2)+1/cos(x),x,pi/2);
  21. poleorder(tan(x)/sec(x-pi/2)+1/cos(x),x,pi/2);
  22. for k:=1:2 sum residue((a+b*x+c*x^2)/(d+e*x+f*x^2),x,
  23. part(part(solve(d+e*x+f*x^2,x),k),2));
  24. residue(sin(x)/x^6,x,0);
  25. residue((1-cos(x))/x^5,x,0);
  26. residue(exp(1/x),x,0);
  27. % not implemented
  28. residue((A*x+B*x^2+c)/(D*x+E),x,-E/D);
  29. residue(tan(x),x,pi/2);
  30. residue(sec(x),x,pi/2);
  31. residue(factorial(x),x,0);
  32. % ***** not yet implemented
  33. residue(x^3/sin(1/x)^2,x,infinity);
  34. poleorder(x^3/sin(1/x)^2,x,infinity);
  35. residue(x^3*sin(1/x)^2,x,infinity);
  36. poleorder(x^3*sin(1/x)^2,x,infinity);
  37. end;