<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Maths on brtkwr.com</title><link>https://brtkwr.com/tags/maths/</link><description>Recent content in Maths on brtkwr.com</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 03 May 2026 08:00:00 +0000</lastBuildDate><atom:link href="https://brtkwr.com/tags/maths/index.xml" rel="self" type="application/rss+xml"/><item><title>Is there an optimal cycling speed in the rain?</title><link>https://brtkwr.com/posts/2026-05-03-optimal-cycling-speed-in-the-rain/</link><pubDate>Sun, 03 May 2026 08:00:00 +0000</pubDate><guid>https://brtkwr.com/posts/2026-05-03-optimal-cycling-speed-in-the-rain/</guid><description>&lt;p>&lt;strong>TL;DR:&lt;/strong> I thought there was. There isn&amp;rsquo;t, unless there&amp;rsquo;s a tailwind. In vertical rain, faster is always drier.&lt;/p>
&lt;h2 id="motivation">
 Motivation
 &lt;a class="heading-link" href="#motivation">
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading">&lt;/i>
 &lt;span class="sr-only">Link to heading&lt;/span>
 &lt;/a>
&lt;/h2>
&lt;p>I was cycling home yesterday in heavy rain and started wondering about the right speed. Slower means more time getting drizzled on. Faster means more rain per second on my front. It felt like there had to be a sweet spot.&lt;/p>
&lt;h2 id="the-setup">
 The setup
 &lt;a class="heading-link" href="#the-setup">
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading">&lt;/i>
 &lt;span class="sr-only">Link to heading&lt;/span>
 &lt;/a>
&lt;/h2>
&lt;p>Picture rain falling at speed $v_r$, with $\rho$ drops per cubic metre. I cycle at speed $v$ over distance $D$. Let $A_t$ be the area of my head and shoulders (top), and $A_f$ the area of my chest (front).&lt;/p></description></item><item><title>Trustless pseudo-random number generation</title><link>https://brtkwr.com/posts/2018-01-31-does-modulus-of-sum-of-a-uniform-distribution/</link><pubDate>Wed, 31 Jan 2018 00:00:00 +0000</pubDate><guid>https://brtkwr.com/posts/2018-01-31-does-modulus-of-sum-of-a-uniform-distribution/</guid><description>&lt;p>I have been working on an &lt;a href="https://github.com/strange-labs-uk/ethereum-lottery" class="external-link" target="_blank" rel="noopener">Ethereum lottery&lt;/a> Dapp with folks attending a meetup hosted by Strange Labs (Gloucester Road, Bristol - NOW CLOSED) and we faced a problem where we realised that Solidity does not have a built in random number generator and therefore picking a winner turned out to be more difficult that anyone imagined.&lt;/p>
&lt;p>In order to make the system truly trustless, one of the ideas involved each participant generating their own random number and submitting it to the contract when they buy their lottery tickets. However I was concerned that taking a sum of of these numbers would result in a normal distribution allowing the early and late participants to have a built in disadvantage.&lt;/p></description></item><item><title>How well does population distribution predict evacuation time?</title><link>https://brtkwr.com/posts/2015-03-10-how-well-does-population-distribution/</link><pubDate>Tue, 10 Mar 2015 12:50:00 +0000</pubDate><guid>https://brtkwr.com/posts/2015-03-10-how-well-does-population-distribution/</guid><description>&lt;p>Previously, we tried to predict 90th percentile evacuation time $T{90}$ determined from ABM simulation using 90th percentile free flow clearance time $T90f$. Bigger the city, greater we can expect $T90f$ to be since it would take longer to traverse. Plotting $T90f$ vs $T90$ produces the figure below. $T90f$ under predicts $T90$ with a poor fit ($R=0.31$) but it is clear that $T90$ is never less than $T90f$!&lt;/p>
&lt;p>&lt;img src="../../images/pop-dist/T90f-T90.png" alt="T90f vs T90">&lt;/p></description></item></channel></rss>