.Modelica_LinearSystems2.Math.Polynomial.integral

Information

Syntax

integral_p = Polynomial.integral(p);

Description

Define a polynomial integral_p being an indefinite integral of the polynomial p.

Example

import Modelica_LinearSystems2.Math.Polynomial;

x = Polynomial.x();
p1 = -6*x^2 + 4*x -3;

int_p = Polynomial.integral(p1);
// -2*x^3 + 2*x^2 - 3*x

See also

Polynomial.derivative.

Interface

encapsulated function integral
  import Modelica_LinearSystems2.Math.Polynomial;
  input Polynomial p "Polynomial";
  output Polynomial integral_p(redeclare Real c[size(p.c, 1) + 1]) "Indefinite integral of polynomial p";
end integral;

Generated at 2024-12-17T19:26:02Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos