Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6270
| From | Andrzej Kozlowski <akoz@mimuw.edu.pl> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Solving simple equations |
| Date | 2011-11-08 12:20 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j9b6q5$4tm$1@smc.vnet.net> (permalink) |
| References | <201111071054.FAA03874@smc.vnet.net> |
I think one should note that when using PowerExpand one can get a
solution that is only valid for some values of the parameters or even
one that is never valid at all. As an example, consider the equation:
eq = Sqrt[1/z] - 1/Sqrt[z] + Sqrt[1/a] - 1/Sqrt[a] + a + z == 0
It actually has no solutions over the reals as you can tell with
Reduce[eq, z, Reals]
False
But if you use PowerExpand you will get a "solution":
sol = Solve[PowerExpand[eq], z, Reals][[1]]
{z->-a}
The solution is, of course, wrong. If you use PowerExpand with Assumptions you can see this fact:
Solve[PowerExpand[eq,
Assumptions -> a >= 0], z, Reals]
{{z -> ConditionalExpression[-a, a < 0]}}
The answer contradicts the assumption. Similarly:
Solve[PowerExpand[eq, Assumptions -> a >= 0], z, Reals]
{{z->ConditionalExpression[-a,a<0]}}
Andrzej Kozlowski
On 7 Nov 2011, at 11:54, Dana DeLouis wrote:
>> ...Reduce (& Solve) doesn't work...
>> ...Solve[(A*n^a)^b/n == c, n]
>
> Hi. The only way I found to get a real solution for this particular problem is to use PowerExpand:
>
> data = {A -> 2, a -> 3, b -> 4, c -> 5.};
>
> equ = PowerExpand[(A*n^a)^b/n == c] ;
>
> Solve[equ, n]
>
> Which gives:
>
> n -> (c/A^b) ^ (1/(a*b - 1))
>
> % /. data
> 0.8996576447849666
>
> Check with Solve using the same data...
>
> (A*n^a)^b/n == c /. data
>
> 16*n^11 == 5.
>
> NSolve[%, n, Reals]
>
> n -> 0.8996576447849665
>
> = = = = = = = = = =
> HTH
> Dana DeLouis
> = = = = = = = = = =
>
>
>
> On Nov 5, 4:57 am, Mathieu <mat...@gmail.com> wrote:
>> Mathematica seems to struggle with very simple equations:
>>
>> Solve[(A*n^a)^b/n == c, n]
>> Solve::nsmet: This system cannot be solved with the methods available
>> to Solve
>>
>> Reduce doesn't work either. Even if I add assumptions:
>> Assuming[A > 0 && 1 > a > 0 && 1 > b > 0 && c > 0 && n > 0, Solve[(A
>> n^a)^b/n == c, n]]
>> Solve::nsmet: This system cannot be solved with the methods available
>> to Solve. >>
>>
>> Is there a way for Mathematica to solve these equations?
>>
>> Many thanks,
>> Mathieu
>
>
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Solving simple equations Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-11-08 12:20 +0000
csiph-web