Funciones matemáticas en Python | Conjunto 3 (Funciones trigonométricas y angulares)

Algunas de las funciones matemáticas se analizan a continuación en el conjunto 1 y el conjunto 2. Funciones matemáticas en Python | Conjunto 1 (Funciones numéricas) Funciones matemáticas en Python | Conjunto 2 (Funciones logarítmicas y de potencia) En este artículo se analizan las funciones trigonométricas y angulares. 1. pecado() :- Esta función devuelve el suyo de valor pasado como argumento. El valor pasado en esta función debe estar en radianes . 2. porque() :- Esta función devuelve el coseno de valor pasado como argumento. El valor pasado en esta función debe estar en radianes . Python
   # Python code to demonstrate the working of   # sin() and cos()   # importing 'math' for mathematical operations   import   math   a   =   math  .  pi  /  6   # returning the value of sine of pi/6   print   (  'The value of sine of pi/6 is : '     end  =  ''  )   print   (  math  .  sin  (  a  ))   # returning the value of cosine of pi/6   print   (  'The value of cosine of pi/6 is : '     end  =  ''  )   print   (  math  .  cos  (  a  ))   
Output:
The value of sine of pi/6 is : 0.49999999999999994 The value of cosine of pi/6 is : 0.8660254037844387  

3. bronceado() :- Esta función devuelve el tangente de valor pasado como argumento. El valor pasado en esta función debe estar en radianes . 4. hipot(a b) :- Esto devuelve el hipotenusa de los valores pasados ​​en los argumentos. Numéricamente devuelve el valor de raíz cuadrada (a*a + b*b) . Python
   # Python code to demonstrate the working of   # tan() and hypot()   # importing 'math' for mathematical operations   import   math   a   =   math  .  pi  /  6   b   =   3   c   =   4   # returning the value of tangent of pi/6   print   (  'The value of tangent of pi/6 is : '     end  =  ''  )   print   (  math  .  tan  (  a  ))   # returning the value of hypotenuse of 3 and 4   print   (  'The value of hypotenuse of 3 and 4 is : '     end  =  ''  )   print   (  math  .  hypot  (  b    c  ))   
Output:
The value of tangent of pi/6 is : 0.5773502691896257 The value of hypotenuse of 3 and 4 is : 5.0  

5. grados() :- Esta función se utiliza para convertir el valor del argumento de radianes a grados . 6. radianes() :- Esta función se utiliza para convertir el valor del argumento de grados a radianes . Python
   # Python code to demonstrate the working of   # degrees() and radians()   # importing 'math' for mathematical operations   import   math   a   =   math  .  pi  /  6   b   =   30   # returning the converted value from radians to degrees   print   (  'The converted value from radians to degrees is : '     end  =  ''  )   print   (  math  .  degrees  (  a  ))   # returning the converted value from degrees to radians   print   (  'The converted value from degrees to radians is : '     end  =  ''  )   print   (  math  .  radians  (  b  ))   
Output:
The converted value from radians to degrees is : 29.999999999999996 The converted value from degrees to radians is : 0.5235987755982988