हिंदी माध्यम नोट्स
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
इस 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;
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);
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));
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
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;
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);
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));
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();
}
Recent Posts
Question Tag Definition in english with examples upsc ssc ias state pcs exames important topic
Question Tag Definition • A question tag is a small question at the end of a…
2 weeks ago
Translation in english grammer in hindi examples Step of Translation (अनुवाद के चरण)
Translation 1. Step of Translation (अनुवाद के चरण) • मूल वाक्य का पता करना और उसकी…
2 weeks ago
Report Writing examples in english grammer How to Write Reports explain Exercise
Report Writing • How to Write Reports • Just as no definite rules can be laid down…
2 weeks ago
Letter writing ,types and their examples in english grammer upsc state pcs class 12 10th
Letter writing • Introduction • Letter writing is an intricate task as it demands meticulous attention, still…
2 weeks ago
विश्व के महाद्वीप की भौगोलिक विशेषताएँ continents of the world and their countries in hindi features
continents of the world and their countries in hindi features विश्व के महाद्वीप की भौगोलिक…
2 weeks ago
भारत के वन्य जीव राष्ट्रीय उद्यान list in hin hindi IAS UPSC
भारत के वन्य जीव भारत में जलवायु की दृष्टि से काफी विविधता पाई जाती है,…
2 weeks ago