Re:Translating math into code with examples in Java, Racket,...
by jjtheblunt on Tuesday May 28, 2019 @01:38PM
(#20032415)
I suspect what's jarring is the difference between programming in an imperative sense, where you write down steps to be taken to get a computation, and equations, like declarative programming. I once dated, in math grad school, a hardcore differential equations student, and she took Java, which she thought so very different than a world of equations. Made sense, I thought, having been exposed to imperative and declarative programming myself.
[ Parent
| on HN ]
Re:Translating math into code with examples in Java, Racket,...
by jimmaswell on Tuesday May 28, 2019 @01:59PM
(#20032652)
Math has a syntax to write imperative algorithms in too. Came up in the Discrete Math course I took, for things like finding GCD.