y <- 7
z <- 1
y.last <- 0
while (abs(y.last-y)>1e-5) {
y.last <- y
y.temp <- 0.5*(y+1/z)
z <- 0.5*(z+1/y)
y <- y.temp
print(y)
}
Biostatistics, clinical trial design, critical thinking about drugs and healthcare, skepticism, the scientific process.
Showing posts with label mathematics. Show all posts
Showing posts with label mathematics. Show all posts
Friday, October 29, 2010
Quiz time: what does the following R code do?
Prize is brownie points.
Tuesday, February 2, 2010
Bradford Cross's "100 proof" project
While it sounds like the way to make the perfect whiskey, the 100 proof project is actually a way to remember the fundamentals of mathematics and how to write a proof. Bradford Cross is taking up the project just for this reason, and we can all benefit.
Every once in a while I pull out the functional analysis book just to brush up on things like the spectral theorem (a ghost of grad school past), but that doesn't have the impact that this project will have.
I found the project via John Cook's AnalysisFact Twitter feed.
Every once in a while I pull out the functional analysis book just to brush up on things like the spectral theorem (a ghost of grad school past), but that doesn't have the impact that this project will have.
I found the project via John Cook's AnalysisFact Twitter feed.
Subscribe to:
Posts (Atom)