Hi, is there any reason not to define the derivative of the built-in abs() function as either abs(x)/x or csgn(x) ? Currently it has not derivative defined at all. Regards, Jan