.BioChem.Math.piecewise

Piecewise function that corresponds to the SBML piecewice definition

Interface

function piecewise
  input Real[:] value "Input values in the form {value1,value2,...,valueN,valueN+1}.";
  input Boolean[:] condition "Input conditions in the form {condition1,condition2,...,conditionN}. Not more than one condition is allowed to be true at any given time.";
  output Real y "Output value selected from the list of inputs.";
end piecewise;

Generated at 2026-01-08T19:14:00Z by OpenModelicaOpenModelica 1.26.0 using GenerateDoc.mos