1226{
1230 {
1234 }
1236 {
1240 }
1242 {
1245 }
1247 {
1251 }
1253 {
1256 }
1258 {
1261 }
1263 {
1266 }
1269
1271 {
1275 }
1276
1279
1281
1282
1284 {
1289 }
1290
1294
1300
1305
1307
1310
1311 if (d == 0)
1312 {
1316 }
1317
1319
1322
1323 if (d == 0)
1324 {
1328 }
1329
1333
1347 do
1348 {
1351 else
1353
1355 {
1361 list);
1363 "time for recursive call: ");
1365 }
1367 {
1375 "time for recursive call: ");
1377 }
1379 {
1384 int deg= 2;
1385 bool initialized= false;
1386 do
1387 {
1389 if (initialized)
1391 else
1394 initialized= true;
1397 deg++;
1408 "time for recursive call: ");
1410 }
1412 {
1415
1422
1424 {
1434 dest);
1440 }
1441
1444 ;
1445 else
1447
1450
1476 "time for recursive call: ");
1479 }
1480
1484 else
1486
1488 {
1494 }
1495
1497 {
1500 continue;
1501 }
1502
1505
1510
1514 else
1516
1518 {
1525 }
1526
1532 "time for newton_interpolation: ");
1533
1534
1536 {
1540 else
1554 {
1560 "time for successful termination Fp: ");
1562 }
1564 "time for unsuccessful termination Fp: ");
1565 }
1566
1574 } while (1);
1575}
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)