Looks like you’re trying to find the distance between two nodes.
Luckily, there’s a distanceBetween node that encapsulates that whole equation into one node!
Even better, it has 2 matrix inputs that multiply the 2 point inputs… So if you don’t plug in any points to the point inputs, you can get the distance between two matrices without using decomposeMatrix nodes!