Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1926
| From | Patrick Scheibe <pscheibe@trm.uni-leipzig.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Solve / Reduce isolating results. |
| Date | 2011-04-30 09:52 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ipgm4v$8qh$1@smc.vnet.net> (permalink) |
Hi,
first, in view of simplification, reduction and solving it's very nice
for Mathematica to have exact numbers if you can provide them. In this
case, you can. Either you know the exact values (e.g. 2.75 == 11/4) or
you let Mathmatica find it out. Then use Reduce and give the domain
Reals and your other wishes and everything is fine:
eq = {(1/6)*((SQ1*196)*2)^3 - (1/
6)*((((2.75 + XX)*((3.75 + XX)*21^2))*100)*2)^3 ==
1.2902698935932682*^18, (1/6)*((SQ1*100)*2)^3 - (1/
6)*((((2.75 + XX)*((3.75 + XX)*21^2))*36)*2)^3 ==
1.883856772422697*^17} /.
x_ /; Head[x] =!= Symbol && ExactNumberQ[x] === False :>
Rationalize[x, 0]
Reduce[Flatten[{eq, SQ1 > 0, XX > 0}], {SQ1, XX}, Reals]
and you get
Out[13]= SQ1 == 5292 && XX == 1/4
Cheers
Patrick
On Fri, 2011-04-29 at 07:35 -0400, Lea Rebanks wrote:
> Dear All,
>
> Given the enclosed code - see below.
> Please could someone help me setup the code to Solve / Reduce for these 2
> missing values only required
>
> {SQ1 -> 5292,
> XX -> 0.25}
>
> (I don't want multiple results.) I want positive numbers & NOT Complex..
>
>
> Many thanks for your help & attention, really appreciated. Please see below.
>
> Best regards,
> Lea...
> ...................................................................
>
>
> Clear[SQ1]
> Clear[XX]
> Solve[{(1/6)*((SQ1*196)*2)^3 -
> (1/6)*((((2.75 + XX)*((3.75 + XX)*21^2))*100)*2)^3 ==
> 1.2902698935932682*^18, (1/6)*((SQ1*100)*2)^3 -
> (1/6)*((((2.75 + XX)*((3.75 + XX)*21^2))*36)*2)^3 ==
> 1.883856772422697*^17}, {SQ1, XX}]
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Solve / Reduce isolating results. Patrick Scheibe <pscheibe@trm.uni-leipzig.de> - 2011-04-30 09:52 +0000
csiph-web