Re: Redirecting input
- To: mathgroup at smc.vnet.net
- Subject: [mg92358] Re: [mg92292] Redirecting input
- From: "Thomas Dowling" <thomasgdowling at gmail.com>
- Date: Mon, 29 Sep 2008 07:06:00 -0400 (EDT)
- References: <200809271047.GAA22530@smc.vnet.net>
Or, slightly simpler,
f[x_] := x + 1
In[7]= f@{100, 23, 44}
Out[7]= {101, 24, 45}
(rather than f /@ {100, 23, 44})
f@2, etc.
Tom Dowling
On Sat, Sep 27, 2008 at 11:47 AM, Ignacio Plazeta <
Ignacio.Plazeta at speednet.es> wrote:
> Dear Friends
>
> Let, as an example,
>
> f[x_] := x + 1
>
> be a function I have to calculate over and over again;
> it would result useful redirecting input to avoid
> typing
>
> f[2] Enter
> f[67] Enter
> f[31] Enter
> ...
>
> and simply make use of
>
> 2 Enter
> 67 Enter
> 31 Enter
> ...
>
> Plese, can you point out a trick to perform it ?
>
> Best Regard
>
> Ignacio Plazeta
>
>
- References:
- Redirecting input
- From: Ignacio Plazeta <Ignacio.Plazeta@speednet.es>
- Redirecting input