BRL-CAD
multipoly.c File Reference
#include "common.h"
#include <stdio.h>
#include <math.h>
#include <signal.h>
#include "bu/malloc.h"
#include "vmath.h"
#include "bn/multipoly.h"
Include dependency graph for multipoly.c:

Go to the source code of this file.

Macros

#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_multipolybn_multipoly_new (int dgrs, int dgrt)
 create new multipoly of a given size with coefficients set to 0 More...
 
struct bn_multipolybn_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 More...
 
struct bn_multipolybn_multipoly_set (register struct bn_multipoly *P, int s, int t, double val)
 set a coefficient growing cf array if needed More...
 
struct bn_multipolybn_multipoly_add (register struct bn_multipoly *p1, register struct bn_multipoly *p2)
 add two polynomials More...
 
struct bn_multipolybn_multipoly_mul (register struct bn_multipoly *p1, register struct bn_multipoly *p2)
 multiply two polynomials More...
 

Detailed Description

Library for dealing with bivariate polynomials.

Definition in file multipoly.c.