THIS IS ONLY A HOBBY PROJECT. I CANNOT GUARANTEE THE EFFECTIVENESS OF CODE.
This Lua script can calculate the molecular mass by just typing in chemical formula. Here are some examples:
- CuSO4·5H2O ==> CuSO4(H2O)5
- Fe2(SO4)3 ==> Fe2(SO4)3
- KAl(SO4)2·12H2O ==> KAl(SO4)2(H2O)12
For more information, please visit my blog:
- https://gyrojeff.moe/2020/03/22/TI-nspire-%E5%BC%8F%E9%87%8F%E8%AE%A1%E7%AE%97/
- https://gyrojeff.moe/2020/03/22/TI-nspire-%E8%AE%A1%E7%AE%97%E5%99%A8%E5%BC%80%E5%8F%91%E6%80%BB%E7%BB%93/
You can either use the file in release section, or just add a script manully, using the code on github.
As I have not learnt the compiler so far, the code might be nasty. Anyway, it works.
Also, this script supports at most three levels of brackets.