how to solve equation without values
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad Kundi
am 6 Okt. 2019
Kommentiert: Muhammad Kundi
am 7 Okt. 2019
hi,
I just want to solve the following equation. Just the simplified form without values.
I mean I just want to do the following task:
X1= 2- 4a
X2=3- 4a
I just want to use these values in the following expression
and get the simplified equation with only "a" as the variable
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 6 Okt. 2019
syms X1 X2 a
expr = 4*X1^2 - 4*X1*X2 + 2*X2^2;
new_expr = subs(expr, {X1, X2}, {2-4*a, 3-4*a});
simplify(new_expr)
Weitere Antworten (1)
the cyclist
am 6 Okt. 2019
Bearbeitet: the cyclist
am 6 Okt. 2019
I suggest you read the documentation about simplifying symblic expressions for the Symbolic Math Toolbox.
1 Kommentar
Siehe auch
Kategorien
Mehr zu Polynomials 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!