Could replace this with
```
s = np.hypot(cart.x, cart.y)
r = np.hypot(s, cart.x)
```
I think this will be (much) faster despite the extra squaring since it will avoid creating new objects/storing in memory.