4 unknown 4 equetions

6 views (last 30 days)
Samil Ekrem Salli
Samil Ekrem Salli on 8 Jun 2021
Commented: Star Strider on 8 Jun 2021
clc;clear all;close all;clear vars;
syms a b c d
eq1=a+b+c+d==-9.3;
eq2=(b*a+2)+(2+d*c)+(c+d)*(b+a)==+7;
eq3=(b+a)+(d+c)*(b*a+2)+(a+b)*(2+d*c)+(c+d)==-4.507;
eq4=(b+a)*(d+c)+(2+d*c)*(b*a+2)+(c+d)*(a+b)==-11.181;
S=solve(eq1,eq2,eq3,eq4);
I couldnt find values pls help me

Accepted Answer

Star Strider
Star Strider on 8 Jun 2021
syms a b c d
eq1=a+b+c+d==-9.3;
eq2=(b*a+2)+(2+d*c)+(c+d)*(b+a)==+7;
eq3=(b+a)+(d+c)*(b*a+2)+(a+b)*(2+d*c)+(c+d)==-4.507;
eq4=(b+a)*(d+c)+(2+d*c)*(b*a+2)+(c+d)*(a+b)==-11.181;
S=solve(eq1,eq2,eq3,eq4);
a = vpa(S.a, 10)
a = 
b = vpa(S.b, 10)
b = 
c = vpa(S.c, 10)
c = 
d = vpa(S.d, 10)
d = 
If you want to convert them to double precision variables to use in numeric (rather than symbolic) calculations, use double instead of vpa.
.
  5 Comments
John D'Errico
John D'Errico on 8 Jun 2021
Edited: John D'Errico on 8 Jun 2021
At least, the equivalent to a 6th degree polynomial remains, once you eliminate 3 of the 4 unknowns.
Star Strider
Star Strider on 8 Jun 2021
@Samil Ekrem Salli — As always, my pleasure!

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!