Mathematica Asked by good_omen92 on February 16, 2021
I am trying to solve a system with 3 equations 3 unknowns. My code is following
X = A1*S + N1
Y = A2*S + N1
Z = N1^2 + A1N1S + A2N1S + 2A1A2*S^2
It looks like you're looking for the solution of an underdetermined equation system.
eqn = {X == A1 S + N1, Y == A2 S + N1, Z == 2 A1 A2 S^2 + A1 N1 S + A2 N1 S + N1^2}
sol=Solve[eqn, {A1, A2, S, N1} ];
N1/.sol
(*{1/2 (X + Y - Sqrt[X^2 - 6 X Y + Y^2 + 4 Z]),
1/2 (X + Y + Sqrt[X^2 - 6 X Y + Y^2 + 4 Z])}*)
Correct answer by Ulrich Neumann on February 16, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP