MathGroup Archive 2000

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

Search the Archive

Re: List of Interpolated functions inside plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24841] Re: List of Interpolated functions inside plot
  • From: "Rasmus Debitsch" <debitsch at Zeiss.de>
  • Date: Wed, 16 Aug 2000 03:24:07 -0400 (EDT)
  • Organization: Customer of UUNET Deutschland GmbH
  • References: <8naq28$esp@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

Plot[ Evaluate[Table[xyinterp[m][x], {m, 1, 10, 3}]], {x, -5, 5} ]

The problem is, that Plot has a HoldAll Attribut. But you have to evaluate
the Table command before plotting.

Regards

--

        Rasmus Debitsch
        Carl Zeiss Lithos GmbH
        Carl Zeiss Strasse
        D-73447 Oberkochen

        eMail : debitsch at zeiss.de

Krautschik, Chris G <krautschikc at intel.co.jp> schrieb in im Newsbeitrag:
8naq28$esp at smc.vnet.net...
> If have defined the following interpolation for arbitrary integer m:
>
> xyinterp[m_] := Interpolation[Table[{x, Sin[m x]}, {x, -5, 5, 0.25}]];
>
> I can plot a number of the interpolated functions on one plot as follows:
>
> Plot[ {xyinterp[1][x], xyinterp[2][x], xyinterp[3][x]}, {x,-5,5} ];
>
> Let's say I want to plot a large number of the functions of integer m but
I
> like to use the Table command since typing can become quite tedious:
>
> Then
>
> Plot[ Table[xyinterp[m][x], {m, 1, 10, 3}],{x,-5,5} ]
>
> doesn't work because the value of x needs to be defined pior to the
> execution of the Table command. I have tried various forms of Hold but
that
> doesn't seem to work.
>
> Any help or suggestions on how to make this work would be appreciated.
>
> thanks,
> Chris
>
>
>
>




  • Prev by Date: Re: List of Interpolated functions inside plot
  • Next by Date: Re: List of Interpolated functions inside plot
  • Previous by thread: Re: List of Interpolated functions inside plot
  • Next by thread: Re: List of Interpolated functions inside plot