4
u/lucasvb Feb 12 '13 edited Feb 12 '13
Here's some context and also the derivation and how the functions change as the generating polygon rotates.
12
u/QuasiStellar Feb 12 '13
Why doesn't the 2nd graph have a constant derivative when it's tracing the vertical sides of the square? It looks curved.
35
8
u/Rocketpants Feb 12 '13 edited Feb 12 '13
I used paint to illustrate.
edit: I should add that the change in theta over time is constant and A is a constant, which is why I wrote theta that way.
5
4
Feb 12 '13
Because the rotation around the central point is constant, and thus the rate at which the polygon is traced varies because of the changing value of r in the polygons. The hexagon also has a curved tracing, but it's much more subtle. If you were to do the same drawing on the vertical axis like this you would get the cos function of the polygons and what is flat for the square in sin would be curved for the square in cos and vice versa.
2
u/rarededilerore Feb 12 '13
Would each of these wave functions be linearly independent to itself shifted by -1/4th of the period?
5
u/lucasvb Feb 12 '13
Well, that reasoning kinda breaks down here. The polygonal cosine is usually not a shifted version of the sine. That seems to be true only when n is a number multiple of 4. Also, there's the polygon rotation, which makes matters a bit more complicated.
But since the polygonal sine and cosine are multiples of the usual functions, they end up being orthogonal as well.
2
1
u/verxix Feb 12 '13
It would be interesting to see the effect of using unit circles given different p-norms.
1
u/lucasvb Feb 12 '13
Write the p-norm circle in polar form, call that function P(x), and then do P(x)sin(x) for the equivalent sine function, and P(x)cos(x) for the cosine one.
0
Feb 12 '13
[deleted]
2
u/dispatch134711 Feb 12 '13
Noooo start with the square, hex, circle. I'd like to see triangle, pentagon as well... Wait, will it work for an odd number of sides??
2
u/lucasvb Feb 12 '13
Yes, it works for anything, even irregular shapes or curves. If they are closed curves, there won't be any discontinuities.
You can see the triangle in this image.
2
21
u/tlbtc Feb 12 '13
What I find most interesting is that rotation of the polygon would produce a different curve entirely, not a translation.