Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

RE: Making Big Substitution List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25621] RE: [mg25597] Making Big Substitution List
  • From: "David Park" <djmp at earthlink.net>
  • Date: Mon, 16 Oct 2000 03:04:42 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear Alex,

P = {p1, p2, p3};
Psubs = Thread[P -> {1, 2, 3}]
{p1 -> 1, p2 -> 2, p3 -> 3}

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

> -----Original Message-----
> From: Alex [mailto:alex000 at my-deja.com]
To: mathgroup at smc.vnet.net
> Sent: Wednesday, October 11, 2000 3:51 AM
> To: mathgroup at smc.vnet.net
> Subject: [mg25621] [mg25597] Making Big Substitution List
> 
> 
> Hi All,
> 
> I have the following list
> P={p1,p2,p3}
> and I would like to create substitution list
> SubsP={p1->1,p2->2,p3->3}
> to use for the future
> 
> How do I do it in one nice expression.
> Unfortunately P->{1,2,3} does not
> do the job.
> I am think about somthing like
> Apply[] function but I am lost ...
> 
> Please help
> 
> Many thanks,
> 
> Alex
> 
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.
> 
> 


  • Prev by Date: GridLines and DefaultFont
  • Next by Date: Fourier Question
  • Previous by thread: Re: Making Big Substitution List
  • Next by thread: limits