Re: How to parse result from Reduce[ ] function
- To: mathgroup at smc.vnet.net
- Subject: [mg73266] Re: How to parse result from Reduce[ ] function
- From: "ben" <benjamin.friedrich at gmail.com>
- Date: Fri, 9 Feb 2007 02:20:32 -0500 (EST)
- References: <eqep0l$5bs$1@smc.vnet.net>
Hi Your expression is stored as a multi-dimensional list. Why dont you just assess the corresponding parts in it? In[275]:= exp=C[1]\[Epsilon] Integers&&x\[Equal]358537039003+2964364736430689 C[1]&& y\[Equal]28744265823+237656026328741 C[1]&&p\ [Equal]205319+1697566324 C[1] Out[275]= Integers \[Epsilon] C[1]&&x\[Equal]358537039003+2964364736430689 C[1]&& y\[Equal]28744265823+237656026328741 C[1]&&p\ [Equal]205319+1697566324 C[1] In[283]:= exp[[4,2,1]] Out[283]= 205319 In[285]:= exp[[4,2,2,1]] Out[285]= 1697566324 Bye Ben On 8 Feb., 10:03, Anton Vrba <antonv... at yahoo.com> wrote: > Hi, > > The output of a Reduce[...] function call is > > C[1](element)Integers && > x==358537039003+2964364736430689 C[1] && > y==28744265823+237656026328741 C[1] && > p==205319+1697566324 C[1] > > but I want to use the values after the p== i.e. 205319 and 1697566324 for further calculation in my program > > How do I obtain these? other than by manual cut and paste. > > Thanks for your help > best regards > Anton