TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Rendering black holes with Haskell

88 点作者 flannelhead大约 9 年前

3 条评论

flannelhead大约 9 年前
Hello HN!<p>I thought I would share this little writeup on a project I&#x27;m quite proud of. The code can be found on GitHub [0]. This article is mostly about the implementation of the simulation in Haskell. I&#x27;ve also written another article [1] on the physics of the simulation. It should be approachable even for those without any general relativity background.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;flannelhead&#x2F;blackstar" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;flannelhead&#x2F;blackstar</a><p>[1] <a href="https:&#x2F;&#x2F;flannelhead.github.io&#x2F;posts&#x2F;2016-03-06-photons-and-black-holes.html" rel="nofollow">https:&#x2F;&#x2F;flannelhead.github.io&#x2F;posts&#x2F;2016-03-06-photons-and-b...</a>
评论 #11274127 未加载
评论 #11274456 未加载
评论 #11274296 未加载
评论 #11273832 未加载
jsprogrammer大约 9 年前
At the end you say:<p>&gt;Let me remind you that these are not the real equations of motion for the photon. The real equations of motion would have been achieved by calculating all of the geodesic equations from the Lagrangian. There are four of them instead of the three equations (in vector form) above. However, the three spatial equations will generate the exact same spatial curve as the real geodesic equations would, and they were relatively easily achieved.<p>What do you mean that these are not the real equations of motion for the photon, but that they give the exact same spatial curve as the real geodesic equations? Are there cases where these equations would not give the exact same curve as the real geodesic equations?
评论 #11274338 未加载
pizza大约 9 年前
GIFs? ;)
评论 #11273701 未加载