#include <iostream>
#include <cmath>
using namespace std;
double ctg(double x)
{
return 1/tan(x);
}
int main()
{
double a,b,c;
cout<<"a,b,c=";
cin>>a>>b>>c;
double res=(cos(exp(tan(a/(b+c))))+sin(exp(ctg(b/a))+2))/(sqrt(tan((a-3)/2/b)*ctg((b+4)/2/c)/(2+4*c*c-sqrt(b+cos(c))))+(log(c)/tan(a-b)+5)/tan(a/sqrt(c))/ctg((a+b)/c));
cout<<"result="<<res<<endl;
system("PAUSE");
return 0;
}
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
double Solve(double a, double b, double c)
{
double t4 = tan(a / (b + c));
double t5 = exp(t4);
double t6 = cos(t5);
double t9 = 0.1e1 / tan(b / a);
double t11 = exp(t9 + 0.2e1);
double t12 = sin(t11);
double t17 = tan((a - 0.3e1) / b / 0.2e1);
double t19 = 0.1e1 / c;
double t22 = 0.1e1 / tan((b + 0.4e1) * t19 / 0.2e1);
double t24 = c * c;
double t26 = cos(c);
double t28 = sqrt(b + t26);
double t32 = log(c);
double t34 = tan(a - b);
double t38 = sqrt(c);
double t41 = tan(a / t38);
double t46 = 0.1e1 / tan((a + b) * t19);
double t50 = sqrt(t17 * t22 / (0.2e1 + 0.4e1 * t24 + t28) + (t32 / t34 + 0.5e1) / t41 / t46);
return (t6 + t12 / t50);
}
int main(int argc, char *argv[])
{
double a = 0,b = 0,c = 0,ret = 0;
system("chcp 1251");
printf("\nВведите A: "); scanf("%lf",&a);
printf("Введите B: "); scanf("%lf",&b);
printf("Введите C: "); scanf("%lf",&c);
ret = Solve(a, b,c);
printf("F(A,B,C) = %lf\n",ret);
system("PAUSE");
return EXIT_SUCCESS;
}
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.