p2dMax: p2dMax : provides the maximum polynomial degree 'dMax' given...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/p2dMax.R

Description

Find the maximum polynomial degree dMax given the number of polynomial terms pMax and the system dimension nVar.

Usage

1
p2dMax(nVar, pMaxKnown)

Arguments

nVar

Number of variables considered in the polynomial formulation.

pMaxKnown

The number of polynomial terms

Value

dMax The maximum polynomial degree

Author(s)

Sylvain Mangiarotti, Laurent Drapeau

See Also

gloMoId, gPoMo, poLabs

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#############
# 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))

GPoM documentation built on Feb. 18, 2020, 5:08 p.m.