title: Equation for trapezoidal wave equation
body: <p>I'm writing a c function to generate trapezoidal wave. Does any one know a mathematical equation to generate trapezoidal wave? Very similar idea as y=A*sin(B*x) generates a sin wave for different values of x.</p>