InfLab1/prog4.c
2024-11-30 12:48:00 +04:00

22 lines
596 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "progs.h"
//*
void prog4(){
double x, f1, f2;
printf("Программа приближённо вычислит значение двух функций в точке x.\n Введите данные.\n");
printf("x: "); scanf("%lf", &x);
f1 = atan((2-2*x)/(1+4*x));
f2 = exp(x)*cos(x);
printf("f1(%lf)=%lf f2(%lf)=%lf\n", x, f1, x, f2);
}
/*/
void prog4(){
printf("\nПока что тут ничего нет из-за глупого и неправильного math.h на моём компьютере\n");
}
/*/