lie.tst 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. % test file for the Lie package
  2. % 1. n-dimensional Lie algebras with dimL1=1
  3. % n=6
  4. array lienstrucin(6,6,6)$
  5. lienstrucin(1,2,2):=lienstrucin(1,2,6):=lienstrucin(1,5,2):=-1$
  6. lienstrucin(1,5,6):=lienstrucin(2,5,3):=lienstrucin(2,5,5):=-1$
  7. lienstrucin(1,2,3):=lienstrucin(1,2,5):=lienstrucin(1,5,3):=1$
  8. lienstrucin(1,5,5):=lienstrucin(2,5,2):=lienstrucin(2,5,6):=1$
  9. liendimcom1(6);
  10. % transformation matrix
  11. lientrans;
  12. clear lienstrucin$
  13. % n=8
  14. array lienstrucin(8,8,8)$
  15. lienstrucin(1,2,2):=lienstrucin(1,5,2):=lienstrucin(2,4,3):=1$
  16. lienstrucin(2,4,5):=lienstrucin(4,5,2):=1$
  17. lienstrucin(1,2,3):=lienstrucin(1,2,5):=lienstrucin(1,5,3):=-1$
  18. lienstrucin(1,5,5):=lienstrucin(2,4,2):=lienstrucin(4,5,3):=-1$
  19. lienstrucin(4,5,5):=-1$
  20. lienstrucin(1,2,6):=lienstrucin(1,5,6):=lienstrucin(4,5,6):=5$
  21. lienstrucin(2,4,6):=-5$
  22. liendimcom1(8);
  23. % same with verbose output
  24. on tr_lie$
  25. liendimcom1(8);
  26. clear lienstrucin$
  27. off tr_lie$
  28. % 2. 4-dimensional Lie algebras
  29. % Korteweg-de Vries Equation: u_t+u_{xxx}+uu_x=0
  30. % symmetry algebra spanned by four vector fields:
  31. % v_1=d_x, v_2=d_t, v_3=td_x+d_u, v_4=xd_x+3td_t-2ud_u
  32. array liestrin(4,4,4)$
  33. liestrin(1,4,1):=liestrin(2,3,1):=1$
  34. liestrin(2,4,2):=3$
  35. liestrin(3,4,3):=-2$
  36. lieclass(4);
  37. clear liestrin$
  38. % dimL1=3, dimL2=3
  39. array liestrin(4,4,4)$
  40. liestrin(1,2,1):=-6$liestrin(1,2,3):=-2$liestrin(1,2,4):=6$
  41. liestrin(1,3,1):=-1$liestrin(1,3,2):=1$liestrin(1,3,4):=1$
  42. liestrin(2,3,1):=-3$liestrin(2,3,4):=2$
  43. liestrin(2,4,1):=6$liestrin(2,4,3):=2$liestrin(2,4,4):=-6$
  44. liestrin(3,4,1):=1$liestrin(3,4,2):=-1$liestrin(3,4,4):=-1$
  45. lieclass(4);
  46. % same with verbose output
  47. on tr_lie$
  48. lieclass(4);
  49. % transformation matrix
  50. liemat;
  51. clear liestrin$
  52. off tr_lie$
  53. end$