Maybe it is just my poor math skills or maybe it would make sense to write a question. I want to plot a function with conditional statements (or whatever they are called), e.g. those that you would write with `cases` macros such as f = bla if x => 1 and bla2 if x < 1. Are there any package that can plot such functions? I found sgn in gnuplot which is defined as
sgn(x) 1 if x > 0, -1 if x < 0, 0 if x=0