bugGNU Octave - Bugs: bug #58870, [octave forge] (symbolic) Failure...


bug #58870: [octave forge] (symbolic) Failure in matrix power

Submitted by:  Rafael Laboissiere <rlaboiss>
Submitted on:  Sun 02 Aug 2020 11:12:02 AM UTC  
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  other Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 02 Aug 2020 11:12:02 AM UTC, original submission:  

In the symbolic package, version 2.9.0, there is a failing unit test in inst/@sym/mpower.m when running against SymPy 1.6.1, which is related to this:

octave:1> pkg load symbolic
octave:2>  syms x
Symbolic pkg v2.9.0: Python communication link active, SymPy v1.6.1.
octave:3>  A = [1 2; 3 4];
octave:4>  B = x^A;
error: Python exception: TypeError: unsupported operand type(s) for ** or pow(): 'Symbol' and 'MutableDenseMatrix'
    occurred at line 2 of the Python code block:
    return x**y
error: called from
    pycall_sympy__ at line 178 column 7
    mpower at line 76 column 5

The problem seems to come from SymPy itself:

>>> from sympy import *
>>> x = symbols ('x')
>>> x ** Matrix ([[1, 2], [3, 4]])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for ** or pow(): 'Symbol' and 'MutableDenseMatrix'

Rafael Laboissiere <rlaboiss>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5