Sorry for not submitting any tried code; since i have know clue what is the logic for this problem.
Please give me some suggestion to form some logic to write a java program for this!
Thanks in advance
Joined: Oct 13, 2005
You will have to look in a mathematics book for "simultaneous quadratic equations."
Joined: Oct 30, 2001
Presumably, you are after an analytic, not numerical solution.
If I remember correctly, there is an analytic way of solving this type of puzzle. As I can't remember how, you probably want to read or Google "simultaneous quadratic equations" to find out. This forum is not the idea place to ask about hard maths.
If you want a numerical solution, the approach would be entirely different. For this type of simple equation, you could probably get away with Newton-Raphson.
So which is it?
One more thing: a quadratic with one variable has two solutions. I'm not sure how many solutions your three-variable problem has, but it could well be more than one. Some of the solutions could involve complex numbers, though. If there's more than one solution, and you need to find the the one(s) that are real numbers, that's an extra challenge. [ February 25, 2008: Message edited by: Peter Chase ]
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.<br /> <br />#:^P