Evaluate a Monomial in M dimensions

**MONOMIAL_VALUE**
is a MATLAB library which
evaluates a monomial in M dimensions.

Let X represent a point in M dimensional space, and let E be a vector of M integers. The value of the monomial with exponents E at the point X is

V(X) = X(1)^E(1) * X(2)^E(2) * ... * X(M)^E(M)This library supplies a convenient method of evaluating V(X) at multiple points X.

The factor 0.0^0 might occur if, for some I, we have X(I) = 0.0 and E(I) = 0. In this case, we take the corresponding value to be 1.

The factor 0.0^E(I) will cause problems if E(I) is negative.

The computer code and data files made available on this web page are distributed under the GNU LGPL license.

**MONOMIAL_VALUE** is available in
a C version and
a C++ version and
a FORTRAN77 version and
a FORTRAN90 version and
a MATLAB version and
a Python version.

- i4vec_transpose_print.m, prints an I4VEC "transposed";
- i4vec_uniform_ab.m, returns a pseudorandom I4VEC in a given range;
- monomial_value.m, evaluates a monomial.
- monomial_value_1d.m, evaluates a monomial of a 1D argument.
- r8mat_nint.m, rounds the entries of an R8MAT to the nearest integer;
- r8mat_uniform_ab.m, returns an R8MAT of scaled pseudorandom numbers;
- timestamp.m, prints the current YMDHMS date as a timestamp;

- monomial_value_test.m, calls all the tests.
- monomial_value_test01.m, tests MONOMIAL_VALUE.
- monomial_value_prb_output.txt, the output file.

You can go up one level to the MATLAB source codes.