I've run into a programming challenge that involves number crunching and I'm stumped on an equation. Here's what I have that works so far:
It basically takes x as a given and computes y resulting in a particuar 2D curve. Where I'm stumped is I want to take y as a given and compute x to produce the identical curve. Is this possible? I've managed to reformulate the equation several different ways on paper, but haven't arrived at anything useful. (I'm kind of rusty on algebra.) How would one go about this? Any tips or links would be appreciated.
Thanks!
Code:
double y = (Math.sqrt(x) - 1/x) / 2;
Thanks!