Sheet metal Solution Sort of Single-valued function