Every line of 'math.exp python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
338 Max(val1: UInt32,val2: UInt32) -> UInt32 339 340 Returns the larger of two 32-bit unsigned integers. 341 342 val1: The first of two 32-bit unsigned integers to compare. 343 val2: The second of two 32-bit unsigned integers to compare. 344 Returns: Parameter val1 or val2,whichever is larger. 345 Max(val1: Byte,val2: Byte) -> Byte 346 347 Returns the larger of two 8-bit unsigned integers. 348 349 val1: The first of two 8-bit unsigned integers to compare. 350 val2: The second of two 8-bit unsigned integers to compare. 351 Returns: Parameter val1 or val2,whichever is larger. 352 Max(val1: SByte,val2: SByte) -> SByte 353 354 Returns the larger of two 8-bit signed integers. 355 356 val1: The first of two 8-bit signed integers to compare.
465 def my_exp(x): 466 if isinstance(x, pyvips.Image): 467 return x.exp() 468 else: 469 return math.exp(x)
118 def exp(x): 119 return Exp(float(x))
58 def exp(x): 59 return np.exp(x)
35 def exp(x): 36 return math.exp(max(-20,min(20,x)))
1017 def exp(x): 1018 return C.exp(x)
18 def _exp(value): 19 if isinstance(value, numbers.Number): 20 return math.exp(value) 21 return value.exp()
39 def safe_exp(value): 40 """Exponentiation with catching of overflow error.""" 41 try: 42 ans = math.exp(value) 43 except OverflowError: 44 ans = float("inf") 45 return ans
37 def exp2(x): 38 with tf.name_scope('Exp2'): 39 return tf.exp(x * np.float32(np.log(2.0)))
119 def exp(self): 120 return self._compose_unop(bi.exp)