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

Go to the source code of this file.

Functions

void poly_init (void)
 
int check_results (fastf_t a[], fastf_t b[], int n)
 
int test_bn_poly_add (void)
 
int main (void)
 

Variables

bn_poly_t input [3]
 
bn_poly_t output [3]
 
struct bn_poly bn_Zero_poly = { BN_POLY_MAGIC, 0, {0.0} }
 

Function Documentation

void poly_init ( void  )

Initialises polynomial storing negative, positive and zero-value coefficients.

The known output values used for these tests were generated from GNU Octave, version 3.4.3

Definition at line 45 of file bn_poly_add.c.

References bn_Zero_poly, bn_poly::cf, and bn_poly::dgr.

Referenced by main().

int check_results ( fastf_t  a[],
fastf_t  b[],
int  n 
)

Definition at line 94 of file bn_poly_add.c.

Referenced by test_bn_poly_add().

int test_bn_poly_add ( void  )

Definition at line 109 of file bn_poly_add.c.

References bn_poly_add(), bn_Zero_poly, bn_poly::cf, check_results(), and bn_poly::dgr.

Referenced by main().

Here is the call graph for this function:

int main ( void  )

Definition at line 131 of file bn_poly_add.c.

References bu_log(), poly_init(), and test_bn_poly_add().

Here is the call graph for this function:

Variable Documentation

bn_poly_t input[3]

Definition at line 36 of file bn_poly_add.c.

Referenced by getText(), and verbIn().

bn_poly_t output[3]

Definition at line 36 of file bn_poly_add.c.

Referenced by bu_b64_encode_block(), and test_vls().

struct bn_poly bn_Zero_poly = { BN_POLY_MAGIC, 0, {0.0} }

Definition at line 38 of file bn_poly_add.c.

Referenced by poly_init(), and test_bn_poly_add().