第四课。

This commit is contained in:
unlockable
2022-10-07 12:29:08 +08:00
parent aedf18a247
commit c3608c3f89
4 changed files with 47 additions and 0 deletions

11
04/Exercise01.c Normal file
View File

@@ -0,0 +1,11 @@
#include <stdio.h>
#include <math.h>
int main() {
double dx, dy, df_1, df_2;
scanf("%lf %lf", &dx, &dy);
df_1 = (1 / sqrt(2 * 3.14)) * exp(-(dx * dx) / 2);
df_2 = sin(dx*dx + dy*dy) * cos(dx + dy) / 3;
printf("f_1 = %lf, f_2 = %lf", df_1, df_2);
return 0;
}