हिंदी माध्यम नोट्स
C++ : Math Class ( Part -1 ) in hindi , sin() , cosine() , tan() , sinh() , cosh() , tanh() maths class in c++ language
इससे पहले operator article मे , basic mathematically operation addition , subtraction , multiplication और division को discuss किया है लेकिन जब advance operation जैसे power , square , cube , trigmetric value को find करने के लिए math class मे define किये function को use किया जाता है | इस class मे निन्म function होता है :
sin()
इस function का use किसी value की sin value को find करने के लिए किया जाता है | sin() function का use trigonometric के मुख्य value को find करने मे किया जाता है |इसका syntax निन्म होता है :
sin(x);
‘यहा पर
sin() ; ये sin function है जिसका use variable ‘x’ की sin value को find किया जाता है |
x : ये variable का नाम है जिसका sine value को find करना है |
इसका उदाहरन होता है :
#include<iostream.h>
#include<conio.h>
void main()
{
int degree1 , degree2 ;
cout<<“Enter degree1 : “;
cin>>degree1;
cout<<“Enter degree2 : “;
cin>>degree2;
float value1 = sin(degree1);
float value2 = sin(degree2);
cout<<“sin(degree1) :”<<value1<<endl
cout<<“sin(degree2) :”<<value2 <<endl;
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को degree1 , degree2 मे assign किया जाता है | और इस
value1 = sin(degree1); इस statement से value 1 से sin () value को calculate किया जाता है |
value2 = sin(degree2); इस statement से value 2 से sin () value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter degree1 : 30
Enter degree2 : 60
sin(degree1) : 0.8790
sin(degree2) : 0.50
cosine()
इस function का use किसी value की cosin value को find करने के लिए किया जाता है | cosin() function का use trigometric के मुख्य consine value को find करने मे किया जाता है |इसका syntax निन्म होता है :
cosin(a);
‘यहा पर
cosin() ; ये cosin function है जिसका use variable ‘x’ की cosin value को find किया जाता है |
a : ये variable का नाम है जिसका cosin value को find करना है |
इसका उदाहरन होता है :
#include<iostream.h>
#include<conio.h>
void main()
{
int d1 , d2 ;
cout<<“Enter degree1 : “;
cin>>degree1;
cout<<“Enter degree2 : “;
cin>>degree2;
float value1 = cosin(d1);
float value2 = cosin(d2);
cout<<“cosin(d1) :”<<value1<<endl
cout<<“cosin(d2) :”<<value2 <<endl;
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को d1 , d2 मे assign किया जाता है | और इस
value1 = cosin(d1); इस statement से value 1 से cosin () value को calculate किया जाता है |
value2 = cosin(d2); इस statement से value 2 से cosin () value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter degree1 : 60
Enter degree2 : 30
cosin(d1) : 0.50
cosin(d2) : 0.8790
tan()
c++ language मे tan () को भी use किया जा सकता है | इस function का use किसी value की tan value को find करने के लिए किया जाता है | cosin() function का use trigometric के मुख्य tangent value को find करने मे किया जाता है |इसका syntax निन्म होता है :
tan(x);
यहा पर
tan() ; ये tan function है जिसका use variable ‘x’ की tan value को find किया जाता है |
x : ये variable का नाम है जिसका tan value को find करना है |
इसका उदाहरन होता है :
#include<iostream.h>
#include<conio.h>
void main()
{
int degree1 , degree2 ;
cout<<“Enter degree1 : “;
cin>>degree1;
cout<<“Enter degree2 : “;
cin>>degree2;
float v1 = tan(degree1);
float v2 = tan(degree2);
cout<<“tan(degree1) :”<<v1<<endl
cout<<“tan(degree2) :”<<v2 <<endl;
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को degree1 , degree2 मे assign किया जाता है | और इस
v1 = tan(degree1); इस statement से degree1से tan () value को calculate किया जाता है |
v2 = tan(degree2); इस statement से degree2 से tan () value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter degree1 : 45
Enter degree2 : 60
tan (degree1) : 1
tan (degree2) : 0.50
sinh()
इस function का use किसी value की hyperbolic sin value को find करने के लिए किया जाता है sinin() function का use trigometric के मुख्य hyperbolic sine value को find करने मे किया जाता है |इसका syntax निन्म होता है :
sinh(x);
यहा पर
sinh() ; ये sinh function है जिसका use variable ‘x’ की hyperbolic sin value को find किया जाता है |
x : ये variable का नाम है जिसका sinh value को find करना है |
इसका उदाहरन होता है :
#include<iostream.h>
#include<conio.h>
void main()
{
int degree1 , degree2 ;
cout<<“Enter degree1 : “;
cin>>degree1;
cout<<“Enter degree2 : “;
cin>>degree2;
float v1 = sinh(degree1);
float v2 = sinh(degree2);
cout<<” sin(degree1) :”<<v1<<endl
cout<<” sin(degree2) :”<<v2 <<endl;
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को degree1 , degree2 मे assign किया जाता है | और इस
v1 = sinh(degree1); इस statement से degree1 से hyperbolic sin () value को calculate किया जाता है |
v2 = sinh(degree2); इस statement से degree2 से hyperbolic sin () value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter degree1 : 45
Enter degree2 : 60
sinh(degree1) : .50
sinh((degree2) : 0.875
cosh()
इस function का use किसी value की hyperbolic cos value को find करने के लिए किया जाता है cosin() function का use trigometric के मुख्य hyperbolic consine value को find करने मे किया जाता है |इसका syntax निन्म होता है :
cosh(x);
यहा पर
cosh() ; ये cosh function है जिसका use variable ‘x’ की hyperbolic cos value को find किया जाता है |
x : ये variable का नाम है जिसका cosh value को find करना है |
इसका उदाहरन होता है :
#include<iostream.h>
#include<conio.h>
void main()
{
int degree1 , degree2 ;
cout<<“Enter degree1 : “;
cin>>degree1;
cout<<“Enter degree2 : “;
cin>>degree2;
float v1 = cosh(degree1);
float v2 = cosh(degree2);
cout<<” cos(degree1) :”<<v1<<endl
cout<<” cos(degree2) :”<<v2 <<endl;
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को degree1 , degree2 मे assign किया जाता है | और इस
v1 = cosh(degree1); इस statement से degree1से hyperbolic cos () value को calculate किया जाता है |
v2 = cosh(degree2); इस statement से degree2 से hyperbolic cos () value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter degree1 : 45
Enter degree2 : 60
cosh(degree1) : .50
cosh((degree2) : 0.875
tanh()
c++ language मे tanh () को भी use किया जा सकता है | इस function का use किसी value की hyperbolic tan value को find करने के लिए किया जाता है | cosin() function का use trigometric के मुख्य hyperbolic tangent value को find करने मे किया जाता है |इसका syntax निन्म होता है :
tanh(x);
यहा पर
tanh() ; ये tanh function है जिसका use variable ‘x’ की hyperbolic tan value को find किया जाता है |
x : ये variable का नाम है जिसका tanh value को find करना है |
इसका उदाहरन होता है :
#include<iostream.h>
#include<conio.h>
void main()
{
int degree1 , degree2 ;
cout<<“Enter degree1 : “;
cin>>degree1;
cout<<“Enter degree2 : “;
cin>>degree2;
float v1 = tanh(degree1);
float v2 = tanh(degree2);
cout<<“tan(degree1) :”<<v1<<endl
cout<<“tan(degree2) :”<<v2 <<endl;
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को degree1 , degree2 मे assign किया जाता है | और इस
v1 = tanh(degree1); इस statement से degree1से hyperbolic tan () value को calculate किया जाता है |
v2 = tanh(degree2); इस statement से degree2 से hyperbolic tan () value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter degree1 : 45
Enter degree2 : 60
tanh(degree1) : .50
tanh((degree2) : 1
इस article मे , math क्लासे के trigonometric और hyperbolic trigonmetric function को discuss किया गया है अब आगे के article मे , math class के कुछ और function को discuss करेगे |
Recent Posts
सती रासो किसकी रचना है , sati raso ke rachnakar kaun hai in hindi , सती रासो के लेखक कौन है
सती रासो के लेखक कौन है सती रासो किसकी रचना है , sati raso ke…
मारवाड़ रा परगना री विगत किसकी रचना है , marwar ra pargana ri vigat ke lekhak kaun the
marwar ra pargana ri vigat ke lekhak kaun the मारवाड़ रा परगना री विगत किसकी…
राजस्थान के इतिहास के पुरातात्विक स्रोतों की विवेचना कीजिए sources of rajasthan history in hindi
sources of rajasthan history in hindi राजस्थान के इतिहास के पुरातात्विक स्रोतों की विवेचना कीजिए…
गुर्जरात्रा प्रदेश राजस्थान कौनसा है , किसे कहते है ? gurjaratra pradesh in rajasthan in hindi
gurjaratra pradesh in rajasthan in hindi गुर्जरात्रा प्रदेश राजस्थान कौनसा है , किसे कहते है…
Weston Standard Cell in hindi वेस्टन मानक सेल क्या है इससे सेल विभव (वि.वा.बल) का मापन
वेस्टन मानक सेल क्या है इससे सेल विभव (वि.वा.बल) का मापन Weston Standard Cell in…
polity notes pdf in hindi for upsc prelims and mains exam , SSC , RAS political science hindi medium handwritten
get all types and chapters polity notes pdf in hindi for upsc , SSC ,…