octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48649] parse error with symbolic matrices


From: anonymous
Subject: [Octave-bug-tracker] [bug #48649] parse error with symbolic matrices
Date: Thu, 28 Jul 2016 02:49:49 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

URL:
  <http://savannah.gnu.org/bugs/?48649>

                 Summary: parse error with symbolic matrices
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 28 Jul 2016 02:49:47 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Ian Bruce
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: Any

    _______________________________________________________

Details:

transcript:


GNU Octave, version 4.0.3
Copyright (C) 2016 John W. Eaton and others.

Octave was configured for "x86_64-pc-linux-gnu".

>> pkg load symbolic
>>
>> syms a b c d e f g m
OctSymPy v2.4.0: this is free software without warranty, see source.
Initializing communication with SymPy using a popen2() pipe.
Some output from the Python subprocess (pid 6055) might appear next.
Python 2.7.12 (default, Jun 29 2016, 08:18:26)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> >>>
OctSymPy: Communication established.  SymPy v1.0.
>>
>> m = [ 1 2 3 ; 4 5 6 ; 7 8 9 ]
m =

   1   2   3
   4   5   6
   7   8   9

>> m = [ a c e ; b d f ; g g g ]
m = (sym 3×3 matrix)

  ⎡a  c  e⎤
  ⎢       ⎥
  ⎢b  d  f⎥
  ⎢       ⎥
  ⎣g  g  g⎦

>> m = [ a c e ; b d f ; g g 1 ]
m = (sym 3×3 matrix)

  ⎡a  c  e⎤
  ⎢       ⎥
  ⎢b  d  f⎥
  ⎢       ⎥
  ⎣g  g  1⎦

>> m = [ a c e ; b d f ; 0 g 1 ]
m = (sym 3×3 matrix)

  ⎡a  c  e⎤
  ⎢       ⎥
  ⎢b  d  f⎥
  ⎢       ⎥
  ⎣0  g  1⎦

>> m = [ a c e ; b d f ; g 0 1 ]
m = (sym 3×3 matrix)

  ⎡a  c  e⎤
  ⎢       ⎥
  ⎢b  d  f⎥
  ⎢       ⎥
  ⎣g  0  1⎦

>> m = [ a c e ; b d f ; 0 0 1 ]
error: octave_base_value::map_value(): wrong type argument 'scalar'
error: octave_base_value::parent_class_name_list(): wrong type argument
'scalar'
>>


Why is this an error?


>> m = [ 1 2 3 ; 4 5 6 ; g g g ]
error: octave_base_value::map_value(): wrong type argument 'scalar'
error: octave_base_value::parent_class_name_list(): wrong type argument
'scalar'
error: octave_base_value::parent_class_name_list(): wrong type argument
'scalar'
>>


Or this?





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48649>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]