Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chris-martin/chemistry
Chemistry library for scala
https://github.com/chris-martin/chemistry
Last synced: 26 days ago
JSON representation
Chemistry library for scala
- Host: GitHub
- URL: https://github.com/chris-martin/chemistry
- Owner: chris-martin
- Created: 2014-02-10T04:04:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-02-10T04:11:38.000Z (over 10 years ago)
- Last Synced: 2023-03-11T07:58:44.534Z (over 1 year ago)
- Language: Scala
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chemistry
## Example usage
```
import chemistry.dsl._
```Atomic mass of fructose (C6H12O6):
```
val fructoseMass =
atomicMass("C") * 6 +
atomicMass("H") * 12 +
atomicMass("O") * 6
```Molecules per gram of fructose:
```
val fructoseMoleculesPerGram = avogadro / fructoseMass
```