How to draw triangle wave (symmetrical) using ZedGraph?
alt text http://img101.imageshack.us/img101/8482/okr20troj.jpg
Preferably with option to adjust period and amplitude.
//Edit: the function has to be [related/based on]? x (x-axis).
Something like this:
for (x = 0; x <= 10; x += .005)
{
if (Math.Sin(x * (2 * Math.PI / period)) >= 0)
y = amplitude;
else
y = -amplitude;
originalList.Add(x, y);
}