bugGNU Octave - Bugs: bug #45904, Symbolic toolbox ver 2.2.2: can't...

 
 

bug #45904: Symbolic toolbox ver 2.2.2: can't define (2x2) matrix with only one symbolic variable

Submitter:  None
Submitted:  Wed 09 Sep 2015 04:11:22 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Barry Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 28 Apr 2018 12:05:41 AM UTC, comment #3: 

Here's a temporary work-around (although perhaps it's bad to post a workaround since things might never get fixed at this rate...): the issue is that adjoining (non-single entry) rows or columns which produces potential clashes when you have a row with with symbols and a row which is purely scalar. So, you could...just add a lot of "x-x"s as entries to one of the entries of every row that is purely scalar. But this is probably not such a great thing to do if you're working with something like a large sparse matrix.

Anonymous
Wed 09 Sep 2015 11:49:44 PM UTC, comment #2: 

Thanks for reporting (and for confirming Doug). This is known and previously reported as bug #42152 (and bug #45423), closing as a duplicate.

Mike Miller <mtmiller>
Group Member
Wed 09 Sep 2015 07:37:41 PM UTC, comment #1: 

confirmed in ubuntu 14.04

x=3
X=sym([1,x;0,1]);
works
syms x
X=sym([1,x;0,1]);
does not work
but
X=sym([1,x;0,x]);
does work

Doug Stewart <dastew>
Wed 09 Sep 2015 04:11:22 PM UTC, original submission:  

Symbolic toolbox: can't define (2x2) matrix with only one symbolic variable.

Example:

>> syms x
>> X=sym([1,x;0,1]);

error: octave_base_value::map_value(): wrong type argument 'scalar'
error: octave_base_value::parent_class_name_list(): wrong type argument 'scalar'
error: evaluating argument list element number 1

>> X=sym([1,x;0,x])

X = (sym 2x2 matrix)

  [1  x]
  [    ]
  [0  x]

>>

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-09 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Operating SystemMicrosoft Windows Any
        Dependencies- Depends on bugs #42152

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code