# How to solve a complicated algebraic equation with symbolic toolbox?

2 Ansichten (letzte 30 Tage)
Giuseppe am 9 Mär. 2022
Bearbeitet: Torsten am 9 Mär. 2022
Hi guys,
In the following image there are some expression of some parameters.
I need to solve the equality deriving from expression (17), i.e. in order to get .
I tried to solve the problem by hand but it involves many substitutions and it is full of computations.
Is there a way to perform this task by using the symbolic toolbox with as little effort as possible?
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

Torsten am 9 Mär. 2022
Either
delta_w = k*pi (k integer)
or
delta_w = acos(((p1*e2)^2 + (p2*e1)^2 - (p1-p2)^2)/(2*p1*p2*e1*e2))
##### 4 Kommentare2 ältere Kommentare anzeigen2 ältere Kommentare ausblenden
Giuseppe am 9 Mär. 2022
Yes, sorry. I meant the MATLAB code! Thank you.
Torsten am 9 Mär. 2022
Bearbeitet: Torsten am 9 Mär. 2022
Since I don't have MATLAB available at the moment:
Do you get the same formula from MATLAB as the one from my hand calculation or
/ _____________________________________________________________\
| / / 2 2 2 2 2 2\ |
| / -\e1 *p2 - 2*e1*e2*p1*p2 + e2 *p1 - p1 + 2*p1*p2 - p2 / |
+/-2*atan| / ----------------------------------------------------------- |
| / 2 2 2 2 2 2 |
\\/ e1 *p2 + 2*e1*e2*p1*p2 + e2 *p1 - p1 + 2*p1*p2 - p2 /

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Numbers and Precision finden Sie in Help Center und File Exchange

R2021a

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by