|
@ -125,10 +125,11 @@ float Vshift(float x1, float s1) { |
|
|
} |
|
|
} |
|
|
double Vlength(float x1, float x2, float x3) { |
|
|
double Vlength(float x1, float x2, float x3) { |
|
|
double X1, X2, X3, E; |
|
|
double X1, X2, X3, E; |
|
|
|
|
|
double result; |
|
|
X1 = x1 * x1; |
|
|
X1 = x1 * x1; |
|
|
X2 = x2 * x2; |
|
|
X2 = x2 * x2; |
|
|
X3 = x3 * x3; |
|
|
X3 = x3 * x3; |
|
|
E = X1 + X2 + X3; |
|
|
E = X1 + X2 + X3; |
|
|
printf("Die laenge das Vektors betraegt: %f\n\n", sqrt(E)); |
|
|
|
|
|
return sqrt(E); |
|
|
|
|
|
|
|
|
result = sqrt(E); |
|
|
|
|
|
return result; |
|
|
} |
|
|
} |