Article View: aus.mathematics
Article #33Re: How to find a formula from a list of numbers
From: Pfsszxt
Date: Sun, 04 Oct 2009 13:45
Date: Sun, 04 Oct 2009 13:45
35 lines
2183 bytes
2183 bytes
On Sun, 04 Oct 2009 23:24:12 +1000, Adam Nielsen <a.nielsen@remove.this.shikadi.net> wrote: >Hi all, > >Sorry for the basic question but it's been a while! I have a list of numbers: > > A | B >-----+----- > 0 | 0 > 32 | 3.6 > 64 | 7.6 > 128 | 15.6 > 255 | 31.5 > >And I need a formula such that I can put in any number (between 0 and 255 >inclusive) for A, and obtain the result B. Unfortunately because this isn't >quite straightforward division I'm a bit stuck. > >Just for a bit of background I'm writing a Linux driver for a USB-connected PC >power supply, and the current being drawn on the various rails is reported as >an 8-bit number (A) and for it to be of any use it will need to be converted >into amps (B). The values above are taken from the Windows driver, so there >could be some rounding issues in the values of B depending on how well that >code was written. > >Annoyingly the six current rails all have slightly different values for B, so >I'd be grateful for a couple of tips so I can calculate a formula for each of >those as well. > >Many thanks, >Adam. There infinitely many solutions to the problem and each is as correct mathematically as any other
Technical Details
Message-ID:
<ik9hc59at0uhkd54jr78j3ba55a8j7cesm@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news01.khis.de!aioe.org!not-for-mailReferences:
<JOqdnbc8ud5gPFXXnZ2dnUVZ_v6dnZ2d@westnet.com.au>Show Full Headers
Complete Article Headers
X-Google-Thread: dfcd5d83b8,ea449aa0d72efcd3 X-Google-Attributes: giddfcd5d83b8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news01.khis.de!aioe.org!not-for-mail From: Pfsszxt@aol.com Newsgroups: aus.mathematics Subject: Re: How to find a formula from a list of numbers Date: Sun, 04 Oct 2009 08:45:26 -0500 Organization: Aioe.org NNTP Server Lines: 35 Message-ID: <ik9hc59at0uhkd54jr78j3ba55a8j7cesm@4ax.com> References: <JOqdnbc8ud5gPFXXnZ2dnUVZ_v6dnZ2d@westnet.com.au> Reply-To: Pfsszxt@aol.com NNTP-Posting-Host: KHK2Xkv8HMpBpsl8gfplpw.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.0 X-Newsreader: Forte Free Agent 3.1/32.783 Cancel-Lock: sha1:qxfQk5bt9aKPYxvkNsMQMjenLqk=