TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Learn Physics with Functional Programming

291 pointsby privongover 1 year ago

19 comments

noelwelshover 1 year ago
Sounds similar to <a href="https:&#x2F;&#x2F;tgvaughan.github.io&#x2F;sicm&#x2F;toc.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;tgvaughan.github.io&#x2F;sicm&#x2F;toc.html</a> Should be fun if you&#x27;re physics inclined.
评论 #37394840 未加载
评论 #37395900 未加载
ogogmadover 1 year ago
Expressing physics with more rigorous mathematical or computational formalism might be good: For instance, a force is a triple (sending object, receiving object, force vector). Newton&#x27;s third law says that whenever there is a force (S,R,F), then there is another force (R,S,-F). Also, this makes clear that Newton&#x27;s 2nd law is <i>not</i> a definition of force, because it misses out on two of the three components of a force triple (-- by the way, is there a formal term for what I&#x27;m calling a force triple?)
评论 #37397741 未加载
archariosover 1 year ago
Calculus makes a lot more sense to me as code so this seems promising :D
hatmatrixover 1 year ago
Julia might have been more practical - also has a type system, symbolic computing, automatic differentiation, etc. And maybe just functional enough.
评论 #37409315 未加载
评论 #37400567 未加载
latenightcodingover 1 year ago
Structure and Interpretation of Classical Mechanics published in 2001 uses Scheme (There is a second edition released more recently)
评论 #37397150 未加载
bumbledravenover 1 year ago
I would like to see Learn Physics with APL.
评论 #37402762 未加载
footyover 1 year ago
This is an incredibly cool concept and I would have loved to have this book when I was in undergrad (for Physics).
ngcc_hkover 1 year ago
I am actually studying special relativity and found Jupyter Notebook plus some simple plot helps a lot. I did search Common Lisp as reading python code is hard. A mess for the one doing Lorentz trnasformation. End up I have to do it myself. This is different I suspect if it is in common lisp as it usually can be read, understood and use.<p>Sadly for simple realization for example the twin paradox without acceleration (3 astronauts handing over clock info instead of using acelearation). It is not there. And doing graphic … and simple wedge. Sadly.<p>May be someone here can highlight some sites for this and that.<p>For chapter 14 I wonder whether a Jupiter notebook (which can do Tex if using Matplotlib … have not tested it as I used texshop and screen capture from Matplotlib instead).
nyrikkiover 1 year ago
Is there an effective way of dealing with anti-commutative algebras like the geometric product in a functional model?<p>Obviously total functional programming is a problem.<p>But the GP greatly simplifies electrodynamics and removing the need to track handedness in your basis is very helpful in my experience.
bowsamicover 1 year ago
I feel like the screenshots don’t make the book seem particularly novel or interesting
galp76over 1 year ago
I have been looking for a excuse to try again to learn Haskell. Also looking for some interesting book to learn material in order to try to get my son interested in science. Thanks for this.
daft_pinkover 1 year ago
I&#x27;d love a book like this written in Python. Just feedback. I clicked the link and was about to purchase this. The idea of learning physics sounds great. The idea of spending time learning a new programming language that I&#x27;m unlikely to use for anything else sounds terrible.
评论 #37394900 未加载
评论 #37402736 未加载
评论 #37400816 未加载
评论 #37410102 未加载
评论 #37397530 未加载
评论 #37396431 未加载
评论 #37397761 未加载
poulpy123over 1 year ago
Does it really teach physics or does it teach Haskell through the way of physics equations?
MissingAFewover 1 year ago
Funny, I was thinking of doing just this exact thing to learn haskell.
alex_lavover 1 year ago
How much of either do I need to know to find value out of this book?
评论 #37399602 未加载
tobinfrickeover 1 year ago
Does this implement symbolic algebra&#x2F;calculus, or is it entirely numerical?
评论 #37395379 未加载
1-6over 1 year ago
After learning Physics with FP, you can help with Modelica!
zare_stover 1 year ago
Ordered from Amazon, thx.
Pet_Antover 1 year ago
I wish the title said &quot;Haskell&quot; instead of &quot;Function Programming&quot;. I mean the two aren&#x27;t interchangeable. Was actually hoping for Clojure personally.
评论 #37396259 未加载