{"id":1031,"date":"2009-08-09T12:26:59","date_gmt":"2009-08-09T02:26:59","guid":{"rendered":"http:\/\/www.somethinkodd.com\/oddthinking\/?p=1031"},"modified":"2009-08-09T12:26:59","modified_gmt":"2009-08-09T02:26:59","slug":"breaking-the-slide-rules","status":"publish","type":"post","link":"https:\/\/www.somethinkodd.com\/oddthinking\/2009\/08\/09\/breaking-the-slide-rules\/","title":{"rendered":"Breaking the (Slide) Rules"},"content":{"rendered":"<p>I haven&#8217;t used a slide rule in ages, and even then it was as a toy. I am too young to have ever needed to use one in anger.<\/p>\n<p>I&#8217;ve been trying to remember enough high school maths to reinvent the concept from first principles, without actually checking on Wikipedia to remind me how they work &#8211; just to prove to myself I still have the concepts clear enough in my mind to explain them to someone else.<\/p>\n<h4>My Attempt to Explain Slide Rules To Myself<\/h4>\n<p>Let&#8217;s make up a function f(x). Let&#8217;s make it injective, and call its inverse f<sup>-1<\/sup>(x), so x = f<sup>-1<\/sup>(f(x))<\/p>\n<p>Now, let&#8217;s go into the physical world. Take two straight sticks. Mark one end of each as the origin, and at every point which is x millimetres from the origin, write down the value f(x). <\/p>\n<div class=\"aside\">Okay, not every point, but frequently enough that you cover the important values of f(x).<\/div>\n<p>Now take two arbitrary values, g<sub>1<\/sub> and g<sub>2<\/sub>, and find where they are written on the sticks. Line up the origin of the second stick with the position of g<sub>1<\/sub> on the first stick. Hold them parallel, oriented appropriately, and read off the number next to the position of g<sub>2<\/sub> on the second stick.<\/p>\n<p>What have you done, in mathematical terms?<\/p>\n<p>Well, lining up the sticks is a rapid way to do addition. What are you adding? The distance in millimetres between the origin of the first stick and the location of g<sub>2<\/sub>  on the second stick is f<sup>-1<\/sup>(g<sub>1<\/sub>) + f<sup>-1<\/sup>(g<sub>2<\/sub> ).<\/p>\n<p>But, you aren&#8217;t measuring it in millimetres, you are measuring it using the first stick, so the number you read off is actually f(f<sup>-1<\/sup>(g<sub>1<\/sub>) + f<sup>-1<\/sup>(g<sub>1<\/sub>)).<\/p>\n<p>Now, with a traditional slide rule, we would use the power function for f.<\/p>\n<p>e.g. f(x) = 10<sup>x<\/sup>, f<sup>-1<\/sup>(x) = log<sub>10<\/sub>(x).<\/p>\n<p>That makes a slide rule a quick way to perform the following operation:<\/p>\n<p>10<sup>log (g<sub>1<\/sub>) + log (g<sub>2<\/sub>)<\/sup><\/p>\n<p>which is another way of saying g<sub>1<\/sub> &times; g<sub>2<\/sub><sub>.<\/p>\n<div class=\"aside\">More excitingly, division can be performed by aligning the sticks differently, but I am skimming over that here.<\/div>\n<h4>My Sudden Realisation<\/h4>\n<p>Power\/Log functions aren&#8217;t the only possible functions that slide rules could be used for.<\/p>\n<p>If you let f(x) = sqrt, and f<sup>-1<\/sup>(x) = x<sup>2<\/sup>, then what you get is the square root of the sum of two squares. You could make a special slide rule just to work out the length of the hypotenuse of a right-angled triangle!<\/p>\n<p>I have no doubt that this has been known for years, and such slide rules probably even existed, but I am happy to have discovered it myself!<\/sub><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In which Julian uses a modern computer (capable of billions of multiplications a second) as a notebook to record how to make a slide-rule (capable of performing a few per minute).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"","footnotes":""},"categories":[28],"tags":[],"class_list":["post-1031","post","type-post","status-publish","format-standard","hentry","category-doubleplus-geek"],"_links":{"self":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts\/1031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/comments?post=1031"}],"version-history":[{"count":5,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts\/1031\/revisions"}],"predecessor-version":[{"id":1036,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/posts\/1031\/revisions\/1036"}],"wp:attachment":[{"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/media?parent=1031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/categories?post=1031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.somethinkodd.com\/oddthinking\/wp-json\/wp\/v2\/tags?post=1031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}