Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  ZFunctionWithInductiveSides.g   Sprache: unbekannt

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

#! @Chunk AsZFunctionWithInductiveSides

LoadPackage( "ToolsForHomalg" );

#! @Example
f := function (i) Print( "Current i is ", i, "\n" ); return i^2; end;;
seq := AsZFunction( f );
#! <ZFunction>
seq[ 0 ];
#! Current i is 0
#! 0
seq[ 0 ];
#! 0
upper_func := function ( a )
  if a[ 2 ] <> 0 then return [ a[ 2 ], a[ 1 ] mod a[ 2 ] ]; fi; return a; end;;
lower_func := IdFunc;;
gcd_seq := ZFunctionWithInductiveSides( 0, [ 111259 ],
              lower_func, upper_func, \= );
#! <ZFunction>
HasStableLowerValue( gcd_seq );
#! false
gcd_seq[ -1 ];
#! [ 111259 ]
HasStableLowerValue( gcd_seq );
#! true
StableLowerValue( gcd_seq );
#! [ 111259 ]
IndexOfStableLowerValue( gcd_seq );
#! 0
gcd_seq[ 0 ];
#! [ 111259 ]
gcd_seq[ 1 ];
#! [ 259111 ]
gcd_seq[ 2 ];
#! [ 11137 ]
gcd_seq[ 3 ];
#! [ 370 ]
HasStableUpperValue( gcd_seq );
#! false
gcd_seq[ 4 ];
#! [ 370 ]
HasStableUpperValue( gcd_seq );
#! true
StableUpperValue( gcd_seq );
#! [ 370 ]
IndexOfStableUpperValue( gcd_seq );
#! 3
sum := ApplyMap( gcd_seq, Sum );
#! <ZFunction>
sum[ 0 ];
#! 370
sum[ 100 ];
#! 37
c := CombineZFunctions( [ gcd_seq, sum ] );
#! <ZFunction>
c[ 0 ];
#! [ [ 111259 ], 370 ]
#! @EndExample

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

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=492969
#Domains=607362