Function

How could I model this function?

http://img202.imageshack.us/i/mysterygraph.jpg/
Last edited on
You could simply divide it into three parts:
1
2
3
if(x < 90){}//from (0;0) to (90;1)
else if(x > 270){}//from(270;-1) to (360;0);
else{}//from(90;1) to (270;-1) 

Now only linear functions remain. You can do them by your self. Just try to write them down on a piece of paper, if you find it difficult.
Are you asking - What is the formula for a Triangular waveform??

I could look that up in my old electronics books.
Last edited on
something which looks like this: asin ( sin( x ) )
Topic archived. No new replies allowed.