How to solve for x in an sin equation?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
JoBrr
am 19 Sep. 2020
Kommentiert: JoBrr
am 19 Sep. 2020
Hi MATLAB wizards
I am currently trying to solve the following equation; -7sin(x/7)=0 using symbolic algebra and the solve function in MATLAB.
The code that I used is as follows:
syms x
solve( (-7*sin(x/7)),x)
This code returns the value 0, which is one of the solutions, the other one is 7*pi.
So how can I produce both of these solutions?
Any form of help would be appreciated.
0 Kommentare
Akzeptierte Antwort
John D'Errico
am 19 Sep. 2020
Bearbeitet: John D'Errico
am 19 Sep. 2020
No. There are INFINITELY many solutions. So you cannot say you want the OTHER solution. You can simply enough find a positive solution though.
syms x positive
solve( (-7*sin(x/7)),x)
ans =
7*pi
Weitere Antworten (1)
David Hill
am 19 Sep. 2020
[solx,parameters,conditions] = solve(eqn,x,'ReturnConditions',true);
1 Kommentar
Siehe auch
Kategorien
Mehr zu Number Theory finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!