Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```