maybe...

Math.sqrt(value)

or...

Math.pow(value, 1.0 / factor)

I tried that. something like this:Math.sqrt(value)

or...

Math.pow(value, 1.0 / factor)

1 2 3 4 | public void theta1(double x, double y){ |

My Y and X are dependant on each other. Since they are in a ratio, theta will always be the same if x and y are being modified by the same factor