Metoda cmath.sin() Pythonu
Příklad
Najděte sinus komplexního čísla:
#import cmath for complex number operations
import cmath
#find
the sine of complex number
print (cmath.sin(2 + 3j))
Definice a použití
Metoda cmath.sin()
vrací sinus čísla.
Sinus je goniometrická funkce představující poměr mezi opačnou stranou pravoúhlého trojúhelníku a přeponou.
Syntax
cmath.sin(x)
Hodnoty parametrů
Parameter | Description |
---|---|
x | Required. A number to find the sine of |
Technické údaje
Návratová hodnota: | Hodnota complex představující sinus komplexního čísla |
---|---|
Verze Pythonu: | 1.5 |