Hier mal ne Trapezfunktion in Mathematica: