We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d1f0ba commit c608ea2Copy full SHA for c608ea2
symengine/lib/symengine_wrapper.pyx
@@ -661,9 +661,14 @@ cdef class Symbol(Basic):
661
import sage.all as sage
662
return sage.SR.symbol(str(deref(X).get_name().decode("utf-8")))
663
664
+ @property
665
def name(self):
666
return self.__str__()
667
668
669
+ def is_Atom(self):
670
+ return True
671
+
672
@property
673
def is_Symbol(self):
674
return True
symengine/tests/test_symbol.py
@@ -4,6 +4,7 @@
4
5
def test_symbol():
6
x = Symbol("x")
7
+ assert x.name == "x"
8
assert str(x) == "x"
9
assert str(x) != "y"
10
assert repr(x) == str(x)
0 commit comments