Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/examplesforhomalg/examples/   (GAP Algebra Version 4.15.1©)  Datei vom 5.9.2023 mit Größe 1 kB image not shown  

Quelle  Coupling.g   Sprache: unbekannt

 
Spracherkennung für: .g vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# sys:=Ind2Diff([u[x,x]-u[x,y],u[x,y,y],u[x,y,z]],[x,y,z],[u]);

LoadPackage( "RingsForHomalg" );

Qxyz := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";
A3 := RingOfDerivations( Qxyz, "Dx,Dy,Dz" );

M1 := HomalgMatrix( "[ \
Dx  \
]", 11, A3 );
M2 := HomalgMatrix( "[ \
Dx, \
Dy  \
]", 21, A3 );
M3 := HomalgMatrix( "[ \
Dx, \
Dy, \
Dz  \
]", 31, A3 );
M := DiagMat( [ M1, M2, M3 ] );
M := ShallowCopy( M ); ## copy M before setting entries
SetIsMutableMatrix( M, true );
M[ 12 ] := "1";;
M[ 23 ] := "1";;
M[ 33 ] := "1";;
MakeImmutable( M );

tau1 := HomalgMatrix( "[ \
1, Dx, Dz, \
0,  0,  1, \
0,  1, Dy  \
]", 33, A3 );

tau2 := HomalgMatrix( "[ \
0,  1, Dz+x*y, \
0,  0,      1, \
1, Dz,    x-y  \
]", 33, A3 );

tau3 := HomalgMatrix( "[ \
1,  00, \
1,  10, \
0, -11  \
]", 33, A3 );

tau := tau1 * tau2 * tau3;

LoadPackage( "Modules" );

N := LeftPresentation( M * tau );

M := LeftPresentation( M );

C := 1 * A3 / LeftSubmodule( "Dx^2-Dx*Dy, Dx*Dy*Dz, Dx*Dy^2", A3 );

tau := HomalgMap( tau, M, N );

ByASmallerPresentation( N );

DecideZero( tau );

id := HomalgIdentityMap( M );


[Dauer der Verarbeitung: 0.14 Sekunden, vorverarbeitet 2026-06-13]