There is an unknown math domain error in the triang func.
There is an unknown math domain error in the triang func.