p2dMax | R Documentation |
dMax
given the number of variables nVar
and the number of possible
polynomial terms pMax
.Find the maximum polynomial degree dMax
given the number of polynomial terms pMax
and the system dimension nVar
.
p2dMax(nVar, pMaxKnown, dMin = 0)
nVar |
Number of variables considered in the polynomial formulation. |
pMaxKnown |
The number of polynomial terms |
dMin |
The minimum negative degree of the polynomial formulation (0 by default). |
dMax
The maximum polynomial degree
Sylvain Mangiarotti, Laurent Drapeau
gloMoId
, gPoMo
, poLabs
#############
# Example 1 #
#############
# Maximum polynomial degree ?
# number of variables:
nVar <- 3
# size of the polynomial vector:
pMax <- 10
# The maximal polynomial degree used for coding the polynomial is:
p2dMax(nVar,pMax)
#############
# Example 2 #
#############
# for pMax = 462 and nVar = 6, then dMax is:
p2dMax(6,462)
# indeed:
length(poLabs(nVar=6, dMax=5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.