Interesting approach. Much more compact than my own, which is simply klunky lumping everything into one statement.
I will play with your code and see if I find how or why my calculations are so divergent.
This took a bit of effort on your part and I appreciate your efforts. I am unfamiliar with some of you syntax but I will follow up with a postmortem.
When I executed your equivalence statements, the first one simply ran until I aborted and then did it again, at which point it executed instantly. I have had that issue before in defining some function. I also notice that when I copy and paste, sometimes I have to delete and reenter certain code for it to execute. Not sure why it is happening.
But thanks again for your efforts.