.


:




:

































 

 

 

 


long double acosl(long double x);




Long double asinl(long double x);

Long double atanl(long double x);

, , . -1 1.

Double cos (double x);

Double sin (double x);

Double tan (double x);

Long double cosl(long double x);

Long double sinl(long double x);

Long double tanl(long double x);

, . .

 

#include "stdafx.h"

#include <stdio.h>

#include <math.h>

int main (void)

{

double result;

double x = 0.5;

result = cos ( x );

printf ( " %lf %lf\n", x, result );

return 0;

}

double exp(double x); long double exp(long double lx); , (*, ).

double pow (double x, double y); long double powl(long double (x), long double (y)); , .

 

#include "stdafx.h"

#include <stdio.h>

#include <math.h>

int main (void)

{

double result;

double x = 4.0;

result = exp ( x );

printf ( "'e %lf (e ^ %lf) = %lf\n", x, x, result );

return 0;

}

Double sqrt(double );

, .

Double log(double x);

Double log10(double x);

Long double logl(long double (x));

Long double log10l(long double (x));

log, logl . log10, log10l 10.

 

<stdlib.h> .

int rand(void); 0 RAND_MAX. rand . srand. void srand(unsigned ); . , , .

 

3.1 :

#include "stdafx.h" #include <iostream> using namespace std; void main() { int a,b; float c; cout<<"Input 3 nambers"<<endl; cin>>a>>b>>c; cout<<"Rezult="<<(a+b+c)/3; }  

3.2 (1 = 2,54 ).

#include "stdafx.h" #include <iostream> using namespace std; void main() { float c; cout<<"Input nambe"<<endl; cin>>c; cout<<"Rezult="<< c*2.54; }  

3.3 :

a = 12.4, b =15 25 , w . pow math.h.

#include "stdafx.h" #include <iostream> #include <math.h>   using namespace std;   void main() { const float pi=3.14159; const float a=12.5; const float b=(15+25/60)*pi/180; float w; cout<<"Input w"<<endl; cin>>w; cout<<"Rezult="<<a*sin(b)/pow(w,15); }  

 

 

1. C++.

2. C++.

3. .

4. , ?

5. ?

6. C++.

7. .

8. ?

9. - .

10. -.

11. - - stdio.h.

12. printf.

13. stdio.h.

14. .

15. math.h.

16. .

 

1. 5.

2. .

3. .

4. .

 

1) =sin(x)*cos(x)-3x2;

2) h.

3) y=|x-tg(x)|;

4) ;

5) ;

6) a b, , ;

7) y=tg(x)+5x3-4x2;

8) ;

9) , ;

10) y=|x-cos(x)|;

11) a. ;

12) . , .

13) , ;

14) ;

15) y=cos|x3-x2|;

16) , ;

17) (x5-x4+|x3|);

18) (sin(x)+cos(x));

19) , ;

20) ;

21) , , . : v1 v2 - ; a1 a2 - ; s - .

22) , ;

23) , ;

24) , ;

25) y= tg(x3)+|x2-x5|;

26) , ;

27) y = x2-sin(x)+cos(x);

28) y = x3-x5+|x-sin(x)|+x2;

29) , ;

30) ^2-+=0 , , .

31) , ;

32) , =^10 .

33) y = x/cos (x) + x2/sin (x);

34) ;

35) .

 

 

1. .

2. .

3. .

4. .

5. .

6. .

7. .

 





:


: 2017-01-21; !; : 440 |


:

:

! . .
==> ...

1918 - | 1709 -


© 2015-2024 lektsii.org - -

: 0.024 .