Добавил:
student_tipo
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:лабораторные работы / функция
.docx#include "stdafx.h"
#include "stdio.h"
#include "conio.h"
#include "math.h"
#include "locale.h"
float f1 (float x)
{
float fx;
fx=(x*x+2*x+1);
return (fx);
}
void main ()
{
setlocale(LC_ALL,"rus");
float y,x;
printf ("Введите значение x: ");
scanf ("%f",&x);
y=f1(x)/((sin(x)*sin(x)+2*sin(x)+1))+((x*x+2*x*sin(x)+sin(x)*sin(x)))/(sin(x)*sin(x))/( sqrt(sin(f1(x)/(x*x))) );
printf ("Ответ=%f", y);
getch();
}
Соседние файлы в папке лабораторные работы