Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: A simple problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65987] Re: [mg65936] A simple problem
  • From: "David Park" <djmp at earthlink.net>
  • Date: Tue, 25 Apr 2006 05:19:27 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

graficaF[f_, interval_, var_] :=
  Plot[f, {var, First[interval], Last[interval]}]

graficaF[x^2, {1, 3}, x]    works

I don't know why you put three numbers in the intervals list.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: Miguel [mailto:mibelair at hotmail.com]
To: mathgroup at smc.vnet.net


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: Re: how to iterate
  • Next by Date: error function
  • Previous by thread: Re: A simple problem
  • Next by thread: how to iterate