- Thread starter
- #1

*think*I got the right sub-forum here. I have never posted around here, so sorry if it is wrong. I came here for some help with a math problem I need to solve for a GLSL shader for programming (math in the real world!).

I apologize in advance if it seems I did not put a lot of effort into this, but I really do not know where to start. I am a programmer and I know where to look when I need help with programming, but I have not had to do math I could not figure out on my own for programming on my own yet, so I thought I would turn to a forum for help. Thanks ahead of time

**Problem**:

I need to figure the mathematical equation for a piece of paper that has been folded in half landscape and then unfolded. An example, take a piece of page and fold it like you would a birthday card, make sure it has a good crease in it and then unfold it. When you do this, there is a arch right where the crease if from the fold that causes the paper to go up quickly and then slowly goes back down.

This is the say the equation of the line would be like a upside-down "W" (curvy, not pointed) with the parts after the valleys stretched really far out. If you can understand that at all. The best way to see what I mean is take a piece of notebook paper and folder it.

My main problem is that I have no idea what type of line this would be graphed to. I was thinking something like a logarithmic line, but it does not quite fit well. I have no idea how to Google around for this and I am not at my University so I cannot just find a random math professor and ask them, so I have no idea where to start. I also do not have my graphing calculator with me or know of any computer tools to assist me with this.