This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de to import your old projects to the new GitLab platform 📥

Commit ebbc3a69 by Henrik von Coler

Added switch_example.dsp!

parent 8ced32dc
// switch_example.dsp
//
// A conditional logic with two cases.
//
// Henrik von Coler
// 2020-05-28
import("all.lib");
sel(l,x) = select2((x>=0), x, l-abs(x));
// outputs 0 if
sel(l,x) = select2((x>=0), 0, 1);
process = -0.1 : sel(2);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment