Python math.expm1() Yöntemi
Örnek
Bir sayının üstel değerini bulun - 1:
#Import math Library
import math
#Return the exponential value of
a number - 1
print(math.expm1(32))
print(math.expm1(-10.89))
Tanım ve Kullanım
Yöntem math.expm1()
, E x - 1 değerini döndürür.
'E', doğal logaritma sisteminin tabanıdır (yaklaşık 2.718282) ve x, kendisine iletilen sayıdır.
Bu işlev, 1'i çağırıp çıkarmaktan daha doğrudur .
math.exp()
Sözdizimi
math.expm1(x)
Parametre Değerleri
Parameter | Description |
---|---|
x | Required. Specifies the exponent |
Teknik detaylar
Geri dönüş değeri: | E x - 1'i float temsil eden bir değer |
---|---|
Python Sürümü: | 2.7 |