Learn R Programming

GPoM (version 1.4)

d2pMax: Provides the number of polynomial terms pMax given dMax and nVar

Description

Computes the number of polynomial terms pMax used to formulate an equation given the maximal polynomial degree dMax and the number of variables nVar following the conventions as defined by fuction poLabs.

Usage

d2pMax(nVar, dMaxKnown, dMin = 0)

Value

The number pMax of polynomial terms used to code a polynomial equation

Arguments

nVar

Number of variables considered in the polynomial formulation.

dMaxKnown

The maximum polynomial degree dMax

dMin

The minimum negative degree of the polynomial formulation (0 by default).

Author

Sylvain Mangiarotti

See Also

gloMoId, gPoMo, poLabs

Examples

Run this code
#############
# Example 1 #
#############
# Maximum polynomial degree ?
# number of variables:
nVar <- 3
# polynomial degree:
dMax <- 3
# The maximal polynomial degree used for coding the polynomial is:
d2pMax(nVar,dMax)

Run the code above in your browser using DataLab