r/mathpics • • Feb 12 '13

Polygonal sine functions

403 Upvotes

25 comments sorted by

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.

14

u/lucasvb Feb 12 '13 edited Feb 12 '13

0

u/[deleted] Feb 12 '13

[deleted]

3

u/lucasvb Feb 12 '13 edited Feb 13 '13

Check the FAQ.

And man, this stuff is hypnotic and beautiful!

2

u/andthatswhyyoudont Feb 12 '13

I would really like you to explain this with pictures.

3

u/tlbtc Feb 12 '13

I believe /u/lucasvb below has included a great gif explaining.

1

u/Alpha_Q Feb 12 '13

Sounds interesting, but I coudn't find it. Could you provide a link?

10

u/lucasvb Feb 12 '13 edited Feb 12 '13

Huh, apparently comments with links to tumblr are spamfiltered. Well, that's immensely annoying, but I see their point.

Here's the image. And here's the page with context.

3

u/MaxChaplin Feb 12 '13 edited Feb 12 '13

The functions presented are in the form f(θ)sin(θ). Translation would turn it into f(θ)sin(θ+φ) f(θ+φ)sin(θ+φ) while rotating the shape results in f(θ+φ)sin(θ).

edit: corrected, thanks to DirichletIndicator.

1

u/DirichletIndicator Feb 12 '13

Those equations are of the same form though

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

u/ctangent Feb 12 '13

it's exactly the tangent function!

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

u/QuasiStellar Feb 12 '13

Oh thats really cool. Thanks!

4

u/[deleted] 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

u/rarededilerore Mar 05 '13

Could one conclude that a circle has a multiple of 4 vertices?

3

u/lucasvb Mar 05 '13

I don't know. Probably not.

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

u/[deleted] 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

u/dispatch134711 Feb 12 '13

So cool, thanks!