Browse Source

add Vmiddle3

main
fdai6887 2 years ago
parent
commit
8b47c53015
  1. 6
      src/funktion.c
  2. 1
      src/funktion.h
  3. 5
      src/main.c

6
src/funktion.c

@ -211,3 +211,9 @@ float Vmiddle2(float x2,float z2) {
result = result * 0.5; result = result * 0.5;
return result; return result;
} }
float Vmiddle3(float x3, float z3) {
x3 = x3 + z3;
printf("|%f)\n\n", x3 * 0.5);
x3 = x3 * 0.5;
return x3;
}

1
src/funktion.h

@ -37,5 +37,6 @@ float Vmultiplier3(float x3,float m);
double Vparallel(double x1, double x2, double x3, double z1, double z2, double z3); double Vparallel(double x1, double x2, double x3, double z1, double z2, double z3);
float Vmiddle(float x1, float z1); float Vmiddle(float x1, float z1);
float Vmiddle2(float x2, float z2); float Vmiddle2(float x2, float z2);
float Vmiddle3(float x3, float z3);
#endif #endif

5
src/main.c

@ -161,4 +161,9 @@ int main()
z2 = getValue('Z'); z2 = getValue('Z');
Vmiddle2(x2, z2); Vmiddle2(x2, z2);
printf("y eingeben ");
x3 = getValue('X');
printf("c eingeben");
z3 = getValue('Z');
Vmiddle3(x3, z3);
} }
Loading…
Cancel
Save