Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identifying Cations and Anions with solubility data #387

Open
bibbca opened this issue Feb 23, 2023 · 3 comments
Open

Identifying Cations and Anions with solubility data #387

bibbca opened this issue Feb 23, 2023 · 3 comments

Comments

@bibbca
Copy link
Contributor

bibbca commented Feb 23, 2023

I'm mostly leaving this issue here so I don't forget to write some future code.

Currently, in chemistry.php there is no way to select a random cation or anion with solubility information using the functions chem_randcation() or chem_randanion().

My proposed solution is to include an attribute to cations and anions in the global cation and anion arrays, or in the chem_compounds array. such as
array('F',1,'fluoride','','s','solubility'),
Then, modifying chem_randcation() and chem_randanion() to look for the solubility attribute.

But if someone has a better approach, I'm all for it.

@bibbca
Copy link
Contributor Author

bibbca commented Feb 23, 2023

Also, while we're in there we need to push chem_getsolubility into allowedmacros and add a link into chemistry.html

@drlippman
Copy link
Owner

Are you thinking of adding a additional optional argument to chem_randcation that would indicate we only want values with solubility? How are you thinking it would handle cases where solubility is only known for some cation/anion pairs?

@bibbca
Copy link
Contributor Author

bibbca commented Feb 24, 2023

Question #818693 in MOM used a smaller cation/anion list that worked together, as well as OpenStax Chemistry Textbook. Maybe a smaller randcation change with a smaller list of allowed cations/anions is the way to go?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants