BRL-CAD
#include "common.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "bu/log.h"
#include "bu/parallel.h"
#include "vmath.h"
#include "bn/poly.h"
Include dependency graph for poly.c:

Go to the source code of this file.

Macros

#define CUBEROOT(a)   (((a) > 0.0) ? pow(a, THIRD) : -pow(-(a), THIRD))
 
#define Max3(a, b, c)   ((c)>((a)>(b)?(a):(b)) ? (c) : ((a)>(b)?(a):(b)))
 

Functions

struct bn_polybn_poly_mul (register struct bn_poly *product, register const struct bn_poly *m1, register const struct bn_poly *m2)
 
struct bn_polybn_poly_scale (register struct bn_poly *eqn, double factor)
 
struct bn_polybn_poly_add (register struct bn_poly *sum, register const struct bn_poly *poly1, register const struct bn_poly *poly2)
 
struct bn_polybn_poly_sub (register struct bn_poly *diff, register const struct bn_poly *poly1, register const struct bn_poly *poly2)
 
void bn_poly_synthetic_division (register struct bn_poly *quo, register struct bn_poly *rem, register const struct bn_poly *dvdend, register const struct bn_poly *dvsor)
 
int bn_poly_quadratic_roots (register struct bn_complex *roots, register const struct bn_poly *quadrat)
 
int bn_poly_cubic_roots (register struct bn_complex *roots, register const struct bn_poly *eqn)
 
int bn_poly_quartic_roots (register struct bn_complex *roots, register const struct bn_poly *eqn)
 
void bn_pr_poly (const char *title, register const struct bn_poly *eqn)
 
void bn_pr_roots (const char *title, const struct bn_complex *roots, int n)
 

Detailed Description

Library for dealing with polynomials.

Definition in file poly.c.

Macro Definition Documentation

#define Max3 (   a,
  b,
 
)    ((c)>((a)>(b)?(a):(b)) ? (c) : ((a)>(b)?(a):(b)))

Referenced by bn_poly_quartic_roots().