MATLAB: A question of simultaneous equations

simultaneous equations

I wanna write a code to solve multiple simultaneous equations,
Like this :
F1=(a-b)^2+(d-e)^2;
F2=(a-b)^2+(-d-e)^2;
F3=(a-b)^2+(2*g-d-e)^2;
F4=(-a-b)^2+(d-e)^2;
F5=(-a-b)^2+(-d-e)^2;
F6=(-a-b)^2+(2*g-d-e)^2;
F7=(2*c-a-b)^2+(d-e)^2;
F8=(2*c-a-b)^2+(-d-e)^2;
F9=(2*c-a-b)^2+(2*g-d-e)^2;
And F1~F9 I know values are f=[10 26 34 50 58 74 122 146 170];
But I need to assume that I don't know which value is F1~F9,
F1 might is a value among f[10 26 34 50 58 74 122 146 170],and so on.
I wanna know can these above multiple simultaneous equations be solved by Matlab?
Thank you in advance!

Best Answer

  • f=[10 34 58 26 50 74 122 146 170] and [a b c d e g]=[4 1 8 3 2 6]
    or
    f=[10 34 58 122 146 170 26 50 74] and [a b c d e g]=[7 4 8 3 2 6]
    or
    f=[10 58 34 26 74 50 170 122 146] and [a b c d e g]=[4 1 8 4 3 6]
    or
    f=[10 58 34 122 170 146 26 74 50] and [a b c d e g]=[7 4 8 4 3 6]
    Nothing you should try with MATLAB - it's a brainteaser.
    Best wishes
    Torsten.