Skip to content

Commit c6475b6

Browse files
committed
Singleton Class
1 parent 169ba50 commit c6475b6

File tree

8 files changed

+313
-58
lines changed

8 files changed

+313
-58
lines changed

symengine/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .lib.symengine_wrapper import (Symbol, sympify as S, sympify,
1+
from .lib.symengine_wrapper import (Symbol, S, sympify,
22
SympifyError, Add, Mul, Pow, function_symbol, I, E, pi, oo,
33
zoo, nan, have_mpfr, have_mpc, have_flint, have_piranha,
44
have_llvm, Integer, Rational, Float, Number, RealNumber,
@@ -9,7 +9,7 @@
99
UndefFunction, Function, FunctionSymbol as AppliedUndef,
1010
have_numpy, true, false, Equality, Unequality, GreaterThan,
1111
LessThan, StrictGreaterThan, StrictLessThan, Eq, Ne, Ge, Le,
12-
Gt, Lt, GoldenRatio, Catalan, EulerGamma, Dummy, perfect_power,
12+
Gt, Lt, golden_ratio, catalan, eulergamma, Dummy, perfect_power,
1313
integer_nthroot, isprime, sqrt_mod)
1414
from .utilities import var, symbols
1515
from .functions import *

symengine/lib/symengine.pxd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ cdef extern from "<symengine/number.h>" namespace "SymEngine":
332332
bool is_positive() nogil
333333
bool is_negative() nogil
334334
bool is_zero() nogil
335+
bool is_one() nogil
336+
bool is_minus_one() nogil
335337
bool is_complex() nogil
336338
pass
337339
cdef cppclass NumberWrapper(Basic):

0 commit comments

Comments
 (0)