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