Tried to write a fast natural log function. Didn’t meet the required error tolerance, but it was a fun experiment.pic.twitter.com/wd8HAUiFFY
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
@alexkan I picked the cubic matching the value and derivative of 1 + ln(x) at x = 1 and x = 2. Least squares might do better.
@alexkan Meant 1 + log2(x) there, not ln.
@warrenm Figured it was something like that. I’d suggest LolRemez, but I'm having trouble getting correct results out of it at the moment.
@alexkan Yeah, Eberly’s latest book actually has a section on applying Remez to logarithms, but I haven’t implemented it yet.
@warrenm Ah, LolRemez works if compiled -O0 with libstdc++. Try 0.15824870, -1.05187502, 3.04788415, -1.15360271—should meet your tolerance!
@alexkan Bingo, tolerance met with room to spare! Thanks so much for the help!
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.