GoldenRatio.R

From Organic Design wiki
Revision as of 23:35, 22 August 2006 by Sven (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

options(digits=22) phi <- (1+sqrt(5))/2 phi

phi2 <- (7 * pi)/(5 * exp(1)) phi2

phiCalc <- c()

x <- 1 e <- top <- bottom <- 1 for(i in 1:20) { top <- top*x bottom <- bottom*i e <- e + top/bottom phiCalc[i] <- (7 * pi)/(5 * e) }


print(phi-phi2) print(pi) print(exp(1)) print(phiCalc - phi)