Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3947
| From | Heike Gramberg <heike.gramberg@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: From Reduce to List |
| Date | 2011-07-24 11:40 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j0h0b2$dh5$1@smc.vnet.net> (permalink) |
| References | <201107232354.TAA08719@smc.vnet.net> |
You would use ToRules:
{a, b} /. {ToRules[(a == 1001 && b == 1001000) || (a == 1002 &&
b == 501000) || (a == 1004 && b == 251000)]}
out:
{{1001, 1001000}, {1002, 501000}, {1004, 251000}}
Heike
On 24 Jul 2011, at 00:54, Harvey P. Dale wrote:
> 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
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: From Reduce to List Heike Gramberg <heike.gramberg@gmail.com> - 2011-07-24 11:40 +0000
csiph-web