First of, use your algebra skills to "turn the equation around" until you have an x= .... equation. Then the rest should be self-explanatory.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,484
Solved Threads: 494
Skill Endorsements: 17
Sorry, this is not a math site, though.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,484
Solved Threads: 494
Skill Endorsements: 17
Nor, we might point out, is it a site which is in the business of giving away contest answers. It's extremely poor form to cheat, which is what you're trying to do. It's extremely stupid to announce that you're entering a java contest and then ask for help giving the contest web site as the URL for the problem you're trying to solve. Kind of gives the game away.
Unless there's something in the rules specifically allowing outside help, this is very bad, and speaks very poorly for you. Please act in a responsible manner in the future - and I don't mean by covering your tracks better!
jon.kiparsky
Posting Virtuoso
1,849 posts since Jun 2010
Reputation Points: 383
Solved Threads: 187
Skill Endorsements: 4
Well, good for you. Still, you aren't using the forum the way it should. This is Java forum which is for those who have problems with how to code, not how to solve a problem from words to code.
One thing about your equation, the solution is not a simple algebra by the way. You need to apply some trigonometry to it, but it is solvable. ;)
Taywin
Posting Maven
2,633 posts since Apr 2010
Reputation Points: 275
Solved Threads: 376
Skill Endorsements: 17
The problem is always there. It is the different of float/double that a computer cannot exactly represent but only estimate it. It could be the inaccurate of the epsilon.
Taywin
Posting Maven
2,633 posts since Apr 2010
Reputation Points: 275
Solved Threads: 376
Skill Endorsements: 17