The passengers on the fly-by-wire jet running the program might well say that it matters.
542 karma · joined February 22, 2012
The passengers on the fly-by-wire jet running the program might well say that it matters.
Seriously, I wish I'd kept one deck of a program I wrote in Algol W and my program drum card (A and B).
Things can get ugly--say, if the derivative is zero at your guess--and if your initial guess is bad, or f is wonky (say it has several zeroes near one another) it may take a long time. But as people have said, if you have a good guess, convergence is quadratic, doubling the number of good bits each time, so for floating point square root, peek at the exponent and take half that (multiply by sqrt(2) if it's odd). log2(#mantissa bits) iterations and you're as good as it gets.
Apparently this new method avoids the nasty cases and is still fast. Cool stuff.
Useful links: 1. https://ometer.com/preferences.html, the subset of Mr. P's original essay that the original contains a link to. 2. https://www.derstandard.at/story/1313024283546/gnome-designe..., an interview with Jon McCann.
I grew up in what's called the "Bible Belt", so that may have something to do with my not drinking. I had what might be a common experience--as a child expressing curiosity about a beer a relative was drinking, being offered a sip, and spitting it out in disgust, with no interest in a second taste.
Much later, a friend invited me and other friends over to a very nice dinner with appropriate wine served with each course. It was good, and all seemed well... until I noticed that I was singing Tom Lehrer's "Masochism Tango" at high volume. The next day what freaked me out was that at every stage I thought myself under control, but clearly I had lost it. I did not want a repetition.
Since then I found that there is good tasting beer; I tried a little at a restaurant where they brewed it themselves--but I only tried it the once and didn't finish it. Later I heard that occasional red wine was supposedly good for one's health, and for a while ordered a glass periodically, but I couldn't make myself finish it. Haven't had any for a long time, and now the prescriptions I take preclude further drinking. (Maybe aging baby boomers on prescription drugs bend the curve?)