<span><span>F = (¬A·¬B·C)v(¬A·B·¬C)v(¬A·B·C)v(A·¬B·¬C)v(A·B·C)
</span></span><span>Предлагаю Excel программку, которая эту функцию строит автоматически.
</span>
Readln(x);
//X^Y = exp(ln(X) * Y) - возведение в степень
ctg1:=cos(x)/sin(x);
y:=sqrt(sqrt((x*x+3)/(x-1))-exp(ln(ctg1*5)*3);
1.
#include <stdio.h>
#include <math.h>
int main()
{
float x1, xn, h;
float a = 4, b = 7;
printf("Введите x1, xn, h:\n");
scanf("%f",&x1);
scanf("%f",&xn);
scanf("%f",&h);
for (float x=x1; x<=xn; x +=h)
printf("x = %.2f y = %.5f\n",x,b*x*sqrt(1+log(x)));
return 0;
}
2.
#include <stdio.h>
#include <math.h>
int main()
{
float x1, xn, h, x;
float a = 4, b = 7;
printf("Введите x1, xn, h:\n");
scanf("%f",&x1);
scanf("%f",&xn);
scanf("%f",&h);
x = x1;
while (x<=xn){
printf("x = %.2f y = %.5f\n",x,b*x*sqrt(1+log(x)));
x += h;
}
return 0;
}
3.
#include <stdio.h>
#include <math.h>
int main()
{
float x1, xn, h, x;
float a = 4, b = 7;
printf("Введите x1, xn, h:\n");
scanf("%f",&x1);
scanf("%f",&xn);
scanf("%f",&h);
x = x1;
do {
printf("x = %.2f y = %.5f\n",x,b*x*sqrt(1+log(x)));
x += h;
}
while (x<=xn);
return 0;
}
Пример:
<span>Введите x1, xn, h:
2
5
0.1
x = 2.00 y = 18.21694
x = 2.10 y = 19.40142
x = 2.20 y = 20.59491
...
x = 4.90 y = 55.19244
x = 5.00 y = 56.53810</span>
Может так:
Vara:array[1..5]of integer;
a1,a2,a3,a4,a5,max:integer;
function f(a,b:integer):integer;
begin
if a>b then result:=a else result:=b;
end;
begin
a1:=random(10);
a2:=random(10);
a3:=random(10);
a4:=random(10);
a5:=random(10);
writeln(a1);
writeln(a2);
writeln(a3);
writeln(a4);
writeln(a5);
writeln;
max:=f(a1,a2);
max:=f(max,a3);
max:=f(max,a4);
max:=f(max,a5);
writeln('max=',max);
<span>end.</span>
А) (sqr(x)*2)/5+sin(Pi); либо (sqr(x)*2)/(5+sin(Pi));
Смотря какое выражение было задано.
Б) sin(x)+sqr(sin(x));
В) (x+2)*2/(x+5);