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

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

[Octave-bug-tracker] [bug #51091] A symfun applied on a vector produces


From: anonymous
Subject: [Octave-bug-tracker] [bug #51091] A symfun applied on a vector produces error of octsympy python libraries
Date: Mon, 22 May 2017 22:15:06 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0

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

                 Summary: A symfun applied on a vector produces error of
octsympy python libraries
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 23 May 2017 02:15:04 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

pkg load symbolic

%Proof:

s=[-3  -2  -1   0   1   2   3];

syms g(x);
g(x)=x.^2;

y=g(s);

% end proof

These code not run and produce the following error in "Commands Window":

>> pkg load symbolic
>>
>> %Proof:
>>
>> s=[-3  -2  -1   0   1   2   3];
>>
>> syms g(x);
OctSymPy v2.2.4: this is free software without warranty, see source.
Initializing communication with SymPy using a popen2() pipe.
Some output from the Python subprocess (pid 8257) might appear next.
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> >>>
OctSymPy: Communication established.  SymPy v0.7.6.1.
>> g(x)=x.^2;
>>
>> y=g(s);
Traceback (most recent call last):
  File "<stdin>", line 8, in <module>
  File "<stdin>", line 5, in _fcn
  File "<stdin>", line 16, in _monkey_patch_matpow_doit
  File "/usr/lib/python2.7/dist-packages/sympy/matrices/matrices.py", line
535, in __pow__
    raise NonSquareMatrixError()
sympy.matrices.matrices.NonSquareMatrixError

PYTHON: Error in cmd
Resetting the octsympy communication mechanism
Closing the Python pipe...
error: python_cmd: unexpected return
error: called from
    python_cmd at line 144 column 6
    subs at line 159 column 5
    subsref at line 32 column 11
>>
>> % end proof
>>




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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