Article View: aus.mathematics
Article #37Re: How to find a formula from a list of numbers
From: Adam Nielsen
Date: Sun, 04 Oct 2009 22:31
Date: Sun, 04 Oct 2009 22:31
30 lines
2106 bytes
2106 bytes
> The simple divide and subtract will also keep the code nice and fast. However > I'm not so sure one of the other rails will be that easy: > > A | B' > -----+----- > 0 | 0 > 1 | 0.1 > 4 | 0.4 > 8 | 0.9 > 16 | 1.9 > 32 | 3.8 > 48 | 5.7 > 64 | 7.6 > 96 | 11.4 > 128 | 15.2 > 160 | 19.1 > 192 | 22.9 > 208 | 24.8 > 224 | 26.7 > 255 | 30.4 Oh having said that, I think this might work: B' = A/10 + A/52 Not sure quite how their rounding works, so let me know if you have any better ideas! Cheers, Adam.
Technical Details
Message-ID:
<mq6dnbOR7_Sjv1TXnZ2dnUVZ_r6dnZ2d@westnet.com.au>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mailReferences:
<JOqdnbc8ud5gPFXXnZ2dnUVZ_v6dnZ2d@westnet.com.au> <ik9hc59at0uhkd54jr78j3ba55a8j7cesm@4ax.com> <see-3529E1.08572405102009@mail.eternal-september.org> <FtadnaK-YsVEvVTXnZ2dnUVZ_oKdnZ2d@westnet.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail NNTP-Posting-Date: Sun, 04 Oct 2009 17:31:26 -0500 Date: Mon, 05 Oct 2009 08:31:25 +1000 From: Adam Nielsen <a.nielsen@remove.this.shikadi.net> User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.1.22) Gecko/20090809 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: aus.mathematics Subject: Re: How to find a formula from a list of numbers References: <JOqdnbc8ud5gPFXXnZ2dnUVZ_v6dnZ2d@westnet.com.au> <ik9hc59at0uhkd54jr78j3ba55a8j7cesm@4ax.com> <see-3529E1.08572405102009@mail.eternal-september.org> <FtadnaK-YsVEvVTXnZ2dnUVZ_oKdnZ2d@westnet.com.au> In-Reply-To: <FtadnaK-YsVEvVTXnZ2dnUVZ_oKdnZ2d@westnet.com.au> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Message-ID: <mq6dnbOR7_Sjv1TXnZ2dnUVZ_r6dnZ2d@westnet.com.au> Lines: 30 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 203.217.41.238 X-Trace: sv3-JSGaNQvgsF97g6gNfzl+eOTRoTkiRMg7B1jS2eYRDNh5lgC35bjhv/OSyh+lt5APz/RHjrVyQxhTbNc!azsy/+70g6epwg8EjnSZUU3iSD5/Bsc8hzKldBZ2RJhgvMdKG+f4RraYtNGCLjSATCiP+M+6moqV!WeZq3V/I51EthrOLAQF7xQ== X-Complaints-To: abuse@westnet.com.au X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40