answered 8 years ago
The new piecewise is unfortunately not very user friendly. Here's one workaround:
piecewise
diff(f.expression_at(1))(1).n()