MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Linear Interpolation problems

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102389] Re: [mg102359] Linear Interpolation problems
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Fri, 7 Aug 2009 05:32:53 -0400 (EDT)
  • References: <200908061033.GAA01892@smc.vnet.net>
  • Reply-to: drmajorbob at bigfoot.com

Here's the first part:

f=Interpolation[{{3,20},{10,50}},InterpolationOrder->1];
f/@{4,5,9}

{170/7,200/7,320/7}

Bobby

On Thu, 06 Aug 2009 05:33:49 -0500, kosal lee <leekosal at yahoo.com> wrote:

> Hello,
>
> I am new to Mathematica. Please help me with linear interpolation  
> problems. Thank you for your help.
>
> First, suppose I have two real values
>
> year               earnings
> x = 3              f(x) =   20
> x= 10             f(x) =   50
>
> I want to have the interpolated values of f(4), f(5), to f(9) which is  
> between actual values of f(3) and f(10). How can I do that with  
> Mathematica?
>
>
> Second, suppose I have an excel spreadsheet having those above values  
> for multiples firms as of the following
>
> firm      f(3)       f(10)
> A          20        50
> B          30        55
> C          60        25
>
> I want to have the values of f(4) till f(9) as above and are stored in  
> excel spreadsheet as of the following:
>
> firm      f(3)     f(4)    f(5)  ...    (f9)      f(10)
> A          20                                            50
> B          30                                            55
> C          60                                            25
>
>
> Best Regards,
> Kosal
>
>
>



-- 
DrMajorBob at bigfoot.com


  • Prev by Date: Re: Manipulate
  • Next by Date: Re:Re: Re: publicon
  • Previous by thread: Linear Interpolation problems
  • Next by thread: Re: Linear Interpolation problems