Skip to content

Commit 57d9544

Browse files
committed
Fix for change in printing for function_symbol.diff
1 parent 3b45386 commit 57d9544

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

symengine/lib/symengine_wrapper.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ cdef class Number(Basic):
742742

743743
@property
744744
def is_nonpositive(self):
745-
return not (self.is_complex or self.is_nonpositive)
745+
return not (self.is_complex or self.is_positive)
746746

747747
@property
748748
def is_complex(self):

symengine/tests/test_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_abs_diff():
8080
def test_Subs():
8181
x = Symbol("x")
8282
y = Symbol("y")
83-
_x = Symbol("_x")
83+
_x = Symbol("_xi_1")
8484
f = function_symbol("f", 2*x)
8585
assert f.diff(x) == 2 * Subs(Derivative(function_symbol("f", _x), [_x]), [_x], [2 * x])
8686
assert Subs(Derivative(function_symbol("f", x, y), [x]), [x, y], [_x, x]) \

0 commit comments

Comments
 (0)