File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ def test36():
604604 \bar{\theta}::Depends(\partial{#});
605605 \bar{#}::DiracBar;
606606 ex:=\bar{Q \Gamma^{m} \theta}\partial_{\mu}{X_{m}} + \partial_{\mu}{\Gamma^{m}\bar{\theta}} X_{m};
607- unwrap(_, $\partial{#}$);
607+ unwrap(_, $\partial{#}$)
608608 tst:=\bar{Q \Gamma^{m} \theta}\partial_{\mu}{X_{m}} + \Gamma^{m} \partial_{\mu}{\bar{\theta}} X_{m} - @(ex);
609609 assert(tst==0)
610610 print("Test 36a passed")
@@ -616,17 +616,31 @@ def test36():
616616test36()
617617
618618def test37():
619+ __cdbkernel__=create_scope()
619620 A::DifferentialForm(degree=1).
620621 B::DifferentialForm(degree=2).
621622 C::DifferentialForm(degree=3).
622623 d{#}::ExteriorDerivative.
623624 ex:=C= d{B}+A ^ B;
624625 ge:=d{C}+A ^ C;
625- substitute(ge, ex);
626- distribute(ge);
627- product_rule(ge);
626+ substitute(ge, ex)
627+ distribute(ge)
628+ product_rule(ge)
628629 tst:= d{A} ^ B - @(ge);
629630 assert(tst==0)
631+ print("Test 37 passed")
630632
631633test37()
632-
634+
635+ def test38():
636+ __cdbkernel__=create_scope()
637+ A::DifferentialForm(degree=1).
638+ B::DifferentialForm(degree=1).
639+ C::DifferentialForm(degree=2).
640+ ex:= A ^ B + B ^ A + A ^ C + C ^ A;
641+ sort_product(_)
642+ tst:= 2 A ^ C - @(ex);
643+ assert(tst==0)
644+ print("Test 38 passed")
645+
646+ test38()
You can’t perform that action at this time.
0 commit comments