patch together @a F1 and @a F2 and normalize by a power of @a eval @a F1 and @a F2 are assumed to be bivariate with one variable having level 1
| 574 | /// patch together @a F1 and @a F2 and normalize by a power of @a eval |
| 575 | /// @a F1 and @a F2 are assumed to be bivariate with one variable having level 1 |
| 576 | inline |
| 577 | CanonicalForm patch (const CanonicalForm& F1, const CanonicalForm& F2, |
| 578 | const CanonicalForm& eval) |
| 579 | { |
| 580 | CanonicalForm result= F1; |
| 581 | if (F2.level() != 1 && !F2.inCoeffDomain()) |
| 582 | { |
| 583 | int d= degree (F2); |
| 584 | result *= power (F2.mvar(), d); |
| 585 | result /= power (eval, d); |
| 586 | } |
| 587 | return result; |
| 588 | } |
| 589 | |
| 590 | /// sparse heuristic lifting by Wang and Lucks |
| 591 | /// |
no test coverage detected