News for hackers. Stuff that matters.
Re:Evolutionary algorithm to find Quake III's fast inverse s... by chinpokomon on Tuesday April 08, 2014 @09:21PM (#7557178)
I had a program for my HP-48GX that use to do something similar. It was especially useful when I knew that my decimal answer had some numerical constant, such as sqrt(2), and I wanted to convert it to something more reasonable. It would only return a single value, so I had to be careful that I didn't just use it every time, since just because an answer could approximate a multiple of Pi, it might only be a coincidence and not a good answer.
Re:Evolutionary algorithm to find Quake III's fast inverse s... by wtallis on Tuesday April 08, 2014 @10:28PM (#7557371)
Some of that was actually built-in to the calculator. The "→Q" and "→Q𝛑" functions took a floating-point number and return a rational number or rational expression in terms of pi. The tolerance for the approximation was determined by how many significant digits the calculator was configured to display. It was pretty nice for a calculator that didn't include a computer algebra system.
Re:Evolutionary algorithm to find Quake III's fast inverse s... by chinpokomon on Tuesday April 08, 2014 @11:40PM (#7557553)
It was specifically an improved library of those functions. I'll have to dig around on hpcalc.org and see if I can find it again. You could do algebraic calculations if you wrapped the statement in quotes, but once you got used to RPN that made little sense to do.
Re:Evolutionary algorithm to find Quake III's fast inverse s... by chinpokomon on Thursday April 10, 2014 @12:57PM (#7567832)
It was specifically this library: http://www.hpcalc.org/details.php?id=1403.