defintb.red 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. module defintb;
  2. algebraic ;
  3. defint_choose_data :=
  4. { defint_choose(1/e**(~x),~var) => f1(1,x),
  5. defint_choose(sin(~x),~var) => f1(2,x),
  6. defint_choose(-sin(~x),~var) => f1(25,x),
  7. defint_choose(cos(~x),~var) => f1(3,x),
  8. defint_choose(acos(~x)*Heaviside (1-(~x)),~var) => f1(7,x),
  9. defint_choose(acos(1/~x)*Heaviside ((~x)-1),~var) => f1(8,x),
  10. defint_choose(atan(~x),~var) => f1(9,x),
  11. defint_choose(mysinh(~x),~var) => f1(10,x),
  12. defint_choose((e^(2*~x)-1)/(2*e^~x),~var) => f1(10,x), %sinh(x)
  13. defint_choose((e^(~y)-1)/(2*e^~x),~var) => f1(10,x) %sinh(nx)
  14. when y = 2*x,
  15. defint_choose(mycosh(~x),~var)=> f1(11,x),
  16. defint_choose((e^(2*~x)+1)/(2*e^~x),~var) => f1(11,x), %cosh(x)
  17. defint_choose((e^(~y)+1)/(2*e^~x),~var) => f1(11,x) %cosh(nx)
  18. when y = 2*x,
  19. defint_choose(Heaviside (1-(~x)),~var) => f1(30,x),
  20. defint_choose(Heaviside ((~p-~x)/~p),~var) => f1(30,x/p),
  21. defint_choose(Heaviside ((~x)-1),~var) => f1(31,x),
  22. defint_choose(log(~x)*Heaviside (1-(~x)),~var) => f1(32,x),
  23. defint_choose(log(~x)*Heaviside ((~x)-1),~var) => f1(33,x),
  24. defint_choose((log(~x))^(~n)*Heaviside (1-(~x)),~var) => f31(n,x),
  25. defint_choose((log(~x))^(~n)*Heaviside ((~x)-1),~var) => f32(n,x),
  26. defint_choose(log(1+~x),~var) => f1(34,x),
  27. defint_choose(log((~x+1)/~x),~var) => f1(35,x),
  28. defint_choose(ei(-~x),~var) => f1(36,x),
  29. defint_choose(si(~x),~var) => f1(37,x),
  30. defint_choose(ci(~x),~var) => f1(38,x),
  31. defint_choose(shi(~x),~var) => f1(39,x),
  32. defint_choose(erf(~x),~var) => f1(41,x),
  33. defint_choose(-erf(~x)+1,~var) => f1(42,x), %erfc(x)
  34. defint_choose(fresnel_s(~x),~var) => f1(43,x),
  35. defint_choose(fresnel_c(~x),~var) => f1(44,x),
  36. defint_choose(gamma(~n,~x),~var) => f1(45,x,n),
  37. defint_choose(besselj(~n,~x),~var) => f1(50,x,n),
  38. defint_choose(bessely(~n,~x),~var) => f1(51,x,n),
  39. defint_choose(besseli(~n,~x),~var) => f1(52,x,n),
  40. defint_choose(besselk(~n,~x),~var) => f1(53,x,n),
  41. defint_choose(struveh(~n,~x),~var) => f1(54,x,n),
  42. defint_choose(struvel(~n,~x),~var) => f1(55,x,n),
  43. defint_choose(m_legendrep(~n,~x)*Heaviside(1-(~x)),~var) =>
  44. f1(56,x,n),
  45. defint_choose(m_legendrep(~n,1/~x)*Heaviside((~x)-1),~var) =>
  46. f1(57,x,n),
  47. defint_choose((1-(~x))^(-1/2)*m_chebyshevt(~n,~x),~var) =>
  48. f1(58,x,n),
  49. defint_choose(((~x)-1)^(-1/2)*m_chebyshevt(~n,1/~x),~var) =>
  50. f1(59,x,n),
  51. defint_choose((1-(~x))^(1/2)*m_chebyshevu(~n,~x),~var) =>
  52. f1(60,x,n),
  53. defint_choose(((~x)-1)^(1/2)*m_chebyshevu(~n,1/~x),~var) =>
  54. f1(61,x,n),
  55. defint_choose(m_hermitep(~n,~x),~var) => f1(62,x,n),
  56. defint_choose(m_laguerrep(~n,~l,~x),~var) => f1(63,x,n,l),
  57. defint_choose(sqrt(1-~x)*m_gegenbauerp(~n,~l,~x),~var) =>
  58. f1(64,x,n,l),
  59. defint_choose(sqrt(1-~x)*(1-~x)*m_gegenbauerp(~n,~l,~x),~var) =>
  60. f1(64,x,n,l),
  61. defint_choose((~x-1)^~k*sqrt(~x-1)*m_gegenbauerp(~n,~l,~x),~var) =>
  62. f1(64,x,n,l),
  63. defint_choose((~x-1)^~k*sqrt(1-~x)*m_gegenbauerp(~n,~l,~x),~var) =>
  64. f1(64,x,n,l),
  65. defint_choose(-(~x-1)^~k*sqrt(1-~x)*m_gegenbauerp(~n,~l,~x),~var) =>
  66. f1(64,x,n,l),
  67. defint_choose(sqrt(~x-1)*m_gegenbauerp(~n,~l,1/~x),~var) =>
  68. f1(65,x,n,l),
  69. defint_choose(sqrt(~x-1)*(~x-1)*m_gegenbauerp(~n,~l,1/~x),~var) =>
  70. f1(65,x,n,l),
  71. defint_choose(sqrt(~x-1)*(~x-1)^(~k)*m_gegenbauerp(~n,~k,1/~x),~var)=>
  72. f1(65,x,n,l),
  73. defint_choose(-sqrt(~x-1)*(~x-1)^(~k)*m_gegenbauerp(~n,~k,1/~x),~var)
  74. => f1(65,x,n,l),
  75. defint_choose((1-~x)^~r*m_jacobip(~n,~r,~s,~x),~var) =>
  76. f1(66,x,n,r,s),
  77. defint_choose((~x-1)^~r*m_jacobip(~n,~r,~s,1/~x),~var) =>
  78. f1(67,x,n,r,s),
  79. defint_choose(0,~var) => f1(0,0),
  80. defint_choose(~n,~var) => f1(0,n)
  81. when numberp n,
  82. defint_choose(~f,~var) => unknown }; % fallthrough case
  83. let defint_choose_data;
  84. endmodule;
  85. end;