nowfound

Dev tools · September 18, 2016

SP

Simple pendulum simulation with rational trigonometry

Context: I'm looking at Norman Wildberger's rational trigonometry[1], and here I was wondering how useful it is in physics. So I thought about testing it with the famous simple pendulum exercise. It's not obvious we get any FPS gain, but still I find it cool to even be able to get the same result differently. 1. https://en.wikipedia.org/wiki/Rational_trigonometry

Simple pendulum simulation with rational trigonometry launched on September 18, 2016 with 52 votes, #1,540 of 3,744 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 10 years on.

In plain words

This project demonstrates a simple pendulum simulation solved using rational trigonometry, an alternative mathematical approach that avoids traditional trigonometric functions. It compares conventional methods with rational trigonometry to explore whether the alternative approach offers practical benefits like performance improvements. The simulation explores progressively complex pendulum problems, from simple to double and arbitrary configurations. Created for developers and physics enthusiasts interested in experimental mathematical methods, it's designed to test whether rational trigonometry provides useful advantages in physics calculations, even if performance gains aren't guaranteed.

written from the facts on this page · September 2026

From the sources

On this page I'll try to solve the two-dimensional pendulum problem in various ways, including using rational trigonometry . I'll start with the simple pendulum, and then maybe the double one and arbitrary long ones. With trigonometric functions, the speed \(v\) and elevation \(h\) become respectively \(\dot\theta\) and \(1 - \cos(\theta)\). which we can turn into a first order derivative by considering \(\dot{\theta}\) as an additional variable. The naive approach described above has a major issue : it can not deal with full swings. Indeed the point $$\lim_{\mu\to\infty}\mathrm{M}(\mu) = (-1, 0)$$ can never be reached with that parametrization. A simple solution is to switch to a different…from grondilu.github.io

Does a similar job

all alternatives →
  • TJ
  • AD
    All desktop software calculators are wrong, so I had to build my own2022 · ▲286

    A new calculator software cannot really bring attention (https://chachatelier.fr/chalk/) However, I wrote a full article explaining why I had to build something "new" that does not behave like usual desktop calculator softwares : TL;DR All "small" calculator softwares I know share the same design flaws. And the GUI is not the only stumbling block in their poor efficiency. Handling correctly numerical approximations - expected or not - is crucial to trust the results. It is usually not done in lightweight tools. It should. So I prove that if I could do it, OS manufacturers…

  • Simple 2D car physics with JavaScript2020 · pakastin.github.io · ▲308
  • IA
    Implementing a trackball with rational numbers2017 · grondilu.github.io · ▲11
  • Simulation-based high school physics course notes2020 · landgreen.github.io · ▲295

    Interactive notes for algebra based physics with explorable explanations

  • VT
    Visualizing the math that powers 3D character animation2022 · diegomacario.github.io · ▲238

    Hi everyone! I'm the author of this project. I wrote it because I think that the math that makes characters move in games and movies is incredibly beautiful, and I wanted to give others a glimpse into it. It's crazy to think that quaternions, an abstract mathematical tool discovered by William Rowan Hamilton in 1843, would be so perfectly suited to solve hard problems in the world of 3D character animation more than a hundred years later. The story of how he discovered quaternions is also beautiful. Here's an excerpt from Wikipedia: "Hamilton was looking for ways of extending complex numbers…

More dev tools this month

the category →
  • /dev/null▲482

    a social network for devs

    Dev tools · 2d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 27d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 25d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 22d ago · openbot.run

  • Talanoa▲343

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 20d ago · talanoa.email

  • CoreSpeed▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 28d ago · corespeed.io

Source: Show HN post ↗

Launched alongside, September 2016

the whole month →
  • Real decks from real startups that raised over $400M

    Growth · 2016 · cirrusinsight.com

  • Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics - mxgmn/WaveFunctionCollapse

    Life & fun · 2016 · github.com

  • Smart messaging app that helps you say more and do more.

    Work · 2016 · android.com

  • Reproducing images with geometric primitives. Contribute to fogleman/primitive development by creating an account on GitHub.

    Dev tools · 2016 · github.com

  • Embedded camera sunglasses by Snapchat

    Work · 2016 · spectacles.com

  • AccessURL▲818

    Share access to accounts without sending a username/password

    Life & fun · 2016 · accessurl.com