Re: A simple problem
- To: mathgroup at smc.vnet.net
- Subject: [mg65965] Re: [mg65936] A simple problem
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 25 Apr 2006 05:18:32 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
graficaF[f_,interval_,var_]:=Plot[f,{var,First[interval],Last[interval]}];
graficaF[x^2,{1,2,3},x];
Bob Hanlon
>
> From: "Miguel" <mibelair at hotmail.com>
To: mathgroup at smc.vnet.net
> Subject: [mg65965] [mg65936] A simple problem
>
> Hi all,
> I want to define a function to plot a set of functions in different
> intervals.
>
> I define
> graficaF[f_,{interval_},var_]:=Plot[f,{var,First[interval],Last[interval]}].
>
> In[]: graficaF[x^2,{1,2,3},x]
> Out[]: graficaF[x^2,{1,2,3},x]
>
> Where is my error?
>
>