rtoy / maxima

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

Unable to solve simple system #442

Open rtoy opened 2 days ago

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-02 19:51:34 Created by danielvolinski on 2014-08-05 21:35:27 Original: https://sourceforge.net/p/maxima/bugs/2795


Hi all,

I'm unable to solve this system with Maxima.

sol:solve([x=p*cos(q),y=p*sin(q)],[p,q]);

I get empty solution where it should be p=sqrt(x^2+y^2) and q=atan2(y,x).

Any ideas?

Thanks,

Daniel

I'm using "5.31.2" on Windows

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-02 19:51:35 Created by danielvolinski on 2014-10-11 08:35:07 Original: https://sourceforge.net/p/maxima/bugs/2795/#a77e


Is anybody answering this question?

Daniel

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-02 19:51:37 Created by robert_dodier on 2017-10-18 20:28:40 Original: https://sourceforge.net/p/maxima/bugs/2795/#f2e5


Diff:


--- old
+++ new
@@ -1,10 +1,10 @@
 Hi all,

 I'm unable to solve this system with Maxima.
-
+~~~~
 sol:solve([x=p*cos(q),y=p*sin(q)],[p,q]);
-
-I get empty solution where it should be p=sqrt(x^2+y^2) and q=atan2(y,x)
+~~~~
+I get empty solution where it should be `p=sqrt(x^2+y^2)` and `q=atan2(y,x)`.

 Any ideas?
rtoy commented 2 days ago

Imported from SourceForge on 2024-07-02 19:51:40 Created by robert_dodier on 2017-10-18 20:28:40 Original: https://sourceforge.net/p/maxima/bugs/2795/#78e6


Fixed up formatting.