.Complex.'constructor'.fromReal

Construct Complex from Real

Information

This function returns a Complex number defined by real part re and optional imaginary part im (default=0).

Interface

function fromReal
  import Complex;
  input Real re "Real part of complex number";
  input Real im = 0 "Imaginary part of complex number";
  output Complex result(re = re, im = im) "Complex number";
end fromReal;

Generated at 2025-03-11T19:24:33Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos