bugGNU Octave - Bugs: bug #51091, [octave forge] (symbolic) A symfun...

 
 

bug #51091: [octave forge] (symbolic) A symfun applied on a vector produces error of octsympy python libraries

Submitted by:  None
Submitted on:  Tue 23 May 2017 02:15:04 AM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 4.2.0
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.

 

Fri 04 Aug 2017 06:32:57 AM UTC, comment #2:

I've fixed this in https://github.com/cbm755/octsympy/pull/827

So it will be fixed in the next Symbolic release (probably 2.7.0).

This bug can be closed.

Colin Macdonald <cbm>
Tue 23 May 2017 05:15:09 AM UTC, comment #1:

Hi, thanks for filing this bug report. I believe this is a known bug that is already tracked, see https://github.com/cbm755/octsympy/issues/10 and https://github.com/cbm755/octsympy/issues/633.

As a workaround you can use subs, matlabFunction, or function_handle to evaluate a function on a set of points.

Mike Miller <mtmiller>
Project Administrator
Tue 23 May 2017 02:15:04 AM UTC, original submission:

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
>>

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by cbm (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  •  

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

    Only project members can vote.

     

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

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 14 Aug 2017 04:23:30 PM UTCmtmillerCategoryOctave Function=>Octave Forge Package
      StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sat 12 Aug 2017 12:42:32 AM UTCjweSummaryA symfun applied on a vector produces error of octsympy python libraries=>[octave forge] (symbolic) A symfun applied on a vector produces error of octsympy python libraries
    Tue 23 May 2017 05:15:09 AM UTCmtmillerStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1