function f input Boolean up; input Boolean down; input Real t; input Real ts; input Real td; input Real alfa; input Real m; input Real yin; input Real yfin; output Real x; end f;