iwtlp.com

Learn chemistry with Python, from stoichiometry to molecular simulation (opens in new tab)

Discussed on DEV

Chemistry is full of calculations that are tedious by hand and clarifying in code. Writing the computation forces you to be precise about what is actually happening, and Python turns abstract formulas into things you can run, test, and tweak. Here is a tour of what coding chemistry looks like. Stoichiometry The arithmetic of reactions: given an equation and an amount of one substance, how much of another is produced or consumed. Coding it makes mole ratios concrete. # 2 H2 + O2 -> 2 H2O def w...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help