MathGroup Archive 2005

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

Search the Archive

Re: BlankSequence

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59210] Re: BlankSequence
  • From: "Carl K. Woll" <carlw at u.washington.edu>
  • Date: Tue, 2 Aug 2005 00:42:31 -0400 (EDT)
  • Organization: University of Washington
  • References: <dchois$864$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Daniele Lupo" <danwolf_no_spam_please_ at libero.it> wrote in message 
news:dchois$864$1 at smc.vnet.net...
> Hi to everyone.
>
> I'm woking with a function, and I've a problem with the blank sequence. My
> function is defined in this way:
>
> ListSmith[lista__, options___]:= Module[{listaUV},
> listaUV = {RXToU[#[[1]], #[[2]]], RXToV[#[[1]], #[[2]]]} & /@ lista;
> MultipleListPlot[listaUV, options]
> ]
>

You should use OptionQ for your options. You also need some braces around 
lista in the body of your module. Hence:

ListSmith[lista__, options___?OptionQ]:= Module[{listaUV},
listaUV = {RXToU[#[[1]], #[[2]]], RXToV[#[[1]], #[[2]]]} & /@ {lista};
MultipleListPlot[listaUV, options]
]

should work.

> Now, when I put a single list as augment of the function, in this way
>
> ListSmith[list1, PlotJoined->True]
>
> All works OK. When I define more lists, instead, in this way, for example:
>
> ListSmith[list1, list2, PlotJoined->True]
>
> both lists are drawn, but only the first is elaborated by the first 
> command
> of the function, while the second list (and others, when they are 
> present),
> are not modified in listaUV.
>
> I'd like to modify every list that appears like augment in my function,
> instead that only the first.
>
> Anyone has some idea about it?
>
> Thanks for answers
>
> Daniele
>
>

Carl Woll
Wolfram Research 



  • Prev by Date: Re: pairs and subsets challenge
  • Next by Date: Re: Mathematical link between two or more numbers
  • Previous by thread: Re: BlankSequence
  • Next by thread: Re: BlankSequence