functionpolynomialtrivariate

Polynominal function used for efficiency calculation

Extends from Modelica.Icons.Function (Icon for functions).

Information

This function computes a trivariate fifth order polynomial. The polynomial has the form

y = a1 + a2 x12 + a3 x1 + a4 x22 + a5 x2 + a6 x32 + a7 x3 + a8 x12 x22 + a9 x1 x2
+ a10 x1 x22 + a11 x12 x2 + a12 x12 x32 + a13 x1 x3 + a14 x1 x32 + a15 x12 x3 + a16 x22 x32 + a17 x2 x3 + a18 x2 x32
+ a19 x22 x3 + a20 x12 x22 x32 + a21 x12 x22 x3 + a22 x12 x2 x32 + a23 x1 x22 x32 + a24 x12 x2 x3 + a25 x1 x22 x3 + a26 x1 x2 x32 + a27 x1 x2 x3

Inputs

TypeNameDefaultDescription
Realx1Independent variable
Realx2Independent variable
Realx3Independent variable
Real[27]aCoefficients

Outputs

TypeNameDefaultDescription
RealyResult

Revisions

  • March 10, 2019, by Tea Zakula:
    First implementation.