how to calculate this equation?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
sebastiano della gatta
il 4 Gen 2022
Modificato: Walter Roberson
il 5 Gen 2022
i have:
P3=[l1 - (l3y*(2*c3 - 2*c1*c2))/c_delta + (l3z*(2*c2 + 2*c1*c3))/c_delta + (l3x*(c1^2 - c2^2 - c3^3 + 1))/c_delta;
(l3x*(2*c2 + 2*c1*c2))/c_delta (l3y*(c1^2 - c2^2 + c3^2 - 1))/c_delta - (l3z*(2*c1 - 2*c2*c3))/c_delta;
(l3y*(2*c2 + 2*c2*c3))/c_delta - (l3x*(2*c2 - 2*c1*c3))/c_delta - (l3z*(c1^2 + c2^2 - c3^2 - 1))/c_delta]
P4=[p4x+0.9972s;p4y-0.0712s;p4z-0.0216s];
l4=P4-P3;
i have to do this product:
(P4-P3)⋅(P4-P3) - l4^2=0.
when I calculate this matlab equation it gives me back the conjugate complexes that I don't want, why?
6 Commenti
Star Strider
il 5 Gen 2022
Put each line in parentheses (the trailing semicolons are outside the parentheses). That generally solves the problem that spaces create, and preserves the readability of the code.
Risposta accettata
laurent jalabert
il 5 Gen 2022
Hello, maybe I did not understood your problem cause l4=P4-P3; and you want to solve:
(P4-P3)⋅(P4-P3) - l4^2=0, which means (P4-P3)⋅(P4-P3) - (P4-P3)^2 = 0
Do you mean (P4-P3).*(P4-P3) - (P4-P3).^2 = 0 ? which is 0=0
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Pulsed Waveforms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!