Skip to content

Commit a3fa1f1

Browse files
committed
Pow attributes base and exp
1 parent 7d142ae commit a3fa1f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

symengine/lib/symengine_wrapper.pyx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,6 +1860,16 @@ class Pow(Basic):
18601860
def __new__(cls, a, b):
18611861
return _sympify(a) ** b
18621862

1863+
@property
1864+
def base(Basic self):
1865+
cdef RCP[const symengine.Pow] X = symengine.rcp_static_cast_Pow(self.thisptr)
1866+
return c2py(deref(X).get_base())
1867+
1868+
@property
1869+
def exp(Basic self):
1870+
cdef RCP[const symengine.Pow] X = symengine.rcp_static_cast_Pow(self.thisptr)
1871+
return c2py(deref(X).get_exp())
1872+
18631873
@property
18641874
def is_Pow(self):
18651875
return True

0 commit comments

Comments
 (0)