rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

solve with list of vars #182

Open rtoy opened 4 months ago

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 08:15:42 Created by aleksasd on 2016-10-28 06:04:46 Original: https://sourceforge.net/p/maxima/bugs/3234


L:x*y*z+%lambda*(2*x*y+2*x*z+2*y*z-1)$
sist:[diff(L,x)=0,diff(L,y)=0,diff(L,z)=0,diff(L,%lambda)=0]$

solve(sist);
(%o1) [[x=-1/(sqrt(2)*sqrt(3)),%lambda=1/(2^(5/2)*sqrt(3)),z=-1/sqrt(6),
y=-1/(sqrt(2)*sqrt(3))],[x=1/(sqrt(2)*sqrt(3)),%lambda=-1/(2^(5/2)*sqrt(3)),
z=1/sqrt(6),y=1/(sqrt(2)*sqrt(3))]]

solve(sist,[x,y,z,%lambda]);
(%o2) []

why the solutions list is empty ?

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 08:15:43 Created by robert_dodier on 2016-10-29 18:06:29 Original: https://sourceforge.net/p/maxima/bugs/3234/#37df


Diff:


--- old
+++ new
@@ -1,10 +1,14 @@
+~~~~
 L:x*y*z+%lambda*(2*x*y+2*x*z+2*y*z-1)$
 sist:[diff(L,x)=0,diff(L,y)=0,diff(L,z)=0,diff(L,%lambda)=0]$

 solve(sist);
-(%o1) [[x=-1/(sqrt(2)*sqrt(3)),%lambda=1/(2^(5/2)*sqrt(3)),z=-1/sqrt(6),y=-1/(sqrt(2)*sqrt(3))],[x=1/(sqrt(2)*sqrt(3)),%lambda=-1/(2^(5/2)*sqrt(3)),z=1/sqrt(6),y=1/(sqrt(2)*sqrt(3))]]
+(%o1) [[x=-1/(sqrt(2)*sqrt(3)),%lambda=1/(2^(5/2)*sqrt(3)),z=-1/sqrt(6),
+y=-1/(sqrt(2)*sqrt(3))],[x=1/(sqrt(2)*sqrt(3)),%lambda=-1/(2^(5/2)*sqrt(3)),
+z=1/sqrt(6),y=1/(sqrt(2)*sqrt(3))]]

 solve(sist,[x,y,z,%lambda]);
 (%o2) []
+~~~~

 why the solutions list is empty ?
rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 08:15:45 Created by robert_dodier on 2016-10-29 18:06:29 Original: https://sourceforge.net/p/maxima/bugs/3234/#2ba3


fixing up formatting