MathGroup Archive 2006

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

Search the Archive

Re: A simple problem


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?
> 
> 


  • Prev by Date: Object-Oriented Paradigm in Mathematica?
  • Next by Date: Re: Width of plots
  • Previous by thread: A simple problem
  • Next by thread: Re: A simple problem