943,914 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 711
  • Java RSS
Jan 15th, 2009
0

Mass to Formula

Expand Post »
I am trying to work out this issue in a molecular caluclator that I am trying to develop. I would like to go from mass to formula.

So I am given a mass, ie 120.3433. And an equation could have up to 8 C, 3 H, 11 N, 6 S but they have to reasonable close to 120.3433. Just letting a person get a reasonable idea of what a formula could be if they were only given a mass. How do I get the different combinations?
for instance, C8H3N4S6, C7H3N4S6, C6H3N4S6, or something like that. Any help you could offer would be greatly appreciated.

If there is some clarification that you need, please let me know...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
darylesha is offline Offline
4 posts
since Apr 2006
Jan 15th, 2009
0

Re: Mass to Formula

You must also take into account the valence bond of the different elements !
For example : a you can write a simple formule like CH2 but this can never exist as an molecule on it's own. A carbon atom has 4 "hooks" so CH4 can exist as a molecule. CH2 cannot. When the number of atoms increase so will their combinations most of wich cannot be a real molecule.
Reputation Points: 2035
Solved Threads: 645
Senior Poster
ddanbe is offline Offline
3,740 posts
since Oct 2008
Jan 22nd, 2009
0

Re: Mass to Formula

Don't think this idea'll fly. As mentioned, the number of permutations will be staggering, especially if all elements (below or equal to the molecular/formula mass) can be valid. Even organic molecules could be metallo-organic, so it doesn't help v. much unless you specify the constituent elements of the compound.

Also, I assume you're referring to Mr/Fr rather than mass in grams??!

The fact that C can form triple, double bonds as well as multiple aromatic rings (heterogeneous/homogeneous) as well as alicylic rings, will just confuse matters. I don't think you'll find an algorithm to weed out the possible and impossible answers.
Last edited by ardav; Jan 22nd, 2009 at 2:24 pm.
Sponsor
Featured Poster
Reputation Points: 1048
Solved Threads: 948
Sarcastic Poster
ardav is offline Offline
6,698 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: HELP!! jv progrm to simulate bursary unit
Next Thread in Java Forum Timeline: Output error on invalid data, Scanner





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC