MathGroup Archive 2005

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

Search the Archive

Re: Re: Help Mathematica


Here are two ways to do it:

Pattern[#,Blank[]]&/@{x1,x2,x3}

{x1_,x2_,x3_}

ToExpression[ToString[#]<>"_"&/@{x1,x2,x3}]

{x1_,x2_,x3_}

Bobby

On Sat, 5 Mar 2005 01:34:44 -0500 (EST), Bill Rowe <readnewsciv at earthlink.net> wrote:

> On 3/4/05 at 5:07 AM, robynobile at gmail.com (Awgn78) wrote:
>
>> How i can obtain a list {x1_,x2_,x3_} from a list {x1, x2, x3}...
>
> You can't. The '_' character is a special purpose character in Mathematica and cannot be used as part of a symbol name.
>
> Of course you could do something like ToString[#]<>"_"&/@{x1, x2, x3}. But I doubt having a list of strings is what you want.
>
> If you indicated what your overall goal is, I or someone else here might be able to suggest a solution to the problem.
> --
> To reply via email subtract one hundred and four
>
>
>
>



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • Prev by Date: Re: Kernel Problem
  • Next by Date: Re: repeating elements in a list
  • Previous by thread: Re: Help Mathematica
  • Next by thread: Re: Help Mathematica