Skip to content

Commit 69737c0

Browse files
committed
Correct name: PowerExprPowExpr
1 parent f7159a0 commit 69737c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pyscipopt/expr.pxi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ cdef class Expr:
123123

124124
if other[CONST] == 0:
125125
return ConstExpr(1.0)
126-
return PowerExpr(self, other[CONST])
126+
return PowExpr(self, other[CONST])
127127

128128
def __rpow__(self, other):
129129
other = Expr.to_const_or_var(other)
@@ -375,7 +375,7 @@ cdef class ProdExpr(FuncExpr):
375375
return self.coef * _evaluate(self.children, scip, sol)
376376

377377

378-
cdef class PowerExpr(FuncExpr):
378+
cdef class PowExpr(FuncExpr):
379379
"""Expression like `pow(expression, exponent)`."""
380380

381381
def __init__(self, base, expo: float = 1.0):
@@ -386,7 +386,7 @@ cdef class PowerExpr(FuncExpr):
386386
return (frozenset(self), self.expo).__hash__()
387387

388388
def __repr__(self):
389-
return f"PowerExpr({tuple(self)}, {self.expo})"
389+
return f"PowExpr({tuple(self)}, {self.expo})"
390390

391391
def _normalize(self) -> Expr:
392392
if self.expo == 0:

0 commit comments

Comments
 (0)