Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Maxima, how can I solve this equation?

In Maxima, how can I solve this equation? And actually I have 24 unknown value with lots of this kind of equation. How I can use Maxima to solve?

to know the unknown value: a, b, c, d

eq:[a*c=8,a*d=10,b*c=12,b*d=15,a+b=5,c+d=9];
solve(eq,[a,b,c,d]);
like image 729
Yu Hsien Lin Avatar asked Nov 26 '25 23:11

Yu Hsien Lin


1 Answers

With four unknowns you have to have four equations. Ignore one set of equations and run:

sol1: solve([a*c=8,a*d=10,b*c=12,a+b=5],[a,b,c,d]);
              [[a = 2, b = 3, c = 4, d = 5]]

Then, ignore an other set of equations and run again:

sol2: solve([a*c=8,a*d=10,b*c=12,c+d=9],[a,b,c,d]);
              [[a = 2, b = 3, c = 4, d = 5]]

If the two results are the same, then your system is consistent and has solution sol1sol2.

like image 74
Eelvex Avatar answered Nov 30 '25 02:11

Eelvex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!