JOIN us on
WhatsApp Group Join Now
Telegram Join Join Now

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

Categories: C Language in hindi

C 99 – Complex.h Header File ( Part 3) trigonometric और hyperbolic trigonometric function in c language in hindi

c99 हैडर फाइल Complex.h में त्रिकोणमितीय और अतिशयोक्तिपूर्ण त्रिकोणमितीय फ़ंक्शन , C 99 – Complex.h Header File ( Part 3) trigonometric और hyperbolic trigonometric function in c language in hindi :-
इससे पहले के दो articles मे , header file complex.h के char महत्वपूर्ण function category (complex , imaginary , power और exponential ) को पढ़ा |अब इस article मे , trigonometric और hyperbolic trigonometric function को पढ़गे |Trigonometric function :
इस category मे , Trigonometric function को use करता है |दी गयी complex number की sin,cos,tan आदि की value को calculate किया जाता है |इसमें निन्म function include होते  है :-
1.Calculating Sine value
इस macro ,complex number के Sine value को calculate करने के  किया जता  है |ये तीन प्रकार के होते है |इसके syntax होते है :-
1.csinf (float complex number );इस macro का use,float type complex number के लिए किया जाता है |
2.csin (double complex number ); इस macro का use , double type complex number के लिए किया जाता है |
3.csinl(long double complex number); इस macro का use , long double complex number के लिए किया जाता है |
इस macro statement मे , complex number को pass किया जाता है | और  complex number की sine value complex number मे ही return होती है |
अगर complex number c=x+y.i  है तब इसकी Sine value = (e^(i c) + e^(-i c)) / 2.iयहा पर (e^(i c) की value e ^ ( y ) (sin ( x) + i. cos(x ) ) है |

2.Calculating Cosine value

इस macro ,complex number के Cosine value को calculate करने के  किया जता  है |ये तीन प्रकार के होते है |इसके syntax होते है :-
1.ccosf (float complex number );इस macro का use,float type complex number के लिए किया जाता है |
2.ccos (double complex number ); इस macro का use , double type complex number के लिए किया जाता है |
3.ccosl(long double complex number); इस macro का use , long double complex number के लिए किया जाता है |
इस macro statement मे , complex number को pass किया जाता है | और  complex number की Cosine value, complex number मे ही return होती है |
अगर complex number c=x+y.i  है तब इसकी Sine value = (e^(i c) + e^(-i c)) / 2यहा पर (e^(i c) की value e ^ ( y ) (sin ( x) + i. cos(x ) ) है |

3.Calculating Tangent value

इस macro ,complex number के Tangent value को calculate करने के  किया जता  है |ये तीन प्रकार के होते है |इसके syntax होते है :-
1.ctanf (float complex number );इस macro का use,float type complex number के लिए किया जाता है |
2.ctan (double complex number ); इस macro का use , double type complex number के लिए किया जाता है |
3.ctanl(long double complex number); इस macro का use , long double complex number के लिए किया जाता है |
इस macro statement मे , complex number को pass किया जाता है | और  complex number की Tangent value , complex number मे ही return होती है |
अगर complex number c=x+y.i  है तब इसकी Sine value = (e^(i c) – e^(-i c)) / (e^(i c) + e^(-i c))यहा पर (e^(i c) की value e ^ ( y ) (sin ( x) + i. cos(x ) ) है |

उदाहरण के लिए

#include<stdio.h>
#include<conio.h>
#include<complex.h>
void main()
{
float real;
float imag;
float complex z ;
float complex h;
float complex g;
printf(“Enter real part of complex number “);
scanf(“%.1f”,&real);
printf(“Enter imaginary part of complex number “);
scanf(“%f”,&imag);
y=CMPLXF (real , imag);
z=csinf ( y  );
h=ccosf (y);
g=ctanf(y);
printf(“y= %f + %f . i”,creal(y),cimg(y));
printf(“Sine value of complex number \n “);
printf(” %f + %f . i”,creal(z),cimg(z));
printf(“Cosine value of complex number\n “);
printf(” %f + %f . i”,creal(h),cimg(h));
printf(“Tangent value of complex number\n “);
printf(” %f + %f . i”,creal(g),cimg(g));
getch();
}आउटपुट होगा :
Enter real part of complex number 5
Enter imaginary part of complex number 4
y= 5 + 4 . i
Sine value of complex number
-26.18 + 7.74. i
Cosine value of complex number
7.74 + 26.16 . i
Tangent value of complex number
-0.00 + 1.00 . i


Hyperbolic function :
इस category मे , Trigonometric function का hyperbolic value  को use करता है |दी गयी complex number की sinh,cosh,tanh आदि की value को calculate किया जाता है |इसमें निन्म function include होते  है :-
1.Calculating Sinh value
इस macro ,complex number के Sin की hyperbolic value को calculate करने के  किया जता  है |ये तीन प्रकार के होते है |इसके syntax होते है :-
1.csinhf (float complex number );इस macro का use,float type complex number के लिए किया जाता है |
2.csinh(double complex number ); इस macro का use , double type complex number के लिए किया जाता है |
3.csinhl(long double complex number); इस macro का use , long double complex number के लिए किया जाता है |
इस macro statement मे , complex number को pass किया जाता है | और  complex number की hyperbolic sine value , complex number मे ही return होती है |
अगर complex number c=x+y.i  है तब इसकी Sine value = (e^( c) – e^(- c)) / 2यहा पर (e^(i c) की value e ^ ( y ) (sin ( x) + i. cos(x ) ) है |

2.Calculating Cosine value

इस macro ,complex number के hyperbolic Cosine value को calculate करने के  किया जता  है |ये तीन प्रकार के होते है |इसके syntax होते है :-
1.ccoshf(float complex number );इस macro का use,float type complex number के लिए किया जाता है |
2.ccosh(double complex number ); इस macro का use , double type complex number के लिए किया जाता है |
3.ccoshl(long double complex number); इस macro का use , long double complex number के लिए किया जाता है |
इस macro statement मे , complex number को pass किया जाता है | और  complex number की hyperbolic Cosine value, complex number मे ही return होती है |
अगर complex number c=x+y.i  है तब इसकी hyperbolic cosine value = (e^(c) + e^(-c)) / 2यहा पर (e^(i c) की value e ^ ( y ) (sin ( x) + i. cos(x ) ) है |

3.Calculating Tangent value

इस macro ,complex number के Hyperbolic Tangent value को calculate करने के  किया जता  है |ये तीन प्रकार के होते है |इसके syntax होते है :-
1.ctanhf (float complex number );इस macro का use,float type complex number के लिए किया जाता है |
2.ctanh(double complex number ); इस macro का use , double type complex number के लिए किया जाता है |
3.ctanhl(long double complex number); इस macro का use , long double complex number के लिए किया जाता है |
इस macro statement मे , complex number को pass किया जाता है | और  complex number की Hyperbolic Tangent value , complex number मे ही return होती है |
अगर complex number c=x+y.i  है तब इसकी Sine value = (e^( c) – e^(-c)) / (e^(c) + e^(-c))यहा पर (e^(i c) की value e ^ ( y ) (sin ( x) + i. cos(x ) ) है |

उदाहरण के लिए

#include<stdio.h>
#include<conio.h>
#include<complex.h>
void main()
{
float real;
float imag;
float complex z ;
float complex h;
float complex g;
printf(“Enter real part of complex number “);
scanf(“%.1f”,&real);
printf(“Enter imaginary part of complex number “);
scanf(“%f”,&imag);
y=CMPLXF (real , imag);
z=csinhf ( y  );
h=ccoshf (y);
g=ctanhf(y);
printf(“y= %f + %f . i”,creal(y),cimg(y));
printf(“Hyperbolic Sine value of complex number \n “);
printf(” %f + %f . i”,creal(z),cimg(z));
printf(“Hyperbolic Cosine value of complex number\n “);
printf(” %f + %f . i”,creal(h),cimg(h));
printf(“Hyperbolic Tangent value of complex number\n “);
printf(” %f + %f . i”,creal(g),cimg(g));
getch();
}
Sbistudy

Recent Posts

मालकाना का युद्ध malkhana ka yudh kab hua tha in hindi

malkhana ka yudh kab hua tha in hindi मालकाना का युद्ध ? मालकाना के युद्ध…

4 weeks ago

कान्हड़देव तथा अलाउद्दीन खिलजी के संबंधों पर प्रकाश डालिए

राणा रतन सिंह चित्तौड़ ( 1302 ई. - 1303 ) राजस्थान के इतिहास में गुहिलवंशी…

4 weeks ago

हम्मीर देव चौहान का इतिहास क्या है ? hammir dev chauhan history in hindi explained

hammir dev chauhan history in hindi explained हम्मीर देव चौहान का इतिहास क्या है ?…

1 month ago

तराइन का प्रथम युद्ध कब और किसके बीच हुआ द्वितीय युद्ध Tarain battle in hindi first and second

Tarain battle in hindi first and second तराइन का प्रथम युद्ध कब और किसके बीच…

1 month ago

चौहानों की उत्पत्ति कैसे हुई थी ? chahamana dynasty ki utpatti kahan se hui in hindi

chahamana dynasty ki utpatti kahan se hui in hindi चौहानों की उत्पत्ति कैसे हुई थी…

1 month ago

भारत पर पहला तुर्क आक्रमण किसने किया कब हुआ first turk invaders who attacked india in hindi

first turk invaders who attacked india in hindi भारत पर पहला तुर्क आक्रमण किसने किया…

1 month 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