Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/tst/testbugfix/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 348 B image not shown  

Quelle  2025-08-25-InterpolatedPolynomial.tst   Sprache: unbekannt

 
# InterpolatedPolynomial should always return a polynomial.
# Reported by István Szöllősi during GAP Days 2025.
#
gap> f:=InterpolatedPolynomial( Integers, [ 1, 2, 3 ], [ 5, 5, 5 ] );
5
gap> IsInt(f);
false
gap> IsPolynomial(f);
true

#
gap> f:=InterpolatedPolynomial( Integers, [ 1 ], [ 5 ] );
5
gap> IsInt(f);
false
gap> IsPolynomial(f);
true

[ Dauer der Verarbeitung: 0.6 Sekunden  (vorverarbeitet)  ]