Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9305 > unrolled thread

[nOOb] solve trig equations

Started byNeal Becker <ndbecker2@gmail.com>
First post2012-03-30 09:39 +0000
Last post2012-04-01 07:41 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  [nOOb] solve trig equations Neal Becker <ndbecker2@gmail.com> - 2012-03-30 09:39 +0000
    Re: solve trig equations Flavin <flavinj@gmail.com> - 2012-03-31 08:43 +0000
    Re: solve trig equations Andrzej Kozlowski <akozlowski@gmail.com> - 2012-04-01 07:41 +0000

#9305 — [nOOb] solve trig equations

FromNeal Becker <ndbecker2@gmail.com>
Date2012-03-30 09:39 +0000
Subject[nOOb] solve trig equations
Message-ID<jl3v0c$3lo$1@smc.vnet.net>
Solve[{Cos[a]+Cos[b]==x,Sin[a]+Sin[b]==y},{a,b},Reals]
Solve::nsmet: This system cannot be solved with the methods available to Solve. >>

This is a simple enough system, what am I doing wrong?

[toc] | [next] | [standalone]


#9326 — Re: solve trig equations

FromFlavin <flavinj@gmail.com>
Date2012-03-31 08:43 +0000
SubjectRe: solve trig equations
Message-ID<jl6g3h$cmt$1@smc.vnet.net>
In reply to#9305
On Mar 30, 4:39 am, Neal Becker <ndbeck...@gmail.com> wrote:
> Solve[{Cos[a]+Cos[b]==x,Sin[a]+Sin[b]==y},{a,b},Reals]
> Solve::nsmet: This system cannot be solved with the methods available to =
Solve. >>
>
> This is a simple enough system, what am I doing wrong?

I don't know why your command doesn't work, but this does.
FullSimplify[Solve[{Cos[a]+Cos[b]==x,Sin[a]+Sin[b]==y},{a,b}],{x\
[Element]Reals,y\[Element]Reals}]

[toc] | [prev] | [next] | [standalone]


#9343 — Re: solve trig equations

FromAndrzej Kozlowski <akozlowski@gmail.com>
Date2012-04-01 07:41 +0000
SubjectRe: solve trig equations
Message-ID<jl90rs$ms0$1@smc.vnet.net>
In reply to#9305
On 31 Mar 2012, at 10:42, Flavin wrote:

> On Mar 30, 4:39 am, Neal Becker <ndbeck...@gmail.com> wrote:
>> Solve[{Cos[a]+Cos[b]==x,Sin[a]+Sin[b]==y},{a,b},Reals]
>> Solve::nsmet: This system cannot be solved with the methods available to Solve. >>
>>
>> This is a simple enough system, what am I doing wrong?
>
> I don't know why your command doesn't work, but this does.
> FullSimplify[Solve[{Cos[a]+Cos[b]==x,Sin[a]+Sin[b]==y},{a,b}],{x\
> [Element]Reals,y\[Element]Reals}]

The reason why this works and the original does not is that having the domain specification Reals in Solve imposes tough conditions on Solve (it has to establish that the solutions are real) while your method does not. Essentially what happens in your case is that Solve solves the equations over the complex numbers, which is quite easy

Solve[{Cos[a]+Cos[b]==x,Sin[a]+Sin[b]==y},{a,b}]

and after that it makes a few simplifications using the assumptions that x and y a real but without any guarantee that the answers are real for all real values of x and y. The original input requires such a guarantee. Using Reduce gives the full answer and one can see how complicated the conditions on x and y have to be to ensure that the solutions are real. One can also do this using Solve, which gives solutions in terms of ConditionalExpression, which maybe preferable for some purposes:

Solve[{Cos[a] + Cos[b] == x, Sin[a] + Sin[b] == y}, {a, b}, Reals,
 MaxExtraConditions -> All, Method -> Reduce]

Andrzej Kozlowski

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web