1227{
1231 {
1235 }
1237 {
1241 }
1243 {
1246 }
1248 {
1252 }
1254 {
1257 }
1259 {
1262 }
1264 {
1267 }
1270
1272 {
1276 }
1277
1280
1282
1283
1285 {
1290 }
1291
1295
1301
1306
1308
1311
1312 if (d == 0)
1313 {
1317 }
1318
1320
1323
1324 if (d == 0)
1325 {
1329 }
1330
1334
1348 do
1349 {
1352 else
1354
1356 {
1362 list);
1364 "time for recursive call: ");
1366 }
1368 {
1376 "time for recursive call: ");
1378 }
1380 {
1385 int deg= 2;
1386 bool initialized= false;
1387 do
1388 {
1390 if (initialized)
1392 else
1395 initialized= true;
1398 deg++;
1409 "time for recursive call: ");
1411 }
1413 {
1416
1423
1425 {
1435 dest);
1441 }
1442
1445 ;
1446 else
1448
1451
1477 "time for recursive call: ");
1480 }
1481
1485 else
1487
1489 {
1495 }
1496
1498 {
1501 continue;
1502 }
1503
1506
1511
1515 else
1517
1519 {
1526 }
1527
1533 "time for newton_interpolation: ");
1534
1535
1537 {
1541 else
1555 {
1561 "time for successful termination Fp: ");
1563 }
1565 "time for unsuccessful termination Fp: ");
1566 }
1567
1575 } while (1);
1576}
const CanonicalForm CFMap CFMap & N
CanonicalForm modGCDFq(const CanonicalForm &F, const CanonicalForm &G, CanonicalForm &coF, CanonicalForm &coG, Variable &alpha, CFList &l, bool &topLevel)
GCD of F and G over , l and topLevel are only used internally, output is monic based on Alg....
const CanonicalForm const CanonicalForm const CanonicalForm & coG
int myCompress(const CanonicalForm &F, const CanonicalForm &G, CFMap &M, CFMap &N, bool topLevel)
compressing two polynomials F and G, M is used for compressing, N to reverse the compression
static Variable chooseExtension(const Variable &alpha)
static CanonicalForm uni_content(const CanonicalForm &F)
compute the content of F, where F is considered as an element of
static CanonicalForm uni_lcoeff(const CanonicalForm &F)
compute the leading coefficient of F, where F is considered as an element of , order on is dp.
const CanonicalForm const CanonicalForm & coF
static CanonicalForm randomElement(const CanonicalForm &F, const Variable &alpha, CFList &list, bool &fail)
compute a random element a of , s.t. F(a) , F is a univariate polynomial, returns fail if there are...
static CanonicalForm FpRandomElement(const CanonicalForm &F, CFList &list, bool &fail)
static CanonicalForm newtonInterp(const CanonicalForm &alpha, const CanonicalForm &u, const CanonicalForm &newtonPoly, const CanonicalForm &oldInterPoly, const Variable &x)
Newton interpolation - Incremental algorithm. Given a list of values alpha_i and a list of polynomial...
bool terminationTest(const CanonicalForm &F, const CanonicalForm &G, const CanonicalForm &coF, const CanonicalForm &coG, const CanonicalForm &cand)
bool fdivides(const CanonicalForm &f, const CanonicalForm &g)
bool fdivides ( const CanonicalForm & f, const CanonicalForm & g )
#define ASSERT(expression, message)
CanonicalForm randomIrredpoly(int i, const Variable &x)
computes a random monic irreducible univariate polynomial in x over Fp of degree i via NTL/FLINT
CanonicalForm mapPrimElem(const CanonicalForm &primElem, const Variable &alpha, const Variable &beta)
compute the image of a primitive element of in . We assume .
CanonicalForm primitiveElement(const Variable &alpha, Variable &beta, bool &fail)
determine a primitive element of , is a primitive element of a field which is isomorphic to
static CanonicalForm mapDown(const CanonicalForm &F, const Variable &alpha, const CanonicalForm &G, CFList &source, CFList &dest)
the CanonicalForm G is the output of map_up, returns F considered as an element over ,...
static CanonicalForm mapUp(const Variable &alpha, const Variable &beta)
and is a primitive element, returns the image of
#define DEBOUTLN(stream, objects)
Variable FACTORY_PUBLIC rootOf(const CanonicalForm &, char name='@')
returns a symbolic root of polynomial with name name Use it to define algebraic variables
CanonicalForm getMipo(const Variable &alpha, const Variable &x)
void FACTORY_PUBLIC prune(Variable &alpha)
void setMipo(const Variable &alpha, const CanonicalForm &mipo)
template bool find(const List< CanonicalForm > &, const CanonicalForm &)
#define TIMING_END_AND_PRINT(t, msg)