This function plots the following diagram (with default input arguments):
function plotTwoSine extends Modelica.Icons.Function; input Modelica.Units.SI.Frequency freqHz1 = 2 "Frequency of sine wave 1"; input Modelica.Units.SI.Frequency freqHz2 = 3 "Frequency of sine wave 2"; input Modelica.Units.SI.Damping damping1 = 0.8 "Damping coefficient of sine wave 12"; input Modelica.Units.SI.Damping damping2 = 0.1 "Damping coefficient of sine wave 2"; end plotTwoSine;