MOHENDİSLİK VE DOĞA BİLİMLERİ FAKÜLTESİ FACULTY OF ENGINEERING AND NATURAL SCIENCES
#include<stdio.h>
#include<math.h>
double k_function(double a, double b, double c);
double m_function(double x, double y, double z, double t);
int main()
{
double a, b, c, x, y, z, t, result;
printf("Please enter the k function parameters:\n");
scanf("%lf %lf %lf", &a, &b, &c);
printf("Please enter the m function parameters:\n");
scanf("%lf %lf %lf %lf", &x, &y, &z, &t);
result = k_function(a, b, c) / m_function(x, y, z, t);
printf("The result of the division of two functions: %lf\n", result);
return 0;
}
double k_function(double a, double b, double c)
{
return -10 * pow(a, 4) + 2.5 * pow(b, 7) - pow(c, 7);
}
double m_function(double x, double y, double z, double t)
{
return 4 * pow(x, 2) + sqrt(5 * pow(z, 3) / (2.9 + sqrt(t) * 1.2));
}