diff --git a/src/funktion.c b/src/funktion.c index eee8f26..ef2c1ba 100644 --- a/src/funktion.c +++ b/src/funktion.c @@ -211,3 +211,9 @@ float Vmiddle2(float x2,float z2) { result = result * 0.5; return result; } +float Vmiddle3(float x3, float z3) { + x3 = x3 + z3; + printf("|%f)\n\n", x3 * 0.5); + x3 = x3 * 0.5; + return x3; +} diff --git a/src/funktion.h b/src/funktion.h index f8c840b..e4e082d 100644 --- a/src/funktion.h +++ b/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); float Vmiddle(float x1, float z1); float Vmiddle2(float x2, float z2); +float Vmiddle3(float x3, float z3); #endif diff --git a/src/main.c b/src/main.c index 4449e04..5fc701f 100644 --- a/src/main.c +++ b/src/main.c @@ -161,4 +161,9 @@ int main() z2 = getValue('Z'); Vmiddle2(x2, z2); + printf("y eingeben "); + x3 = getValue('X'); + printf("c eingeben"); + z3 = getValue('Z'); + Vmiddle3(x3, z3); }