• Post Reply Bookmark Topic Watch Topic
  • New Topic

Formula Computation  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a requirement to solve an equation to find its x value.
For example in an equation like this
(x+10x+1200+x-800)+5000+15000+0.18(x+10x+1200+x-800)=10000, in which I have to find the value of x. As per the requirement I will get the equation as a String, it is assumed that there will be RHS value in the equation, all that I need to do is to find the x value.
I know how to solve equation when x value is provided, infact there are many readymade programs available on net for that. However, I'm looking for a solution for the above requirement to find x value when RHS value is available.

Any pointers/information related to any open source implementation would be of great help to me.

Thanks & Regards,
Chandra.
 
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This post has a similar discussion. The post describes a way to parse the given equation. It will give a head start i guess.
Have you tried something that did not work?
It will be nice if you can also tell us your approach so that we can help you better.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!