CRACK.TST 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. load_package crackapp; % Needed for these tests.
  2. % Initial load up list
  3. off echo$
  4. lisp(depl!*:=nil)$ % clearing of all dependences
  5. setcrackflags()$
  6. lisp write
  7. "...................................................................",
  8. "......."$
  9. write "An example of the determination of point symmetries for ODEs"$
  10. depend y,x$
  11. de := {df(y,x,2) = (df(y,x)*(2*x*y+x**3) - 4*y**2)/x**4,
  12. y, x}$
  13. mo := {0,nil,nil}$
  14. LIEPDE(de,mo)$
  15. nodepend y,x$
  16. lisp write
  17. "...................................................................",
  18. "......."$
  19. write "An example of the determination of point symmetries for PDEs"$
  20. depend u,x,y$
  21. de := {df(u,x,x)-df(u,y),u,{x,y}}$
  22. mo := {0,nil,nil}$
  23. LIEPDE(de,mo)$
  24. nodepend u,x,y$
  25. lisp write
  26. "...................................................................",
  27. "......."$
  28. write "An example of the determination of first integrals of ODEs"$
  29. depend y,x$
  30. de := {df(y,x,2)=x*df(y,x)**2-2*df(y,x)/x-y**2/x, y, x}$
  31. mo := {0,{},2}$
  32. FIRINT(de,mo)$
  33. nodepend y,x$
  34. lisp write
  35. "...................................................................",
  36. "......."$
  37. write "An example of the determination of a Lagrangian for an ODE "$
  38. depend f,x$
  39. depend y,x$
  40. de := {df(y,x,2) = 6*y**2 + x, y, x}$
  41. mo := {0,{}}$
  42. LAGRAN(de,mo)$
  43. nodepend f,x$
  44. nodepend y,x$
  45. lisp write
  46. "...................................................................",
  47. "......."$
  48. write "An example of the factorization of an ODE " $
  49. depend f,x$
  50. depend y,x$
  51. depend q,x$
  52. de := {df(y,x,2) = df(y,x)**2/y - f*df(y,x) - y*q, y, x}$
  53. mo := {2,{}}$
  54. DECOMP(de,mo)$
  55. nodepend f,x$
  56. nodepend y,x$
  57. nodepend q,x$
  58. end$