This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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!