Re: Quick way to return the boundaries of an inequality?
- To: mathgroup at smc.vnet.net
- Subject: [mg111928] Re: Quick way to return the boundaries of an inequality?
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 19 Aug 2010 07:21:42 -0400 (EDT)
Cases[result, _?NumericQ, 2] Bob Hanlon ---- mmdanziger <mmdanziger at gmail.com> wrote: ============= I'm doing some rather involved computations which end up with "Reduce" results that look like: 1.0848 <= \[Theta] <= 1.18296 || 3.64861 <= \[Theta] <= 3.70078 Sometimes there will be two allowed regions, sometimes only one. I need a quick function/routine that will simply return me the boundaries. Basically I have to look for the maximum of a function of Theta and know that it's monotonic over the intervals of interest. So I'd prefer to save myself some computation and just check the endpoints. Anyone know of a simple routine that would accomplish this? I can't think of anything straightforward that wouldn't involve resolving things and undermining the whole idea of cutting computational steps. Thanks in advance, md