please help me with this equation

Hello everybody.

My math skills are quite rusty and I am having trouble setting up an equation for a program I am writing. Here it is:

loc = ((y+(delta*i))/d)*i + x

I need to solve for i (in relation to the other variables, of course). Any help would be appreciated. Thanks.

Here are the two solutions:

i = (-y +/- sqrt(4 d delta loc - 4 d delta x + y^2))/2 delta

Thanks. I’ll give it a try.