WOLFRAM SYSTEM MODELER

piecewise

Piecewise function that corresponds to the SBML piecewise definition

Wolfram Language

In[1]:=
SystemModel["BioChem.Math.piecewise"]
Out[1]:=

Information

Piecewise function that corresponds to the SBML piecewise definition

Syntax

  • piecewise(value,condition)
Input details:
  • Input values in the form {value1,value2,...,valueN,valueN+1}.
  • Input conditions in the form {condition1,condition2,...,conditionN}. Not more than one condition is allowed to be true at any given time.

Syntax

y = piecewise(value, condition)

Inputs (2)

value

Type: Real[:]

Description: Input values in the form {value1,value2,...,valueN,valueN+1}.

condition

Type: Boolean[:]

Description: Input conditions in the form {condition1,condition2,...,conditionN}. Not more than one condition is allowed to be true at any given time.

Outputs (1)

y

Type: Real

Description: Output value selected from the list of inputs.