Why is an empty list returned when solving for this linear system in Maxima?

房东的猫 提交于 2019-12-24 19:38:35

问题


I'm trying to solve a simple linear system in Maxima using solve like so:

/*Standard form*/
eq1 : x1 + 3*x2  + s1 = 6;
eq2 : 3*x1 + 2*x2 + s2 = 6;

base1 : solve([eq1,eq2],[s1,s2]);

This however returns an empty list and I don't know why. Any ideas? I'm pretty sure the system has a solution, so that shouldn't be the issue.

EDIT:

I attempted to insert the equations explicitly into solve in place of eq1 and eq2, and now it works. Now the question is, why do I need to explicitly insert the equations to be solved for into the first argument of solve. An in-depth answer about how Maxima works in this case would be welcome.

来源:https://stackoverflow.com/questions/51301955/why-is-an-empty-list-returned-when-solving-for-this-linear-system-in-maxima

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!