Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Reef
· 12y ago · 0 comments
It is a bit hard to read code with one-letter variable names
Comments
[–]
syllogism
12y ago
I took them from the original post. I imagine they're the standard forms of the equations.
[–]
zellyn
12y ago
I'm not sure why position is "r", but F for force, m for mass, w for world (in a short function), N for, well, N - doesn't seem too bad. Math looks much worse if you spell everything out.
[–]
randlet
12y ago
It's pretty standard to use
r
as a position vector in physics.
[–]
stefantalpalaru
12y ago
He's following the code in the original article:
https://www.crumpington.com/blog/2014/10-19-high-performance...
Makes side by side comparisons easier.