#include <stdio.h>
#include <math.h>
const double e = 2.7182818284590452353602874713527;
double f(double t){
const double f1 = pow(e, -5);
const double f2 = pow(e, -5 * cos(cos(t)));
const double f3 = pow(e, 10 * cos(t));
const double f4 = pow(e, -5 * sin(sin(t)));
return f1 * f2 * f3 * f4;
}
int main(){
printf("f(%f) = %f\n", 0., f(0.));
printf("f(%f) = %f\n", 1., f(1.));
printf("f(%f) = %f\n", 2., f(2.));
printf("f(%f) = %f\n", 3., f(3.));
printf("f(%f) = %f\n", 4., f(4.));
return 0;
}
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.