.


:




:

































 

 

 

 





:

#include <stdio.h>

#include <math.h>

- .

:

int main(void)

(. .5.2):

double x,y;

double a=12.5, b=1.3;

double c=14.1, d=2.7;

double t1, t2;

double ax;

x y:

printf(" x, y >");

scanf("%lf %lf",&x,&y);

:

ax=a*x;

:

t1=(b*log(ax+b)/a+d*log(y*x+d)/y)/c;

:

ax=sqrt((c-b)*(c+b))*tan(ax);

:

t2=log((ax+b)/(ax-b))/2/a/b;

:

printf("t1 = %lg\n",t1); printf("t2 = %lg\n",t2);

.

/**************************************************/

/* ╧3 */

/* */

/* . ╧30. */

/**************************************************/

#include <stdio.h>

#include <math.h>

int main(void) {

/* , */

double x,y;

/* , */

double a=12.5, b=1.3;

double c=14.1, d=2.7;

double t1, t2; /* */

double ax; /* */

 

printf(" x, y >");

scanf("%lf %lf",&x,&y);

 

ax=a*x;

t1=(b*log(ax+b)/a+d*log(y*x+d)/y)/c;

 

ax=sqrt((c-b)*(c+b))*tan(ax);

t2=log((ax+b)/(ax-b))/2/a/b;

 

printf("t1 = %lg\n",t1);

printf("t2 = %lg\n",t2);

return 0;

}

:

x, y >3.3 1.1

t1 = 0.348897

t2 = 0.0133405

:

  • .

.

math.h.

abs - - |x|

int abs(int x);

labs - "" - |x|:

long labs(long x);

fabs - - |x|:

double fabs(double x);

sqrt - :

double sqrt(double x);

pow - :

double pow(double x, double y);

cos - - cos x ( x ):

double cos(double x);

sin - - sin x:

double sin(double x);

tan - - tg x:

double tan(double x);

acos - - arccos x:

double cos(double x);

asin - - arcsin x:

double sin(double x);

atan - - arctg x:

double atan(double x);

atan2 - - arctg x/y:

double atan2(double x, double y);

exp - :

double exp(double x);

log - - ln x:

double log(double x);

log10 - - log10x:

double log10(double x);

1)

2)

3)

4)

5)

6)

7)

8)

9)

10)

11)





:


: 2016-09-03; !; : 376 |


:

:

: , .
==> ...

1761 - | 1729 -


© 2015-2024 lektsii.org - -

: 0.01 .