-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't solve sin(x + a) - sin(x) (for a) #10426
Comments
For a start, >>> x = symbols('x', real=True)
... z = symbols('z')
... a = Dummy('a')
...
>>> solveset(sin(x + a) - sin(x), a, domain=S.Reals)
⎧ ⎛ -2⋅ⅈ⋅x⎞ ⎫
{2⋅n⋅π | n ∊ ℤ} ∪ ⎨2⋅n⋅π + arg⎝-ℯ ⎠ | n ∊ ℤ⎬
⎩ ⎭
>>> solveset(sin(z + a) - sin(z), a, domain=S.Reals)
⎧ ⎛ ⎛ ⅈ⋅(-a - z) ⅈ⋅(a + z)⎞ ⅈ⋅z 2⋅ⅈ⋅z ⎞ -ⅈ⋅z ⎫
⎪ ⅈ⋅⎝- ⎝- ℯ + ℯ ⎠⋅ℯ + ℯ - 1⎠⋅ℯ ⎪
⎨a | a ∊ ℝ ∧ ────────────────────────────────────────────────────────── = 0⎬
⎪ 2 ⎪
⎩ ⎭ Having said that, I believe >>> solveset(sin(a/2), a, domain=S.Reals)
⎧ -a⋅ⅈ ⎫
⎪ ───── ⎪
⎪ ⎛ a⋅ⅈ ⎞ 2 ⎪
⎨ -ⅈ⋅⎝ℯ - 1⎠⋅ℯ ⎬
⎪a | a ∊ ℝ ∧ ───────────────────── = 0⎪
⎪ 2 ⎪
⎩ ⎭ |
I think you are right. My goal here is specifically to find a solution that does not depend on x, so as to show that sine is periodic. Hence, although the solutions from solve are probably correct (plus |
solution should be : |
Getting the solution to reduce to just |
Currently solveset gives
The first part of that is that the
which gives
It also works for some other values:
I think this is correct so closing. This can be closed if a test is added for solveset to prevent future regressions. |
A test should also be added for solve |
The original motivation for this was for the |
Hi @asmeurer @oscarbenjamin, I would like to know if this issue is resolved or I can add test cases for solveset. Kindly guide me through the process if it's still open. |
I think that the solution is correct although potentially it could be simplified. This issue could be closed if the tests were added. |
The solution should be
a=2*pi*n
. I believe the first solution from solve is equivalent to that.The text was updated successfully, but these errors were encountered: