#include "common.h"
#include <stdio.h>
#include <math.h>
#include <signal.h>
#include "bu.h"
#include "vmath.h"
#include "bn.h"
Go to the source code of this file.
Defines | |
#define | FAILSTR "failure in multipoly.c" |
#define | Max(a, b) (((a) > (b)) ? (a) : (b)) |
#define | Min(a, b) (((a) > (b)) ? (a) : (b)) |
Functions | |
struct bn_multipoly * | bn_multipoly_new (int dgrs, int dgrt) |
create new multipoly of a given size with coefficients set to 0 | |
struct bn_multipoly * | bn_multipoly_grow (register struct bn_multipoly *P, int dgrs, int dgrt) |
grow the cf array to be at least [dgrx][dgry], sets new entries to 0 | |
struct bn_multipoly * | bn_multipoly_set (register struct bn_multipoly *P, int s, int t, double val) |
set a coefficient growing cf array if needed | |
struct bn_multipoly * | bn_multpoly_add (register struct bn_multipoly *p1, register struct bn_multipoly *p2) |
add two polynomials | |
struct bn_multipoly * | bn_multipoly_mul (register struct bn_multipoly *p1, register struct bn_multipoly *p2) |
multiply two polynomials |
Library for dealing with bivariate polynomials.
Definition in file multipoly.c.