Start Task 2

This commit is contained in:
AZEN-SGG 2025-03-25 17:54:48 +03:00
parent 8a7aac7c23
commit de8589e39c
83 changed files with 1474 additions and 175 deletions

30
2025.03.28/02Ex/init_f.c Normal file
View file

@ -0,0 +1,30 @@
#include "init_f.h"
#include <stdlib.h>
#define MAX(n, m) (n < m ? m : n)
double f1(int m, int n, int i, int j)
{
return MAX(n, m) - MAX(i, j) + 1;
}
double f2(int m, int n, int i, int j)
{
(void)n;
(void)m;
return MAX(i, j);
}
double f3(int m, int n, int i, int j)
{
(void)n;
(void)m;
return abs(i - j);
}
double f4(int m, int n, int i, int j)
{
(void)n;
(void)m;
return 1./(i+j-1);
}