Re: From Reduce to List
- To: mathgroup at smc.vnet.net
- Subject: [mg120474] Re: From Reduce to List
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Mon, 25 Jul 2011 07:27:40 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201107232354.TAA08719@smc.vnet.net> <201107241138.HAA13798@smc.vnet.net>
I think the only exceptions are non-generic cases like this one:
{Reduce[a x == 0, x] // ToRules}
{{a->0},{x->0}}
Solve[a x == 0, x]
{{x->0}}
Andrzej Kozlowski
On 24 Jul 2011, at 12:38, Fred Simons wrote:
> In[8]:=
> expr=(a==1001&&b==1001000)||(a==1002&&b==501000)||(a==1004&&b==251000);
> {a,b}/.{ToRules[expr]}
>
> Out[9]= {{1001,1001000},{1002,501000},{1004,251000}}
>
> If expr is indeed the result of a Reduce command, I think it is very
> likely that instead of Reduce you could have used Solve (it has quite a
> lot of new features) in order to obtain the rules immediately.
>
> Kind regards,
>
> Fred Simons
> Eindhoven University of Technology
>
> Op 24-7-2011 1:54, Harvey P. Dale schreef:
>> What is the easiest and most efficient way to transform the
>> output from Reduce into a list of values? For example, if Reduce
>> produces
>> (a==1001&&b==1001000)||(a==1002&&b==501000)||(a==1004=
>> &&b==251000) and I
>> want {{1001,1001000},{1002,501000},{1004,251000}}, what is the best way
>> to go from the former to the latter?
>>
>> Harvey
>>
>> Harvey P. Dale
>> University Professor of Philanthropy and the Law
>> Director, National Center on Philanthropy and the Law
>> 139 MacDougal Street
>> New York, N.Y. 10012-1076
>> Tel: 212-998-6161
>> Fax: 212-995-3149
>
>
- References:
- From Reduce to List
- From: "Harvey P. Dale" <hpd1@nyu.edu>
- Re: From Reduce to List
- From: Fred Simons <f.h.simons@tue.nl>
- From Reduce to List