fdim function

double fdim(
  1. double x,
  2. double y
)

Implementation

double fdim(double x, double y) => x > y ? x - y : 0.0;