जैसा की आप जानते है python मे math module के अंदर बहुत सारे फंक्शन होते है इनका उपयोग mathematical operation मे किया जाता है। इन फंक्शन को अलग अलग category मे रखा गया है जिसमे से आज हम Hyperbolic functions और Angular conversion के बारे मे जानेंगे।
Hyperbolic functions
math.cosh() : ये फंक्शन किसी दिए गए नंबर का hyperbolic cosine , return करता है |
Syntax :
math.cosh(x)
Source Code :
import math print("hyperbolic cosine : ", math.cosh(35)) print("hyperbolic cosine : ", math.cosh(-17)) OUTPUT : hyperbolic cosine : 793006726156715.4 hyperbolic cosine : 12077476.37678767
math.sinh() : ये फंक्शन किसी दिए गए नंबर का hyperbolic sine , return करता है |
Syntax :
math.sinh(x)
Source Code :
import math print(math.sinh(45)) print(math.sinh(-12)) OUTPUT : 1.7467135528742547e+19 -81377.39570642986
math.tanh() : ये फंक्शन किसी दिए गए नंबर का hyperbolic tangent , return करता है |
Syntax :
math.tanh(x)
Source Code :
import math print(math.tanh(10)) print(math.tanh(-80) OUTPUT : 0.9999999958776927 -1.0
Angular conversion function
math.radians() : ये Function दिए हुए angle X को degrees से radians में convert करके radians मे return करता है।
Syntax :
math.radians(x)
Source Code :
import math print(math.radians(180)) print(math.radians(240)) OUTPUT : 3.141592653589793 4.1887902047863905
math.degrees () : ये Function दिए हुए angle X को radians से degrees में convert करके degrees मे return करता है।
Syntax :
math.degrees(x)
Source Code :
import math print(math.degrees(2)) print(math.degrees(math.pi/5)) OUTPUT : 114.59155902616465 36.0