Author here: Thanks for pointing this mistake out! I'm not sure how I didn't validate this. I believe the mistake lies in the absolute value aspect of the formula.
Unfortunately I can't find the script I used to create those diagrams. I've been meaning to revisit this article, and update it with some of my more recent discoveries. I'll make sure to update this when I do so!