What comes next?
|
10-20-2024, 08:44 PM
Post: #50
|
|||
|
|||
RE: What comes next?
(10-19-2024 09:09 PM)Albert Chan Wrote: Calculator sqrt algorithm scale F by 100 for each correct digit, to keep ∇²F = 1, all the time. For each digit, we can stop if (F + ∇F + ∇²F) > 0, eliminate routine BACK Stack Y = (-F) = -K*(x^2 - a) Stack X = (∇F + ∇²F) = K*((2x-1) + 2) = K*(2x+1) = ΔF Stop routine NEXT if stack X > Y Initial setup, K=0.5, x=0 --> Stack Y, X = a/2, 1/2 Code: 00 { 100-Byte Prgm } 41 XEQ "ROOT" → 6.40312423743 Here, we do √41 manually, digit by digit. Code: 41 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)