@@ -6739,7 +6739,7 @@ cdef class Expression(Expression_abc):
6739
6739
# Basic arithmetic wrappers
6740
6740
# which allow disabling automatic evaluation with the hold parameter
6741
6741
# ###########################################################################
6742
- def power (self , exp , hold = False ):
6742
+ def power (self , exp , bint hold = False ):
6743
6743
"""
6744
6744
Return the current expression to the power ``exp``.
6745
6745
@@ -6762,7 +6762,7 @@ cdef class Expression(Expression_abc):
6762
6762
g_hold2_wrapper(g_power_construct, self ._gobj, nexp._gobj,
6763
6763
hold))
6764
6764
6765
- def add (self , *args , hold = False ):
6765
+ def add (self , *args , bint hold = False ):
6766
6766
"""
6767
6767
Return the sum of the current expression and the given arguments.
6768
6768
@@ -6794,7 +6794,7 @@ cdef class Expression(Expression_abc):
6794
6794
vec.push_back((< Expression> nargs[i])._gobj)
6795
6795
return new_Expression_from_GEx(self ._parent, g_add_construct(vec, hold))
6796
6796
6797
- def mul (self , *args , hold = False ):
6797
+ def mul (self , *args , bint hold = False ):
6798
6798
"""
6799
6799
Return the product of the current expression and the given arguments.
6800
6800
@@ -8297,7 +8297,7 @@ cdef class Expression(Expression_abc):
8297
8297
sig_off()
8298
8298
return new_Expression_from_GEx(self ._parent, r)
8299
8299
8300
- def abs (self , hold = False ):
8300
+ def abs (self , bint hold = False ):
8301
8301
"""
8302
8302
Return the absolute value of this expression.
8303
8303
@@ -8333,7 +8333,7 @@ cdef class Expression(Expression_abc):
8333
8333
return new_Expression_from_GEx(self ._parent,
8334
8334
g_hold_wrapper(g_abs, self ._gobj, hold))
8335
8335
8336
- def step (self , hold = False ):
8336
+ def step (self , bint hold = False ):
8337
8337
"""
8338
8338
Return the value of the unit step function, which is 0 for
8339
8339
negative x, 1 for 0, and 1 for positive x.
@@ -8365,7 +8365,7 @@ cdef class Expression(Expression_abc):
8365
8365
return new_Expression_from_GEx(self ._parent,
8366
8366
g_hold_wrapper(g_step, self ._gobj, hold))
8367
8367
8368
- def csgn (self , hold = False ):
8368
+ def csgn (self , bint hold = False ):
8369
8369
"""
8370
8370
Return the sign of ``self``, which is -1 if ``self < 0``, 0 if
8371
8371
``self == 0``, and 1 if ``self > 0``, or unevaluated when ``self`` is a
@@ -8410,7 +8410,7 @@ cdef class Expression(Expression_abc):
8410
8410
return new_Expression_from_GEx(self ._parent,
8411
8411
g_hold_wrapper(g_csgn, self ._gobj, hold))
8412
8412
8413
- def conjugate (self , hold = False ):
8413
+ def conjugate (self , bint hold = False ):
8414
8414
"""
8415
8415
Return the complex conjugate of this symbolic expression.
8416
8416
@@ -8501,7 +8501,7 @@ cdef class Expression(Expression_abc):
8501
8501
"""
8502
8502
return (self * self .conjugate()).expand()
8503
8503
8504
- def real_part (self , hold = False ):
8504
+ def real_part (self , bint hold = False ):
8505
8505
"""
8506
8506
Return the real part of this symbolic expression.
8507
8507
@@ -8568,7 +8568,7 @@ cdef class Expression(Expression_abc):
8568
8568
8569
8569
real = real_part
8570
8570
8571
- def imag_part (self , hold = False ):
8571
+ def imag_part (self , bint hold = False ):
8572
8572
r """
8573
8573
Return the imaginary part of this symbolic expression.
8574
8574
@@ -8635,7 +8635,7 @@ cdef class Expression(Expression_abc):
8635
8635
8636
8636
imag = imag_part
8637
8637
8638
- def sqrt (self , hold = False ):
8638
+ def sqrt (self , bint hold = False ):
8639
8639
"""
8640
8640
Return the square root of this expression.
8641
8641
@@ -8703,7 +8703,7 @@ cdef class Expression(Expression_abc):
8703
8703
return new_Expression_from_GEx(self ._parent,
8704
8704
g_hold2_wrapper(g_power_construct, self ._gobj, g_ex1_2, hold))
8705
8705
8706
- def sin (self , hold = False ):
8706
+ def sin (self , bint hold = False ):
8707
8707
"""
8708
8708
EXAMPLES::
8709
8709
@@ -8756,7 +8756,7 @@ cdef class Expression(Expression_abc):
8756
8756
return new_Expression_from_GEx(self ._parent,
8757
8757
g_hold_wrapper(g_sin, self ._gobj, hold))
8758
8758
8759
- def cos (self , hold = False ):
8759
+ def cos (self , bint hold = False ):
8760
8760
"""
8761
8761
Return the cosine of ``self``.
8762
8762
@@ -8817,7 +8817,7 @@ cdef class Expression(Expression_abc):
8817
8817
return new_Expression_from_GEx(self ._parent,
8818
8818
g_hold_wrapper(g_cos, self ._gobj, hold))
8819
8819
8820
- def tan (self , hold = False ):
8820
+ def tan (self , bint hold = False ):
8821
8821
"""
8822
8822
EXAMPLES::
8823
8823
@@ -8869,7 +8869,7 @@ cdef class Expression(Expression_abc):
8869
8869
return new_Expression_from_GEx(self ._parent,
8870
8870
g_hold_wrapper(g_tan, self ._gobj, hold))
8871
8871
8872
- def arcsin (self , hold = False ):
8872
+ def arcsin (self , bint hold = False ):
8873
8873
"""
8874
8874
Return the arcsin of x, i.e., the number y between -pi and pi
8875
8875
such that sin(y) == x.
@@ -8922,7 +8922,7 @@ cdef class Expression(Expression_abc):
8922
8922
return new_Expression_from_GEx(self ._parent,
8923
8923
g_hold_wrapper(g_asin, self ._gobj, hold))
8924
8924
8925
- def arccos (self , hold = False ):
8925
+ def arccos (self , bint hold = False ):
8926
8926
"""
8927
8927
Return the arc cosine of ``self``.
8928
8928
@@ -8972,7 +8972,7 @@ cdef class Expression(Expression_abc):
8972
8972
return new_Expression_from_GEx(self ._parent,
8973
8973
g_hold_wrapper(g_acos, self ._gobj, hold))
8974
8974
8975
- def arctan (self , hold = False ):
8975
+ def arctan (self , bint hold = False ):
8976
8976
"""
8977
8977
Return the arc tangent of ``self``.
8978
8978
@@ -9021,7 +9021,7 @@ cdef class Expression(Expression_abc):
9021
9021
return new_Expression_from_GEx(self ._parent,
9022
9022
g_hold_wrapper(g_atan, self ._gobj, hold))
9023
9023
9024
- def arctan2 (self , x , hold = False ):
9024
+ def arctan2 (self , x , bint hold = False ):
9025
9025
"""
9026
9026
Return the inverse of the 2-variable tan function on ``self`` and ``x``.
9027
9027
@@ -9125,7 +9125,7 @@ cdef class Expression(Expression_abc):
9125
9125
return new_Expression_from_GEx(self ._parent,
9126
9126
g_hold2_wrapper(g_atan2, self ._gobj, nexp._gobj, hold))
9127
9127
9128
- def sinh (self , hold = False ):
9128
+ def sinh (self , bint hold = False ):
9129
9129
r """
9130
9130
Return sinh of ``self``.
9131
9131
@@ -9183,7 +9183,7 @@ cdef class Expression(Expression_abc):
9183
9183
return new_Expression_from_GEx(self ._parent,
9184
9184
g_hold_wrapper(g_sinh, self ._gobj, hold))
9185
9185
9186
- def cosh (self , hold = False ):
9186
+ def cosh (self , bint hold = False ):
9187
9187
r """
9188
9188
Return cosh of ``self``.
9189
9189
@@ -9239,7 +9239,7 @@ cdef class Expression(Expression_abc):
9239
9239
return new_Expression_from_GEx(self ._parent,
9240
9240
g_hold_wrapper(g_cosh, self ._gobj, hold))
9241
9241
9242
- def tanh (self , hold = False ):
9242
+ def tanh (self , bint hold = False ):
9243
9243
r """
9244
9244
Return tanh of ``self``.
9245
9245
@@ -9293,7 +9293,7 @@ cdef class Expression(Expression_abc):
9293
9293
return new_Expression_from_GEx(self ._parent,
9294
9294
g_hold_wrapper(g_tanh, self ._gobj, hold))
9295
9295
9296
- def arcsinh (self , hold = False ):
9296
+ def arcsinh (self , bint hold = False ):
9297
9297
"""
9298
9298
Return the inverse hyperbolic sine of ``self``.
9299
9299
@@ -9346,7 +9346,7 @@ cdef class Expression(Expression_abc):
9346
9346
return new_Expression_from_GEx(self ._parent,
9347
9347
g_hold_wrapper(g_asinh, self ._gobj, hold))
9348
9348
9349
- def arccosh (self , hold = False ):
9349
+ def arccosh (self , bint hold = False ):
9350
9350
"""
9351
9351
Return the inverse hyperbolic cosine of ``self``.
9352
9352
@@ -9395,7 +9395,7 @@ cdef class Expression(Expression_abc):
9395
9395
return new_Expression_from_GEx(self ._parent,
9396
9396
g_hold_wrapper(g_acosh, self ._gobj, hold))
9397
9397
9398
- def arctanh (self , hold = False ):
9398
+ def arctanh (self , bint hold = False ):
9399
9399
"""
9400
9400
Return the inverse hyperbolic tangent of ``self``.
9401
9401
@@ -9452,7 +9452,7 @@ cdef class Expression(Expression_abc):
9452
9452
return new_Expression_from_GEx(self ._parent,
9453
9453
g_hold_wrapper(g_atanh, self ._gobj, hold))
9454
9454
9455
- def exp (self , hold = False ):
9455
+ def exp (self , bint hold = False ):
9456
9456
r """
9457
9457
Return exponential function of ``self``, i. e. , `e` to the
9458
9458
power of ``self``.
@@ -9508,7 +9508,7 @@ cdef class Expression(Expression_abc):
9508
9508
return new_Expression_from_GEx(self ._parent,
9509
9509
g_hold_wrapper(g_exp, self ._gobj, hold))
9510
9510
9511
- def log (self , b = None , hold = False ):
9511
+ def log (self , b = None , bint hold = False ):
9512
9512
"""
9513
9513
Return the logarithm of ``self``.
9514
9514
@@ -9571,7 +9571,7 @@ cdef class Expression(Expression_abc):
9571
9571
else :
9572
9572
return res/ self .coerce_in(b).log(hold = hold)
9573
9573
9574
- def zeta (self , hold = False ):
9574
+ def zeta (self , bint hold = False ):
9575
9575
"""
9576
9576
EXAMPLES::
9577
9577
@@ -9613,7 +9613,7 @@ cdef class Expression(Expression_abc):
9613
9613
cdef GEx x = g_hold_wrapper(g_zeta, self ._gobj, hold)
9614
9614
return new_Expression_from_GEx(self ._parent, x)
9615
9615
9616
- def factorial (self , hold = False ):
9616
+ def factorial (self , bint hold = False ):
9617
9617
"""
9618
9618
Return the factorial of ``self``.
9619
9619
@@ -9655,7 +9655,7 @@ cdef class Expression(Expression_abc):
9655
9655
sig_off()
9656
9656
return new_Expression_from_GEx(self ._parent, x)
9657
9657
9658
- def binomial (self , k , hold = False ):
9658
+ def binomial (self , k , bint hold = False ):
9659
9659
"""
9660
9660
Return binomial coefficient "self choose k".
9661
9661
@@ -9707,7 +9707,7 @@ cdef class Expression(Expression_abc):
9707
9707
sig_off()
9708
9708
return new_Expression_from_GEx(self ._parent, x)
9709
9709
9710
- def Order (self , hold = False ):
9710
+ def Order (self , bint hold = False ):
9711
9711
"""
9712
9712
Return the order of the expression, as in big oh notation.
9713
9713
@@ -9729,7 +9729,7 @@ cdef class Expression(Expression_abc):
9729
9729
return new_Expression_from_GEx(self ._parent,
9730
9730
g_hold_wrapper(g_Order, self ._gobj, hold))
9731
9731
9732
- def gamma (self , *, hold = False ):
9732
+ def gamma (self , *, bint hold = False ):
9733
9733
"""
9734
9734
Return the Gamma function evaluated at ``self``.
9735
9735
@@ -9794,7 +9794,7 @@ cdef class Expression(Expression_abc):
9794
9794
sig_off()
9795
9795
return new_Expression_from_GEx(self ._parent, x)
9796
9796
9797
- def log_gamma (self , hold = False ):
9797
+ def log_gamma (self , bint hold = False ):
9798
9798
"""
9799
9799
Return the log gamma function evaluated at ``self``.
9800
9800
This is the logarithm of gamma of ``self``, where
0 commit comments