<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Math on A Blog for the Uninitialized</title><link>https://www.nilpointer.blog/tags/math/</link><description>Recent content in Math on A Blog for the Uninitialized</description><generator>Hugo</generator><language>en-us</language><copyright>&lt;a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank" rel="noopener"&gt;Licensed under Apache 2.0&lt;/a&gt;</copyright><lastBuildDate>Sun, 01 Mar 2026 21:01:44 -0800</lastBuildDate><atom:link href="https://www.nilpointer.blog/tags/math/index.xml" rel="self" type="application/rss+xml"/><item><title>The Haversine Formula</title><link>https://www.nilpointer.blog/posts/2026/03/the-haversine-formula/</link><pubDate>Sun, 01 Mar 2026 21:01:44 -0800</pubDate><guid>https://www.nilpointer.blog/posts/2026/03/the-haversine-formula/</guid><description>&lt;p&gt;While doing some reading tonight, I came across a question.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do you calculate the distances between two GPS coordinates?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Turns out it&amp;rsquo;s by using a function called the &lt;a href="https://en.wikipedia.org/wiki/Haversine_formula"
 
 
 target="_blank" 
 rel="noopener noreferrer"
 
&gt;Haversine formula&lt;/a&gt;. And let me tell you, it looks kind of crazy at first.&lt;/p&gt;
&lt;p&gt;I &lt;a href="https://www.bicyclewatercooler"
 
 
 target="_blank" 
 rel="noopener noreferrer"
 
&gt;ride bikes a lot&lt;/a&gt; and use a GPS computer to track my rides - I&amp;rsquo;ve always wondered how a device, likely emitting data points every second or so - kept track of this information. And then additionally, how services like &lt;a href="https://www.strava.com"
 
 
 target="_blank" 
 rel="noopener noreferrer"
 
&gt;Strava&lt;/a&gt; or Garmin actually overlay that information on to a map to show you where you&amp;rsquo;ve gone, how fast, at what elevation, etc.&lt;/p&gt;</description></item></channel></rss>