ndd_create_equation, ndd_create_equation_lsdf, ndd_create_equation_msdf[ Synopsis | Description | Return values | Diagnostics | See also | Back to the NDD package documentation ] |
#include "lash-ndd.h"
ndd *ndd_create_equation_lsdf(uint1 r, uint4 n, sint4 *c, sint4 b);
ndd *ndd_create_equation_msdf(uint1 r, uint4 n, sint4 *c, sint4 b);
ndd *ndd_create_equation(uint1 r, uint4 n, sint4 *c, sint4 b);
c[0] x1 + c[1] x2 + ... + c[n-1] xn = b
The numeration base is r. The NDDs created by ndd_create_equation_msdf operate most significant digit first, and those created by ndd_create_equation_lsdf least significant digit first.
The macro ndd_create_equation can be used for creating an NDD operating in the default direction.
If the dimension n is zero, then the functions return a universal NDD if b = 0, and an empty NDD otherwise.
[ Synopsis | Description | Return values | Diagnostics | See also | Back to the NDD package documentation ] |