.Modelica_LinearSystems2.Math.Polynomial.evaluateComplex

Information

Syntax

y = Polynomial.evaluateComplex(p, x);

Description

Evaluate a polynomial p at a given Complex abszissa value x.

Example

import Modelica_LinearSystems2.Math.Polynomial;

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

Polynomial.evaluateComplex(p1, Complex(2, 3));
// 35 - 60*j

See also

Polynomial.evaluate.

Interface

encapsulated function evaluateComplex
  import Complex;
  import Modelica_LinearSystems2.Math.Polynomial;
  input Polynomial p "Polynomial to be evaluated";
  input Complex x "Complex abszissa value";
  output Complex y "Complex value of polynomial at x";
end evaluateComplex;

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