-
Debugging an expression (square root trouble?)
I have a complex expression that I will be applying to hundreds of layers, and there is a bug. Through a bit of experimenting, I’ve deduced that knowing how to fix the bug in the following expression would be sufficient for my needs:
x0 = 1; y0 = 2; r1 = Math.sqrt((745 – x0)*(745 – x0) + (660 – y0)*(660 – y0)); x = r1 + x0; y =r1 + y0; [x,y]
Any help would be appreciated!