Browse Source

refactoring:Vparallel

main
fdai6887 2 years ago
parent
commit
a0ef851e62
  1. BIN
      build/test/out/c/funktion.o
  2. BIN
      build/test/out/test_Akkortrichtsatz.out
  3. BIN
      build/test/out/test_Anlagenabnutzungsgrad.out
  4. BIN
      build/test/out/test_Anlagenintensitaet.out
  5. BIN
      build/test/out/test_Anlagenproduktivitaet.out
  6. BIN
      build/test/out/test_Arbeitsproduktivitaet.out
  7. BIN
      build/test/out/test_Cashflow_zu_Gesamtkapital.out
  8. BIN
      build/test/out/test_Dynamische_Amortisationszeit.out
  9. BIN
      build/test/out/test_Effektivverzinsung.out
  10. BIN
      build/test/out/test_Finanzierungsregeln.out
  11. BIN
      build/test/out/test_GewinnMaximum.out
  12. BIN
      build/test/out/test_Kalkulatorische_Zinsen.out
  13. BIN
      build/test/out/test_Kritische_Menge.out
  14. BIN
      build/test/out/test_Stueckzeitakkort.out
  15. BIN
      build/test/out/test_Vadd.out
  16. BIN
      build/test/out/test_Vaddx2.out
  17. BIN
      build/test/out/test_Vaddx3.out
  18. BIN
      build/test/out/test_Vlength.out
  19. BIN
      build/test/out/test_Vmultiplier.out
  20. BIN
      build/test/out/test_Vmultiplier2.out
  21. BIN
      build/test/out/test_Vmultiplier3.out
  22. BIN
      build/test/out/test_Vparallel.out
  23. BIN
      build/test/out/test_Vshift.out
  24. BIN
      build/test/out/test_Vsubstract.out
  25. BIN
      build/test/out/test_Vsubstract2.out
  26. BIN
      build/test/out/test_Vsubstract3.out
  27. BIN
      build/test/out/test_Zeitlohn.out
  28. BIN
      build/test/out/test_angebotserfolg.out
  29. BIN
      build/test/out/test_eigenkapital_Rentabilitaeten.out
  30. BIN
      build/test/out/test_erloesfunktion.out
  31. BIN
      build/test/out/test_gesamtkapital_Rentabilitaeten.out
  32. BIN
      build/test/out/test_grenzGewinn.out
  33. BIN
      build/test/out/test_marktanteil.out
  34. BIN
      build/test/out/test_trapezFlaeche.out
  35. 2
      build/test/results/test_Akkortrichtsatz.pass
  36. 2
      build/test/results/test_Anlagenabnutzungsgrad.pass
  37. 2
      build/test/results/test_Anlagenintensitaet.pass
  38. 2
      build/test/results/test_Anlagenproduktivitaet.pass
  39. 2
      build/test/results/test_Arbeitsproduktivitaet.pass
  40. 2
      build/test/results/test_Cashflow_zu_Gesamtkapital.pass
  41. 2
      build/test/results/test_Dynamische_Amortisationszeit.pass
  42. 2
      build/test/results/test_Effektivverzinsung.pass
  43. 2
      build/test/results/test_Finanzierungsregeln.pass
  44. 2
      build/test/results/test_GewinnMaximum.pass
  45. 2
      build/test/results/test_Kalkulatorische_Zinsen.pass
  46. 2
      build/test/results/test_Kritische_Menge.pass
  47. 2
      build/test/results/test_Stueckzeitakkort.pass
  48. 2
      build/test/results/test_Vadd.pass
  49. 2
      build/test/results/test_Vaddx2.pass
  50. 2
      build/test/results/test_Vaddx3.pass
  51. 2
      build/test/results/test_Vlength.pass
  52. 2
      build/test/results/test_Vmultiplier.pass
  53. 2
      build/test/results/test_Vmultiplier2.pass
  54. 2
      build/test/results/test_Vmultiplier3.pass
  55. 2
      build/test/results/test_Vparallel.pass
  56. 2
      build/test/results/test_Vshift.pass
  57. 2
      build/test/results/test_Vsubstract.pass
  58. 2
      build/test/results/test_Vsubstract2.pass
  59. 2
      build/test/results/test_Vsubstract3.pass
  60. 2
      build/test/results/test_Zeitlohn.pass
  61. 2
      build/test/results/test_angebotserfolg.pass
  62. 2
      build/test/results/test_eigenkapital_Rentabilitaeten.pass
  63. 2
      build/test/results/test_erloesfunktion.pass
  64. 2
      build/test/results/test_gesamtkapital_Rentabilitaeten.pass
  65. 2
      build/test/results/test_grenzGewinn.pass
  66. 2
      build/test/results/test_marktanteil.pass
  67. 2
      build/test/results/test_trapezFlaeche.pass
  68. 6
      src/funktion.c
  69. 21
      src/main.c

BIN
build/test/out/c/funktion.o

BIN
build/test/out/test_Akkortrichtsatz.out

BIN
build/test/out/test_Anlagenabnutzungsgrad.out

BIN
build/test/out/test_Anlagenintensitaet.out

BIN
build/test/out/test_Anlagenproduktivitaet.out

BIN
build/test/out/test_Arbeitsproduktivitaet.out

BIN
build/test/out/test_Cashflow_zu_Gesamtkapital.out

BIN
build/test/out/test_Dynamische_Amortisationszeit.out

BIN
build/test/out/test_Effektivverzinsung.out

BIN
build/test/out/test_Finanzierungsregeln.out

BIN
build/test/out/test_GewinnMaximum.out

BIN
build/test/out/test_Kalkulatorische_Zinsen.out

BIN
build/test/out/test_Kritische_Menge.out

BIN
build/test/out/test_Stueckzeitakkort.out

BIN
build/test/out/test_Vadd.out

BIN
build/test/out/test_Vaddx2.out

BIN
build/test/out/test_Vaddx3.out

BIN
build/test/out/test_Vlength.out

BIN
build/test/out/test_Vmultiplier.out

BIN
build/test/out/test_Vmultiplier2.out

BIN
build/test/out/test_Vmultiplier3.out

BIN
build/test/out/test_Vparallel.out

BIN
build/test/out/test_Vshift.out

BIN
build/test/out/test_Vsubstract.out

BIN
build/test/out/test_Vsubstract2.out

BIN
build/test/out/test_Vsubstract3.out

BIN
build/test/out/test_Zeitlohn.out

BIN
build/test/out/test_angebotserfolg.out

BIN
build/test/out/test_eigenkapital_Rentabilitaeten.out

BIN
build/test/out/test_erloesfunktion.out

BIN
build/test/out/test_gesamtkapital_Rentabilitaeten.out

BIN
build/test/out/test_grenzGewinn.out

BIN
build/test/out/test_marktanteil.out

BIN
build/test/out/test_trapezFlaeche.out

2
build/test/results/test_Akkortrichtsatz.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 552.000000
:time: 0.0012497400002757786
:time: 0.0012189280005259207

2
build/test/results/test_Anlagenabnutzungsgrad.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.005060217999925953
:time: 0.002006020999942848

2
build/test/results/test_Anlagenintensitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4878.048780
:time: 0.008615955999630387
:time: 0.0022535569996762206

2
build/test/results/test_Anlagenproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 18.203304
:time: 0.0021622880003633327
:time: 0.005415477000497049

2
build/test/results/test_Arbeitsproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.0013088839996271417
:time: 0.0013265789993965882

2
build/test/results/test_Cashflow_zu_Gesamtkapital.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.158038
:time: 0.0017928509996636421
:time: 0.0013078520005365135

2
build/test/results/test_Dynamische_Amortisationszeit.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 189.421906
:time: 0.002687037999749009
:time: 0.001348408999547246

2
build/test/results/test_Effektivverzinsung.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 16.034390
:time: 0.0017613629997867974
:time: 0.0017531160001453827

2
build/test/results/test_Finanzierungsregeln.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.051041
:time: 0.004043442000693176
:time: 0.005695902000297792

2
build/test/results/test_GewinnMaximum.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 251.000000
:time: 0.0018972400002894574
:time: 0.0014826540000285604

2
build/test/results/test_Kalkulatorische_Zinsen.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1.440000
:time: 0.0012323889995968784
:time: 0.0022862570003781

2
build/test/results/test_Kritische_Menge.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss -12.096026
:time: 0.0019792809998762095
:time: 0.0016483629997310345

2
build/test/results/test_Stueckzeitakkort.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- '96600.000000'
:time: 0.0018252840000059223
:time: 0.0013455300004352466

2
build/test/results/test_Vadd.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0013749740001003374
:time: 0.0026568390003376408

2
build/test/results/test_Vaddx2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.001176945000224805
:time: 0.0017955269995582057

2
build/test/results/test_Vaddx3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0024171200002456317
:time: 0.001206692999403458

2
build/test/results/test_Vlength.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.001283999999941443
:time: 0.0014197020000210614

2
build/test/results/test_Vmultiplier.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002134501000000455
:time: 0.0011465140005384455

2
build/test/results/test_Vmultiplier2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0012319309998929384
:time: 0.0016882039999472909

2
build/test/results/test_Vmultiplier3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002427316000648716
:time: 0.0011868619994857

2
build/test/results/test_Vparallel.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0012218090005262638
:time: 0.0015475749996767263

2
build/test/results/test_Vshift.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0012833309992856812
:time: 0.0011704640000971267

2
build/test/results/test_Vsubstract.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0011868620003951946
:time: 0.0035255640004834277

2
build/test/results/test_Vsubstract2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0015723910000815522
:time: 0.004416771999785851

2
build/test/results/test_Vsubstract3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0017394259994034655
:time: 0.0012229690000822302

2
build/test/results/test_Zeitlohn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 3450.000000
:time: 0.002668103999894811
:time: 0.0014688910005133948

2
build/test/results/test_angebotserfolg.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 225.000000
:time: 0.007555461999800173
:time: 0.0013394050001807045

2
build/test/results/test_eigenkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 62.500000
:time: 0.0024137139998856583
:time: 0.0014139119994069915

2
build/test/results/test_erloesfunktion.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4000.000000
:time: 0.001649193000048399
:time: 0.0014845870000499417

2
build/test/results/test_gesamtkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 27.136929
:time: 0.001196817000163719
:time: 0.001303106999330339

2
build/test/results/test_grenzGewinn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1141.000000
:time: 0.001234004000252753
:time: 0.001259611000023142

2
build/test/results/test_marktanteil.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 21.739130
:time: 0.0013683229999514879
:time: 0.001334904000032111

2
build/test/results/test_trapezFlaeche.pass

@ -17,4 +17,4 @@
:stdout:
- 'Flaeche vom Trapez beträgt: 21.000000'
- Testergebniss 21.000000
:time: 0.001249263999852701
:time: 0.0012230450001879944

6
src/funktion.c

@ -172,6 +172,7 @@ float Vmultiplier3(float x3,float m) {
double Vparallel(double x1, double x2, double x3, double z1, double z2, double z3) {
double i, j, k;
double X1, X2, X3;
double result;
if (x1 > z1) {
X1 = x1 / z1;
i = X1 * 100;
@ -194,8 +195,9 @@ double Vparallel(double x1, double x2, double x3, double z1, double z2, double z
k = X3 * 100;
}
if (i == j && j == k) {
return 0;
result = 0;
} else {
return 1;
result = 1;
}
return result;
}

21
src/main.c

@ -145,21 +145,12 @@ int main()
m = getValue('M');
Vmultiplier3(x3, m);
printf("1. Vektor\n");
printf("x eingeben");
x1_1 = getValue('X');
printf("y eingeben ");
x2_2 = getValue('X');
printf("z eingeben ");
x3_3 = getValue('X');
printf("2. Vektor\n");
printf("a eingeben");
z1_1 = getValue('Z');
printf("b eingeben");
z2_2 = getValue('Z');
printf("c eingeben");
z3_3 = getValue('Z');
x1 = getValue('X');
x2 = getValue('X');
x3 = getValue('X');
z1 = getValue('Z');
z2 = getValue('Z');
z3 = getValue('Z');
Vparallel(x1, x2, x3, z1, z2, z3);
}
Loading…
Cancel
Save