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

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

[Octave-bug-tracker] [bug #45643] symbolic pkg function_handle rhs probl


From: Doug Stewart
Subject: [Octave-bug-tracker] [bug #45643] symbolic pkg function_handle rhs problems
Date: Tue, 28 Jul 2015 13:44:27 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36

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

                 Summary: symbolic pkg function_handle rhs problems
                 Project: GNU Octave
            Submitted by: dastew
            Submitted on: Tue 28 Jul 2015 13:44:27 GMT
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Doug Stewart
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Any

    _______________________________________________________

Details:

When the rhs is a constant, as in this example,
then the function_handle code does not know what to do.


>> syms y(x)
>> f=y==1
f = (sym) y(x) = 1
>> ff=function_handle(rhs(f))
Traceback (most recent call last):
  File "<stdin>", line 18, in <module>
  File "<stdin>", line 13, in _fcn
  File "/usr/local/lib/python2.7/dist-packages/sympy/matrices/matrices.py",
line 1145, in free_symbols
PYTHON: Error in cmd
Resetting the octsympy communication mechanism
Closing the Python pipe...
    return set.union(*[i.free_symbols for i in self])
TypeError: descriptor 'union' of 'set' object needs an argument

error: python_cmd: unexpected return
error: called from
    python_cmd at line 143 column 6
    findsymbols at line 77 column 7
    symvar at line 80 column 11
    findsym at line 45 column 5
    codegen>codegen_input_parser at line 207 column 14
    codegen at line 24 column 35
    function_handle at line 87 column 12
>>





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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