piecewise: matlab compatibility issue for certain interval forms #1277
Open
Description
the following is matlab compatible but produces an error in Octave 8.3.0 with symbolic package 3.1.1:
>> pkg load symbolic
>> syms x
>> y = piecewise(-2<x<0, 2*x +1);
error: Python exception: TypeError: Can only compare inequalities with Expr
occurred at line 14 of the Python code block:
return _op(*_ins)
error: called from
pycall_sympy__ at line 179 column 7
elementwise_op at line 102 column 5
ineq_helper at line 32 column 5
lt at line 71 column 5