Post Reply 
Most impressive/complex/amazing C-series program?
08-12-2018, 02:21 PM
Post: #37
RE: Most impressive/complex/amazing C-series program?
(08-12-2018 12:13 PM)Thomas Klemm Wrote:  Not sure if that was not made clear but we're not using the linear regression the way described in your example.
Instead we use the internal algorithm used to solve the linear equations that appear in the context of linear regression
with values completely unrelated to that subject.

Oh, I see. You are "borrowing" a formula from L.R ... Brilliant
This trick, I could not do on the Casio :-(

Quote:The determinant \(1000001\times999999-1000000^2\) turns out to be \(0\) on the HP-11C.

I recently discovered a trick to get more precision out of a calculator.
This example is from your Quadratic Solver Article:

Calculate B^2 - AC = 735246^2 - 11713 * 46152709

On my Casio, both B^2 and AC got R = 5405866805e2
The tenth digit (5e2) could be off. So, find out last 3 digits:

B^2 % 1e3 = 246 ^ 2 % 1e3 = 516 = 16 + 5e2 (matching R last digit)
AC % 1e3 = 713 * 709 % 1e3 = 517 = 17 + 5e2 (matching R last digit)

So, B^2 - AC = (R + 16) - (R + 17) = -1
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Most impressive/complex/amazing C-series program? - Albert Chan - 08-12-2018 02:21 PM



User(s) browsing this thread: 1 Guest(s)