bugGNU Octave - Bugs: bug #67758, Incorrect result of symbolic solve...

 
 

bug #67758: Incorrect result of symbolic solve function

Submitter:  None
Submitted:  Tue 02 Dec 2025 12:30:26 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Damir Vrancic Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 10.1.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Tue 02 Dec 2025 12:30:26 PM UTC, original submission:  

Solving two symbolic equations with two unknowns can give incorrect result. It seems that function solve takes alphabetical order when solving the unknown and not the ones given by the user. For example


pkg load symbolic
syms U R I s L kE O kL MD J positive
[I1,O1]=solve(U == R*I+s*L*I+kE*O,kE*I == kL*O+MD+s*J*O,I,O)


gives correct result, while


pkg load symbolic
syms U R I s L kE O kL MD J positive
[O1,I1]=solve(U == R*I+s*L*I+kE*O,kE*I == kL*O+MD+s*J*O,O,I)


gives incorrect result (The actual results of O1 and I1 are swapped).

Anonymous

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code