@@ -188,10 +188,10 @@ Supported operators
188
188
189
189
*NumExpr * supports the set of operators listed below:
190
190
191
- * Bitwise operators (and, or, not, xor): :code: `&, |, ~, ^ `
191
+ * Bitwise and logical operators (and, or, not, xor): :code: `&, |, ~, ^ `
192
192
* Comparison operators: :code: `<, <=, ==, !=, >=, > `
193
193
* Unary arithmetic operators: :code: `- `
194
- * Binary arithmetic operators: :code: `+, -, *, /, **, %, <<, >> `
194
+ * Binary arithmetic operators: :code: `+, -, *, /, //, **, %, <<, >> `
195
195
196
196
197
197
Supported functions
@@ -203,22 +203,33 @@ The next are the current supported set:
203
203
is true, number2 otherwise.
204
204
* :code: `{isinf, isnan, isfinite}(float|complex): bool ` -- returns element-wise True
205
205
for ``inf `` or ``NaN ``, ``NaN ``, not ``inf `` respectively.
206
+ * :code: `signbit(float|complex): bool ` -- returns element-wise True if signbit is set
207
+ False otherwise.
206
208
* :code: `{sin,cos,tan}(float|complex): float|complex ` -- trigonometric sine,
207
209
cosine or tangent.
208
210
* :code: `{arcsin,arccos,arctan}(float|complex): float|complex ` -- trigonometric
209
211
inverse sine, cosine or tangent.
210
212
* :code: `arctan2(float1, float2): float ` -- trigonometric inverse tangent of
211
213
float1/float2.
214
+ * :code: `hypot(float1, float2): float ` -- Euclidean distance between float1, float2
215
+ * :code: `nextafter(float1, float2): float ` -- next representable floating-point value after
216
+ float1 in direction of float2
217
+ * :code: `copysign(float1, float2): float ` -- return number with magnitude of float1 and
218
+ sign of float2
219
+ * :code: `{maximum,minimum}(float1, float2): float ` -- return max/min of float1, float2
212
220
* :code: `{sinh,cosh,tanh}(float|complex): float|complex ` -- hyperbolic sine,
213
221
cosine or tangent.
214
222
* :code: `{arcsinh,arccosh,arctanh}(float|complex): float|complex ` -- hyperbolic
215
223
inverse sine, cosine or tangent.
216
- * :code: `{log,log10,log1p}(float|complex): float|complex ` -- natural, base-10 and
224
+ * :code: `{log,log10,log1p,log2 }(float|complex): float|complex ` -- natural, base-10 and
217
225
log(1+x) logarithms.
218
226
* :code: `{exp,expm1}(float|complex): float|complex ` -- exponential and exponential
219
227
minus one.
220
228
* :code: `sqrt(float|complex): float|complex ` -- square root.
221
- * :code: `abs(float|complex): float|complex ` -- absolute value.
229
+ * :code: `trunc(float): float ` -- round towards zero
230
+ * :code: `round(float|complex|int): float|complex|int ` -- round to nearest integer (`rint `)
231
+ * :code: `sign(float|complex|int): float|complex|int ` -- return -1, 0, +1 depending on sign
232
+ * :code: `abs(float|complex|int): float|complex|int ` -- absolute value.
222
233
* :code: `conj(complex): complex ` -- conjugate value.
223
234
* :code: `{real,imag}(complex): float ` -- real or imaginary part of complex.
224
235
* :code: `complex(float, float): complex ` -- complex from real and imaginary
0 commit comments