.DESLib.RandomLib.Variates.Constant

Information

Constant

Generates a constant number.

Syntax

Constant(g,a)

Description

Always generates the same number, equal to the parameter a.

Examples


Constant(g,1) =
(1,g)

for i in 1:5 loop
  (u[i],g) := Constant(g,3);
end for;
// u = {3,3,3,3,3};

Interface

function Constant
  extends Var;
end Constant;

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos