2014-10-01 78 views

回答

3

http://algorithmicbotany.org/papers/abop/abop-ch4.pdf

golden.ratio = (sqrt(5) + 1)/2 
fibonacci.angle=360/(golden.ratio^2) 
c=1 
num_points=630 
x=rep(0,num_points) 
y=rep(0,num_points) 

for (n in 1:num_points) { 
    r=c*sqrt(n) 
    theta=fibonacci.angle*(n) 
    x[n]=r*cos(theta) 
    y[n]=r*sin(theta) 
} 
plot(x,y,axes=FALSE,ann=FALSE,pch=19,cex=1) 
使用公式