Fibonacci Spiral

by sonone, Jun 17, 2020, 3:50 PM

I recently learned about polar coordinates in my AoPS precalculus class. Since we were making spirals, I asked if there was an equation for the Fibonacci Spiral is polar coordinates. Then SkyFox163, who was a classroom assistant at the time, gave me this whisperhttps://cdn.artofproblemsolving.com/attachments/e/5/3e11b5b6b1653b7302385fbcb904a5efc1c50f.png
Since the golden ratio is $\dfrac{1+\sqrt5}2$, I thought I'd give it a try:[asy]
real phi=(1+sqrt(5))/2;
real PI=3.1415926536;
real f(real t){
return(phi^(2*t/PI));
}
for(real t = 0; t <= 40; t = t + 0.01) {
draw((f(t)*cos(t),f(t)*sin(t))--(f(t + 0.01)*cos(t + 0.01),f(t + 0.01)*sin(t + 0.01)),red);
}

[/asy]
Success!
If you don't know polar coordinates

Comment

5 Comments

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Nicely done!

by G.G.Otto, Jun 20, 2020, 4:24 AM

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
[asy]
real phi=(1+sqrt(5))/2;
real PI=3.141592653589793238462643383279;
real f(real t){
return(phi^(2*t/PI));
}
for(real t = 0; t <= 40; t = t + 0.01) {
draw((f(t)*cos(t),f(t)*sin(t))--(f(t + 0.01)*cos(t + 0.01),f(t + 0.01)*sin(t + 0.01)),red);
}

[/asy]More accurate pi

by ARay10, Jun 30, 2020, 9:56 PM

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
@ARay10, technically you don't need more than 8 digits of pi in any real world application.

Also, this xkcd might be relatable:
https://imgs.xkcd.com/comics/iso_paper_size_golden_spiral.png

by CaptainFlint, Jul 1, 2020, 4:37 PM

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
How about this?

From here
[asy]import graph;
size(150); defaultpen(linewidth(0.8));
real f(real t) {return t;}
real g(real t) {return 2t;}
path a = polargraph(f,0,3pi,operator ..);
path b = polargraph(g,0,3.75pi,operator ..);

real sharp=-40;
path c=relpoint(a,1){relpoint(a,1)-postcontrol(a,length(a)-1)}..{dir(-sharp)}relpoint(b,1);

path g=a..c..reverse(b)&cycle;
fill(g,0.8*red);[/asy]

And this one?
[asy]
size(0,150);
import graph;

real f(real t) {
	return exp(-t/(2pi));
}

draw(polargraph(f,0,20*pi,operator ..));
[/asy]

by piphi, Jul 5, 2020, 1:18 AM

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
When you try to draw a normal spiral very big:[asy]
real g(real a){
return a;
}
draw(polargraph(g,0,50*pi,operator ..),blue);
[/asy]
This post has been edited 1 time. Last edited by sonone, Jul 31, 2020, 7:13 PM

by sonone, Jul 31, 2020, 7:13 PM

Old material is mostly Asymptote, new material is calculator programming

avatar

sonone
Archives
+ April 2023
+ August 2022
+ April 2021
+ August 2020
Shouts
Submit
  • I still exist as well.

    by G.G.Otto, Aug 11, 2023, 2:44 AM

  • hello I'm still here lol

    by player01, Aug 6, 2022, 6:24 PM

  • [REVIVAL] I will start posting more calculator relating posts very soon. Even though school has been busy, I have been programming my calculators a decent amount, so I have a lot to share...

    by sonone, Feb 18, 2022, 10:29 PM

  • wow its been like 2.5 years since geo class

    by pieMax2713, Feb 4, 2022, 8:38 PM

  • @violin21, I've been very busy with school lately and haven't been able to add another lesson. I will when i get a free moment

    by sonone, Aug 19, 2021, 12:45 AM

  • ORZ CODER

    by samrocksnature, Aug 9, 2021, 9:57 PM

  • Could you make more Asymptote lessons on your "How to do Asymptote" blog?

    by violin21, Aug 9, 2021, 7:26 PM

  • You can take it, just C&P the CSS into your CSS area

    by sonone, Apr 17, 2021, 10:08 PM

  • how can we take the CSS if we have permission to not take it?

    by GoogleNebula, Apr 17, 2021, 5:22 PM

  • That is awesome!

    by sonone, Apr 15, 2021, 10:09 PM

  • I modified your dodecahedron and got:
    [asy]
    import three;
    import solids;
    size(300);
    currentprojection=orthographic(0,1.3,1.2);
    light(0,5,10);

    real phi=(sqrt(6)+1)/3;
    real g=(phi-1)/2;
    real s=1/2;
    real a=sqrt(1-phi*phi/4-g*g)+phi/2;

    triple[] d;
    d[0]=(phi

    by Andrew2019, Mar 26, 2021, 12:15 AM

  • Not too many, just changing the color here and there. I really like your CSS!

    by sonone, Feb 2, 2021, 10:35 AM

  • Nice!

    I see you're making changes to the CSS. :)

    by G.G.Otto, Feb 1, 2021, 9:26 PM

  • I'm learning Java now!

    by sonone, Feb 1, 2021, 5:56 PM

  • And I took part of it from CaptainFlint and then added a ton of modifications. ;)

    by G.G.Otto, Dec 1, 2020, 8:56 AM

98 shouts
Tags
About Owner
  • Posts: 2106
  • Joined: Aug 20, 2016
Blog Stats
  • Blog created: Mar 28, 2020
  • Total entries: 61
  • Total visits: 4966
  • Total comments: 146
Search Blog
a