<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2011-05-18T12:54:13Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>almost-integers from tan()</title>
<issued>2011-05-18T12:54:13Z</issued>
<modified>2011-05-18T12:54:13Z</modified>
<id>https://emergent.unpythonic.net/01305723253</id>
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/01305723253"/>
<content type="text/html" mode="escaped">

From time to time, I've written little programs to find &lt;a href=&quot;http://mathworld.wolfram.com/AlmostInteger.html&quot;&gt;almost-integers&lt;/a&gt; in certain forms.

&lt;p&gt;Most recently, I hit upon the form &lt;i&gt;tan(i)/tan(j)&lt;/i&gt; where &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt;
are both integers.  I was at first surprised to see that there were in fact a
lot of the form &lt;i&gt;tan(2x)/tan(x) ≅ 2&lt;/i&gt;, but a little thought revealed why:  These
were values of &lt;i&gt;x&lt;/i&gt; that were just above multiples of π.

&lt;p&gt;Example: &lt;pre&gt;
&amp;gt;&amp;gt;&amp;gt; x=355; tan(2*x)/tan(x); x/pi
2.000000001817364
113.00000959524569
&lt;/pre&gt;

&lt;p&gt;Reduce &lt;i&gt;x&lt;/i&gt; modulo π, and the formula becomes &lt;i&gt;tan(2ϵ)/tan(ϵ) ≅ 2ϵ/ϵ ≅ 2&lt;/i&gt;.  Mystery solved.
</content>
</entry>
</feed>
