Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  Quotient.tst   Sprache: unbekannt

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

gap> START_TEST("Quotient.tst");

#
gap> Quotient(21);
2
gap> Quotient(12);
fail
gap> Quotient(10);
fail
gap> Quotient(Integers, 21);
2
gap> Quotient(Integers, 12);
fail
gap> Quotient(Integers, 10);
fail
gap> Quotient(GaussianIntegers, 21);
2
gap> Quotient(GaussianIntegers, 12);
fail
gap> Quotient(GaussianIntegers, 10);
fail
gap> Quotient(Rationals, 21);
2
gap> Quotient(Rationals, 12);
1/2
gap> Quotient(Rationals, 10);
fail
gap> Quotient(GaussianRationals, 21);
2
gap> Quotient(GaussianRationals, 12);
1/2
gap> Quotient(GaussianRationals, 10);
fail

#
gap> R := GF(7);;
gap> Quotient(Z(7)^2, Z(7));
Z(7)
gap> Quotient(Z(7), Z(7)^2);
Z(7)^5
gap> Quotient(Z(7), 0*Z(7));
fail
gap> Quotient(R, Z(7)^2, Z(7));
Z(7)
gap> Quotient(R, Z(7), Z(7)^2);
Z(7)^5
gap> Quotient(R, Z(7), 0*Z(7));
fail

#
gap> R := Integers mod 6;;
gap> a := ZmodnZObj(26);;
gap> b := ZmodnZObj(56);;
gap> Quotient(a, b);
ZmodnZObj( 46 )
gap> Quotient(b, a);
fail
gap> Quotient(b, 0*a);
fail
gap> Quotient(R, a, b);
ZmodnZObj( 46 )
gap> Quotient(R, b, a);
fail
gap> Quotient(R, b, 0*a);
fail

#
gap> R:=PolynomialRing(Integers, 1);; t:=R.1;;
gap> Quotient(2*t, t);
2
gap> Quotient(t, 2*t);
1/2
gap> Quotient(t, 0*t);
fail
gap> Quotient(R, 2*t, t);
2
gap> Quotient(R, t, 2*t); # FIXME: result is NOT contained in R; bug in polynomial quotient code
1/2
gap> Quotient(R, t, 0*t);
fail

#
gap> R:=PolynomialRing(Rationals, 1);; t:=R.1;;
gap> Quotient(2*t, t);
2
gap> Quotient(t, 2*t);
1/2
gap> Quotient(t, 0*t);
fail
gap> Quotient(R, 2*t, t);
2
gap> Quotient(R, t, 2*t);
1/2
gap> Quotient(R, t, 0*t);
fail

#
gap> R:=PolynomialRing(GF(7), 1);; t:=R.1;;
gap> Quotient(2*t, t);
Z(7)^2
gap> Quotient(t, 2*t);
Z(7)^4
gap> Quotient(t, 0*t);
fail
gap> Quotient(R, 2*t, t);
Z(7)^2
gap> Quotient(R, t, 2*t);
Z(7)^4
gap> Quotient(R, t, 0*t);
fail

#
# the following case has some issues, as the polynomial
# division code 
gap> R:=PolynomialRing(Integers mod 61);; t:=R.1;;
gap> Quotient(2*t, t);
ZmodnZObj(2,6)
gap> #Quotient(t, 2*t); # FIXME: should return fail, but doesn't; bug in polynomial quotient code
gap> Quotient(t, 0*t);
fail
gap> Quotient(R, 2*t, t);
ZmodnZObj(2,6)
gap> #Quotient(R, t, 2*t); # FIXME: should return fail, but doesn't; bug in polynomial quotient code
gap> Quotient(R, t, 0*t);
fail

#
gap> STOP_TEST("Quotient.tst");

[Dauer der Verarbeitung: 0.18 Sekunden, vorverarbeitet 2026-06-17]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik