Python cmath.tan() Metode
Contoh
Tentukan tangen bilangan kompleks:
#Import cmath Library
import cmath
#Return the tangent of a
complex number
print (cmath.tan(2 + 3j))
Definisi dan Penggunaan
Metode cmath.tan()
ini mengembalikan tangen bilangan kompleks.
Sintaksis
cmath.tan(x)
Nilai Parameter
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
Detail Teknis
Nilai Kembali: | Nilai complex , yang mewakili garis singgung bilangan kompleks |
---|---|
Versi Python: | 1.5 |