Ok, something is going horribly wrong.
For example:
You made one mistake (you subtracted 1763 instead of 1736), but I don't think that's what's causing this. (You'd get (1963-
1736)*25 is 5675. 5675-11116 is -5441, 2* which is -10882.)
What's really going on, if you're checking the variables in the console, is that those sysvars are changed after the DNA is executed, so, the value in .beta was calculated using data that is one cycle older than the data you are seeing in the console.
This is why Guardian's .pyt source has a bunch of commented-out vars and commented out routines to write them, named things like sxRec, velsxRec, etc. It used to have ones for just about every ref* var there was (to test why friendly checks were screwing up).