From: "Axel Knzinger" <axel.kuenzinger@stud.tu-muenchen.de>
Newsgroups: comp.sys.hp48
Subject: Re: LINEAR INTERPOLATION PROGRAM?
Date: Wed, 18 Feb 1998 19:35:55 +0100
Organization: TU-Mnchen
Lines: 71
Distribution: world
Message-ID: <34EB2A09.71CD0B73@REMOVE_THISstud.tu-muenchen.de>
References: <Pine.SOL.3.96.980217075550.14205A-100000@icarus.cc.uic.edu>
Reply-To: axel.kuenzinger@REMOVE_THISstud.tu-muenchen.de
NNTP-Posting-Host: dial0091.lrz-muenchen.de
Mime-Version: 1.0
X-Mailer: Mozilla 4.01 [de] (Win95; I)
X-Priority: 3 (Normal)
Xref: republic.btigate.com comp.sys.hp48:7163


Tushar J Mithaiwala schrieb:

> Dear Group,
>
> I'm taking a course in thermodynamics and it's often neccessary to
> interpolate from tables in the back of the book.
>
> Here's an example:
>
> TEMPERATURE (CELCIUS)            SPECIFIC VOLUME (m^3/Kg)
>
> 800                                     1.6499
>
> T                                       1.7714
>
> 900                                     1.8041
>
> I solved the following equation to get the results.
>
> [ (T-800) / (1.7714-1.6499) ] = [ (900 - 800) / (1.8041 - 1.6499) ]
>
> THE ANSWER FOR T IS 878.79 degrees celcius, by interpolating between
> the values.
>
> Does anyone have a short general program that will perform this
> function?
>
> I want to avoid typing in a new equation into SOLVE each time on my
> HP48Gx.
>
> Tushar Mithaiwala
> Mechanical Engineering Student
> University of Illinois at Chicago
> ---------------------------------
> --------------------------------------------
> "Damn it Jim, I'm an ENGINEER, not a Doctor!"

   Try my IPOL program:

Just type:

1.6499  800  1.8041  900  1.7714  and then push IPOL  and you get
878.79377 .

Fifth value always the value to interpolate.


Hope this helps,

Axel

P.S.: Tell me if you like it !!
