JOIN us on
WhatsApp Group Join Now
Telegram Join Join Now

हिंदी माध्यम नोट्स

Class 6

Hindi social science science maths English

Class 7

Hindi social science science maths English

Class 8

Hindi social science science maths English

Class 9

Hindi social science science Maths English

Class 10

Hindi Social science science Maths English

Class 11

Hindi sociology physics physical education maths english economics geography History

chemistry business studies biology accountancy political science

Class 12

Hindi physics physical education maths english economics

chemistry business studies biology accountancy Political science History sociology

Home science Geography

English medium Notes

Class 6

Hindi social science science maths English

Class 7

Hindi social science science maths English

Class 8

Hindi social science science maths English

Class 9

Hindi social science science Maths English

Class 10

Hindi Social science science Maths English

Class 11

Hindi physics physical education maths entrepreneurship english economics

chemistry business studies biology accountancy

Class 12

Hindi physics physical education maths entrepreneurship english economics

chemistry business studies biology accountancy

Categories: c++ language in hindi

C++ : Math.h class ( Part -3 ) in hindi , exp() , log10() , ceil()

इससे पहले के article मे math.h header file के trigonometric , hyperbolic trigomatric , pow ,square और cube function को discuss किया था | अब इस article मे math.h class के बाकि functions को discuss करेगे |
  1. exp()
    exp() function का use exponation value को calcualate करने के लिए किया जाता है | function exp() का syntax निन्म होता है :-
    exp(value);
    यहा पर
    exp() : ये exponation function का keyword है जिसे exp() function को call करने के लिए किया जाता अहि |
    value : ये e की power है |
    इस function का use कई सारे mathmetically calculation करने के लिए क्या जाता है | इसका उदाहरन निन्म है :-
    #include<iostream.h>
    #include<conio.h>
    void main()
    {
    int v1 , v2    ;
    cout<<“Enter value 1  : “;
    cin>>v1;
    cout<<“Enter value2 : “;
    cin>>v2;
    int value2 = exp(v2);
    int value1 = exp( v1 );
    cout<<” Exponation output of v1 :”<<value1<<endl
    cout<<“Exponation output of v2 :”<<value2 <<endl;
    }
    getch();
    }
    इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को   v1 और v2 मे assign किया जाता है | और इस
    int value1 = exp(v2); = square (v2);; इस statement से  first exponation expression  की  value को calculate किया जाता है |
    int value1 = exp( v1 ); इस statement से  second exponation expression  की  value को calculate किया जाता है |
    इसका आउटपुट होगा :
    Enter value 1  : 5
    Enter value 2  : 6
    Exponation output of v1 : 148
    Exponation output of v2 : 403

2. log10()
exp() function का use logirithm value को calcualate करने के लिए किया जाता है | इसमें logirithm value जिसकी base 10 होती है उसको value को calcualate किया जाता है | function log10() का syntax निन्म होता है :-
log10(value);
यहा पर
log10() : ये logrithm function का keyword है जिसे log10() function को call करने के लिए किया जाता अहि |
value : ये  log () function मे pass की गयी value है |
इस function का use कई सारे mathmetically calculation करने के लिए क्या जाता है | इसका उदाहरन निन्म है :-
#include<iostream.h>
#include<conio.h>
void main()
{
int v1 , v2    ;
cout<<“Enter value 1  : “;
cin>>v1;
cout<<“Enter value2 : “;
cin>>v2;
int value2 = log10(v2);
int value1 = log10( v1 );
cout<<” Logrithm output of v1 :”<<value1<<endl
cout<<“Logrithm output of v2 :”<<value2 <<endl;
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को   v1 और v2 मे assign किया जाता है | और इस
int value2 = log10(v2); इस statement से  first logirithm expression  की  value को calculate किया जाता है |
int value1 = log10( v1 ); इस statement से  second logirithm expression  की  value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter value 1  : 100
Enter value 2  : 1000
logirithm output of v1 : 2
logirithm output of v2 : 3

3. fabs()
fabs() function का use absolute value को calcualate करने के लिए किया जाता है | इसमें  absolute value जिसकी base 10 होती है उसको value को calcualate किया जाता है | function fabs() का syntax निन्म होता है :-
fabs(value);
यहा पर
fabs () : ये  fabs() function का keyword है जिसे fabs() function को call करने के लिए किया जाता अहि |
value : ये  fabs() function मे pass की गयी value है |
इस function का use कई सारे  mathmetically calculation करने के लिए क्या जाता है | इसका उदाहरन निन्म है :-
#include<iostream.h>
#include<conio.h>
void main()
{
int v1 , v2    ;
cout<<“Enter value 1  : “;
cin>>v1;
cout<<“Enter value2 : “;
cin>>v2;
int value2 = log10(v2);
int value1 = log10(v1);
cout<<” Absolute output of v1 :”<<value1<<endl
cout<<“Absolute output of v2 :”<<value2 <<endl;
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को  v1 और v2 मे assign किया जाता है | और इस
int value2 = fabs(v2); इस statement से  first absolute expression  की  value को calculate किया जाता है |
int value1 = fabs( v1 ); इस statement से  second absolute expression  की  value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter value 1  : 100
Enter value 2  : 1000
absolute output of v1 : 2
absolute output of v2 : 3

4. fmod()
fmod() function का use remainder को calcualate करने के लिए किया जाता है | इसमें दो values को divid करने पर प्राप्त reminder को calcualate किया जाता है | function fmod () का syntax निन्म होता है :-
fmod(value);
यहा पर
fmod () : ये  fmod() function का keyword है जिसे fmod() function को call करने के लिए किया जाता अहि |
value : ये  fmod() function मे pass की गयी value है |
इस function का use कई सारे  mathmetically calculation करने के लिए क्या जाता है | इसका उदाहरन निन्म है :-
#include<iostream.h>
#include<conio.h>
void main()
{
int v1 , v2    ;
cout<<“Enter value 1  : “;
cin>>v1;
cout<<“Enter value2 : “;
cin>>v2;
int value2 = fmod(v2,v1);
cout<<” remainder output of v2/v1:”<<value2<<endl
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को  v1 और v2  मे assign किया जाता है | और इस
int value2 = fmod(v2,v1); इस statement से  first remainder expression  की  value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter value 1  : 100
Enter value 2  : 1000
remainder output of v1 : 10

5. floor()
floor() function का use , किसी float value को निकटम integer value मे round off करने के लिए किया जाता है | इस function से किसी decimal value को निकटम lower integer value मे round off किया जाता है | function fmod () का syntax निन्म होता है :-
floor(value);
यहा पर
floor() : ये  floor() function का keyword है जिसे floor() function को call करने के लिए किया जाता अहि |
value : ये  floor() function मे pass की गयी value है |
इस function का use कई सारे  mathmetically calculation करने के लिए क्या जाता है | इसका उदाहरन निन्म है :-
#include<iostream.h>
#include<conio.h>
void main()
{
float v1 , v2    ;
cout<<“Enter value 1  : “;
cin>>v1;
cout<<“Enter value2 : “;
cin>>v2;
int value2 = floor(v2);
int value1 = floor(v1);
cout<<” Round off output of v2 :”<<value2<<endl;
cout<<” Round off output of v1 :”<<value1<<endl
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को  v1 और v2  मे assign किया जाता है | और इस
int value2 = floor(v2); इस statement से  first round off  expression  की  value को calculate किया जाता है |
int value1 = floor(v1);इस statement से  second round off  expression  की  value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter value 1  : 12.58
Enter value 2  : 11.23
Round off output of v2 : 12
Round off output of v1 : 11

6. ceil()
ceil() function का use , किसी float value को निकटम integer value मे round off करने के लिए किया जाता है | इस function से किसी decimal value को निकटम higher integer value मे round off किया जाता है | function ceil() का syntax निन्म होता है :-
ceil(value);
यहा पर
ceil() : ये  ceil() function का keyword है जिसे ceil() function को call करने के लिए किया जाता अहि |
value : ये  ceil() function मे pass की गयी value है |
इस function का use कई सारे  mathmetically calculation करने के लिए क्या जाता है | इसका उदाहरन निन्म है :-
#include<iostream.h>
#include<conio.h>
void main()
{
float v1 , v2    ;
cout<<“Enter value 1  : “;
cin>>v1;
cout<<“Enter value2 : “;
cin>>v2;
int value2 = ceil(v2);
int value1 = ceil(v1);
cout<<” Round off output of v2 :”<<value2<<endl;
cout<<” Round off output of v1 :”<<value1<<endl
}
getch();
}
इसके उदाहरन मे , यूजर द्वारा दो value को input किया जाता है | इन value को  v1 और v2  मे assign किया जाता है | और इस
int value2 = ceil(v2); इस statement से  first round off  expression  की  value को calculate किया जाता है |
int value1 = ceil(v1);इस statement से  second round off  expression  की  value को calculate किया जाता है |
इसका आउटपुट होगा :
Enter value 1  : 12.58
Enter value 2  : 11.23
Round off output of v2 : 13
Round off output of v1 : 12

इस article मे math.h class मे define सभी function को discuss कर लिया है | इन function को डायरेक्ट use करके अप अच्छी तरह से programming skills को improve कर सकते हो |

Sbistudy

Recent Posts

द्वितीय कोटि के अवकल समीकरण तथा विशिष्ट फलन क्या हैं differential equations of second order and special functions in hindi

अध्याय - द्वितीय कोटि के अवकल समीकरण तथा विशिष्ट फलन (Differential Equations of Second Order…

19 hours ago

four potential in hindi 4-potential electrodynamics चतुर्विम विभव किसे कहते हैं

चतुर्विम विभव (Four-Potential) हम जानते हैं कि एक निर्देश तंत्र में विद्युत क्षेत्र इसके सापेक्ष…

4 days ago

Relativistic Electrodynamics in hindi आपेक्षिकीय विद्युतगतिकी नोट्स क्या है परिभाषा

आपेक्षिकीय विद्युतगतिकी नोट्स क्या है परिभाषा Relativistic Electrodynamics in hindi ? अध्याय : आपेक्षिकीय विद्युतगतिकी…

5 days ago

pair production in hindi formula definition युग्म उत्पादन किसे कहते हैं परिभाषा सूत्र क्या है लिखिए

युग्म उत्पादन किसे कहते हैं परिभाषा सूत्र क्या है लिखिए pair production in hindi formula…

1 week ago

THRESHOLD REACTION ENERGY in hindi देहली अभिक्रिया ऊर्जा किसे कहते हैं सूत्र क्या है परिभाषा

देहली अभिक्रिया ऊर्जा किसे कहते हैं सूत्र क्या है परिभाषा THRESHOLD REACTION ENERGY in hindi…

1 week ago
All Rights ReservedView Non-AMP Version
X

Headline

You can control the ways in which we improve and personalize your experience. Please choose whether you wish to allow the following:

Privacy Settings
JOIN us on
WhatsApp Group Join Now
Telegram Join Join Now