functionquadraticLinear
Function that is quadratic in first argument and linear in second argument
Extends from Modelica.Icons.Function (Icon for functions).
Information
This function computesy = a1 + a2 x1 + a3 x12 + (a4 + a5 x1 + a6 x12) x2
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[6] | a | Coefficients | |
| Real | x1 | Independent variable for quadratic part | |
| Real | x2 | Independent variable for linear part |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Result |
Revisions
-
July 21, 2025 by Matthis Thorade and Hongxiang Fu:
Made the function inlined.
This is for #4278. -
February 29, 2009 by Michael Wetter:
First implementation.