Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*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 2001

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

Search the Archive

Re: Preserve subscripts like integers using N

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31959] Re: [mg31932] Preserve subscripts like integers using N
  • From: BobHanlon at aol.com
  • Date: Fri, 14 Dec 2001 04:21:23 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 12/13/01 2:06:37 AM, guillerm at usal.es writes:

>I would like to preserve in the Outs the subscripts like integers using
>N in 
>expression like this. How can I do? 
>
>In[1]:=Thread[Table[Subscript[x, i], {i, 1, 3}]->{Pi,2 Pi, 3 Pi}]//N
>
>Out[1]:={Subscript[x, 1.] -> 3.141592653589793, Subscript[x, 2.] -> 
>   6.283185307179586, Subscript[x, 3.] ->
>9.42477796076938}
>

Thread[Table[Subscript[x,i],{i,1,3}]->N[{Pi,2Pi,3Pi}]]

or

Table[Subscript[x,i] -> i*N[Pi],{i,1, 3}]


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: restrictions on parameters
  • Next by Date: Re: symbolic calculations with complex numbers
  • Previous by thread: Preserve subscripts like integers using N
  • Next by thread: RE: Preserve subscripts like integers using N