xcolor.rlg 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. Tue Apr 15 00:36:12 2008 run on win32
  2. %----------------------------------------------------------------------
  3. % File: xcolor.tst
  4. % Purpose: Tests for xcolor package.
  5. % Author: A.Kryukov
  6. % E-address: kryukov@npi.msu.su
  7. % Vertion: 2.2.1
  8. % Release: Aug. 17, 1994
  9. %----------------------------------------------------------------------
  10. % Revision: 14/03/91 Start
  11. % 17/08/94 C0a,C0b,C0c,C0d
  12. %----------------------------------------------------------------------
  13. %load xcolor$
  14. %in "xcolor.red"$
  15. % on time$
  16. SUdim n$
  17. % Set the order of the SU(n) group, i.e. SU(n).
  18. % n=3 is a default value.
  19. spTT 1/2$
  20. % Set the normalization coefficient A:
  21. % Sp(TiTj) = A*Delta(i,j)
  22. % A=1/2 is a default value.
  23. % QG(inQuark,outQuark,gluon) - quark-gluon vertex.
  24. % G3(gluon1,gluon2,gluon3) - three-gluon vertex.
  25. %----------------------------------------------------------------------
  26. % Run time (ms) without GC, compiled vertion.
  27. %----------------------------------------------------------------------
  28. % Test | SUN3/60 |i386SX-25|DEC APX |HP 735 |
  29. % | |RAM=2M |3000/128MB| |
  30. % | | |R=20MB |R=8MB |
  31. %----------------------------------------------------------------------
  32. % c1 | 323 | 2800 |34 |40 |
  33. % c2 | 102 | 170 |0 |0 |
  34. % c3 | 102 | 160 |0 |10 |
  35. %----------------------------------------------------------------------
  36. % c4a | 323 | 1270 |17 |20 |
  37. % c4b | 51 | 110 |- |10 |
  38. % c4c | 135 | 160 |17 |0 |
  39. %----------------------------------------------------------------------
  40. % c0a | | |17 |20 |
  41. % c0b | | |0 |0 |
  42. % c0c | | |17 |20 |
  43. % c0d | | |17 |0 |
  44. %----------------------------------------------------------------------
  45. % cz | 187 | 990 |0 |10 |
  46. % c0 | 374 | 330 | |20 |
  47. %----------------------------------------------------------------------
  48. % c91 | 255 | 1480 |17 |10 |
  49. % c92 | 323 | 1480 |17 |20 |
  50. % c93 | 2397 | 2970 |68 |130 |
  51. % c94 | 18411 | 35838 |495 |750 |
  52. % c95 | 139009 | 262956 |3485 |5670 |
  53. %----------------------------------------------------------------------
  54. %----------------------------------------------------------------------
  55. % Test 1. See test run in: A.Kryukov & A.Rodionov
  56. % Program "COLOR" for computing the group-theoretical
  57. % weight of Feynman diagrams in non-abelian theories.
  58. % Comp. Phys. Comm., 48(1988), 327-334.
  59. %----------------------------------------------------------------------
  60. %----------------------------------------------------------------------
  61. % 1 4 1 4 1
  62. % c1. --*--<--*-- c2. --<--*--*-- c3. --<--*--<--
  63. % | : : | | : : | | : |
  64. % | : : | | : : | | *4 |
  65. % | : : | | ..:.. | | : : |
  66. % | : : | | : : | | : : |
  67. % --*-->--*-- --*--*-->-- ---*->-*---
  68. % 2 3 2 3 2 3
  69. %----------------------------------------------------------------------
  70. %
  71. % 4 2
  72. % N - 2*N + 1
  73. % C1 := ---------------
  74. % 4*N
  75. %
  76. %
  77. % 2
  78. % - N + 1
  79. % C2 := -----------
  80. % 4*N
  81. %
  82. %
  83. % 2
  84. % N*(N - 1)
  85. % C3 := ------------
  86. % 4
  87. %
  88. %----------------------------------------------------------------------
  89. c1 := QG(e4,e1,e5)*QG(e1,e2,e5)*QG(e2,e3,e6)*QG(e3,e4,e6);
  90. 4 2
  91. n - 2*n + 1
  92. c1 := ---------------
  93. 4*n
  94. c2 := QG(e4,e1,e5)*QG(e1,e2,e6)*QG(e2,e3,e5)*QG(e3,e4,e6);
  95. 2
  96. - n + 1
  97. c2 := -----------
  98. 4*n
  99. c3 := QG(e3,e1,e4)*QG(e1,e2,e5)*QG(e2,e3,e6)*G3(e4,e6,e5);
  100. 2
  101. n*(n - 1)
  102. c3 := ------------
  103. 4
  104. %----------------------------------------------------------------------
  105. %
  106. % c4a. --*--<--*-- c4b. --*--<--*-- c4c. --*--<--*--
  107. % | : : | | : : | | : : |
  108. % | ..*.. | | : : | | *... : |
  109. % | : | | *.....* | | : : : |
  110. % | ..*.. | | : : | | *...:. |
  111. % | : : | | : : | | : : |
  112. % --*-->--*-- --*-->--*-- --*---*->--
  113. %
  114. %----------------------------------------------------------------------
  115. %
  116. % 2 2
  117. % N *(N - 1)
  118. % C4A := -------------
  119. % 8
  120. %
  121. %
  122. % 2 2
  123. % N *(N - 1)
  124. % C4B := -------------
  125. % 8
  126. %
  127. %
  128. % C4C := 0
  129. %
  130. %----------------------------------------------------------------------
  131. c4a := QG(e4,e1,e7)*QG(e1,e2,e9)*QG(e2,e3,e8)*QG(e3,e4,e5)
  132. *G3(e5,e6,e7)*G3(e6,e8,e9);
  133. 2 2
  134. n *(n - 1)
  135. c4a := -------------
  136. 8
  137. c4b := c4a;
  138. 2 2
  139. n *(n - 1)
  140. c4b := -------------
  141. 8
  142. c4c := QG(e4,e1,e7)*QG(e1,e2,e9)*QG(e2,e3,e5)*QG(e3,e4,e8)
  143. *G3(e5,e6,e7)*G3(e6,e8,e9);
  144. c4c := 0
  145. %----------------------------------------------------------------------
  146. % Test 2.
  147. %----------------------------------------------------------------------
  148. % ......1......
  149. % : :
  150. % : 3 6 :
  151. % 1*.3..*-6-*..4.*2
  152. % : | | : = N^2*(N^2-1)/8
  153. % C0a: 2 V | 5
  154. % : | | :
  155. % : 7 9 :
  156. % : | | :
  157. % ....*-8-*....
  158. % 4 5
  159. %
  160. % ......1......
  161. % : :
  162. % : 3 6 :
  163. % 1*.3..*-6-*..4.*2
  164. % : | | : = 0
  165. % C0b: 2 V | 5
  166. % : | | :
  167. % : \ / :
  168. % : X :
  169. % : / \
  170. % : 7 9 :
  171. % : | | :
  172. % ....*-8-*....
  173. % 4 5
  174. %
  175. %-------------------------------------------------------
  176. C0a := g3(e1,e3,e2)*g3(e1,e5,e4)
  177. *qg(e6,e7,e3)*qg(e7,e8,e2)*qg(e8,e9,e5)*qg(e9,e6,e4);
  178. 2 2
  179. n *(n - 1)
  180. c0a := -------------
  181. 8
  182. C0b := g3(e1,e3,e2)*g3(e1,e5,e4)
  183. *qg(e6,e9,e3)*qg(e9,e8,e5)*qg(e8,e7,e2)*qg(e7,e6,e4);
  184. c0b := 0
  185. %--------------------------------------------------------
  186. %
  187. % ......1......
  188. % : :
  189. % : 3 :
  190. % 1*.3..*-6-- -*2
  191. % : | \ / | = (N^2-1)/8
  192. % C0c: 2 V X V
  193. % : | / \ 4
  194. % : | | -*6
  195. % : 7 9 :
  196. % : | | 5
  197. % ....*-8-*....
  198. % 4 5
  199. %
  200. % ......1......
  201. % : :
  202. % : 3 :
  203. % 1*.3..*-6------*2
  204. % : | | = -(N^2-1)^2/8
  205. % C0d: 2 V A
  206. % : | 4
  207. % : | |----*6
  208. % : 7 9 :
  209. % : | | 5
  210. % ....*-8-*....
  211. % 4 5
  212. %
  213. %----------------------------------------------------------------------
  214. C0c := g3(e1,e3,e2)*qg(e9,e4,e1)*qg(e6,e7,e3)
  215. *qg(e7,e8,e2)*qg(e8,e9,e5)*qg(e4,e6,e5);
  216. 2
  217. n - 1
  218. c0c := --------
  219. 8
  220. C0d := g3(e1,e3,e2)*qg(e4,e6,e1)*qg(e6,e7,e3)
  221. *qg(e7,e8,e2)*qg(e8,e9,e5)*qg(e9,e4,e5);
  222. 4 2
  223. - n + 2*n - 1
  224. c0d := ------------------
  225. 8
  226. %----------------------------------------------------------------------
  227. % 1 1
  228. % cz. .....*..... c0. .....*.....
  229. % : : : : :e2 :
  230. % : : : :e3 *4 :e1
  231. % : : : : : : :
  232. % : : : : :e4 :e6 :
  233. % .....*..... ...*...*...
  234. % 2 2e5 3
  235. %----------------------------------------------------------------------
  236. %
  237. % 2
  238. % CZ := N*(N - 1)
  239. %
  240. %
  241. % 2 2
  242. % N *(N - 1)
  243. % C0 := -----------
  244. % 2
  245. %
  246. %----------------------------------------------------------------------
  247. cz := G3(e1,e2,e3)*G3(e1,e3,e2);
  248. 2
  249. cz := n*(n - 1)
  250. c0 := G3(e1,e2,e3)*G3(e3,e4,e5)*G3(e5,e6,e1)*G3(e2,e6,e4);
  251. 2 2
  252. n *(n - 1)
  253. c0 := -------------
  254. 2
  255. %$END$
  256. %----------------------------------------------------------------------
  257. % Test 3.
  258. %----------------------------------------------------------------------
  259. %----------------------------------------------------------------------
  260. %
  261. % 1
  262. % c9n. .....*.......*.....
  263. % : : 2 : :
  264. % : *.......* :
  265. % : : : :
  266. % : : ... : :
  267. % : : : :
  268. % : : n : :
  269. % .....*.......*.....
  270. %
  271. %----------------------------------------------------------------------
  272. %
  273. % C91 := 0
  274. %
  275. %
  276. % 2 2
  277. % C92 := N *(N - 1)
  278. %
  279. %
  280. % 3 2
  281. % N *(N - 1)
  282. % C93 := -------------
  283. % 4
  284. %
  285. %
  286. % 2 4 2
  287. % N *(N + 11*N - 12)
  288. % C94 := ----------------------
  289. % 8
  290. %
  291. %
  292. % 3 4 2
  293. % N *(N + 15*N - 16)
  294. % C95 := ----------------------
  295. % 16
  296. %
  297. %----------------------------------------------------------------------
  298. c91 := G3(e3,e1,e1)*G3(e3,e2,e2);
  299. c91 := 0
  300. c92 := G3(e3,e4,e1)*G3(e3,e2,e5)*G3(e6,e1,e4)*G3(e6,e5,e2);
  301. 2 2
  302. c92 := n *(n - 1)
  303. c93 := G3(e3,e4,e1)*G3(e3,e2,e5)*G3(e6,e7,e4)*G3(e6,e5,e8)
  304. *G3(e9,e1,e7)*G3(e9,e8,e2);
  305. 3 2
  306. n *(n - 1)
  307. c93 := -------------
  308. 4
  309. c94 := G3(e3,e4,e1)*G3(e3,e2,e5)*G3(e6,e7,e4)*G3(e6,e5,e8)
  310. *G3(e9,e10,e7)*G3(e9,e8,e11)*G3(e12,e1,e10)*G3(e12,e11,e2);
  311. 2 4 2
  312. n *(n + 11*n - 12)
  313. c94 := ----------------------
  314. 8
  315. c95 := G3(e3,e4,e1)*G3(e3,e2,e5)*G3(e6,e7,e4)*G3(e6,e5,e8)
  316. *G3(e9,e10,e7)*G3(e9,e8,e11)*G3(e12,e13,e10)*G3(e12,e11,e14)
  317. *G3(e15,e1,e13)*G3(e15,e14,e2);
  318. 3 4 2
  319. n *(n + 15*n - 16)
  320. c95 := ----------------------
  321. 16
  322. %----------------------------------------------------------------------
  323. $
  324. END$
  325. Time for test: 143 ms