Browse Source

refactoring:Vskalort

main
fdai6887 2 years ago
parent
commit
70363ea3b8
  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_Vmiddle.out
  20. BIN
      build/test/out/test_Vmiddle2.out
  21. BIN
      build/test/out/test_Vmiddle3.out
  22. BIN
      build/test/out/test_Vmultiplier.out
  23. BIN
      build/test/out/test_Vmultiplier2.out
  24. BIN
      build/test/out/test_Vmultiplier3.out
  25. BIN
      build/test/out/test_Vparallel.out
  26. BIN
      build/test/out/test_Vshift.out
  27. BIN
      build/test/out/test_Vskalort.out
  28. BIN
      build/test/out/test_Vsubstract.out
  29. BIN
      build/test/out/test_Vsubstract2.out
  30. BIN
      build/test/out/test_Vsubstract3.out
  31. BIN
      build/test/out/test_Zeitlohn.out
  32. BIN
      build/test/out/test_angebotserfolg.out
  33. BIN
      build/test/out/test_eigenkapital_Rentabilitaeten.out
  34. BIN
      build/test/out/test_erloesfunktion.out
  35. BIN
      build/test/out/test_gesamtkapital_Rentabilitaeten.out
  36. BIN
      build/test/out/test_grenzGewinn.out
  37. BIN
      build/test/out/test_marktanteil.out
  38. BIN
      build/test/out/test_trapezFlaeche.out
  39. 2
      build/test/results/test_Akkortrichtsatz.pass
  40. 2
      build/test/results/test_Anlagenabnutzungsgrad.pass
  41. 2
      build/test/results/test_Anlagenintensitaet.pass
  42. 2
      build/test/results/test_Anlagenproduktivitaet.pass
  43. 2
      build/test/results/test_Arbeitsproduktivitaet.pass
  44. 2
      build/test/results/test_Cashflow_zu_Gesamtkapital.pass
  45. 2
      build/test/results/test_Dynamische_Amortisationszeit.pass
  46. 2
      build/test/results/test_Effektivverzinsung.pass
  47. 2
      build/test/results/test_Finanzierungsregeln.pass
  48. 2
      build/test/results/test_GewinnMaximum.pass
  49. 2
      build/test/results/test_Kalkulatorische_Zinsen.pass
  50. 2
      build/test/results/test_Kritische_Menge.pass
  51. 2
      build/test/results/test_Stueckzeitakkort.pass
  52. 2
      build/test/results/test_Vadd.pass
  53. 2
      build/test/results/test_Vaddx2.pass
  54. 2
      build/test/results/test_Vaddx3.pass
  55. 2
      build/test/results/test_Vlength.pass
  56. 2
      build/test/results/test_Vmiddle.pass
  57. 2
      build/test/results/test_Vmiddle2.pass
  58. 2
      build/test/results/test_Vmiddle3.pass
  59. 2
      build/test/results/test_Vmultiplier.pass
  60. 2
      build/test/results/test_Vmultiplier2.pass
  61. 2
      build/test/results/test_Vmultiplier3.pass
  62. 2
      build/test/results/test_Vparallel.pass
  63. 2
      build/test/results/test_Vshift.pass
  64. 2
      build/test/results/test_Vskalort.pass
  65. 2
      build/test/results/test_Vsubstract.pass
  66. 2
      build/test/results/test_Vsubstract2.pass
  67. 2
      build/test/results/test_Vsubstract3.pass
  68. 2
      build/test/results/test_Zeitlohn.pass
  69. 2
      build/test/results/test_angebotserfolg.pass
  70. 2
      build/test/results/test_eigenkapital_Rentabilitaeten.pass
  71. 2
      build/test/results/test_erloesfunktion.pass
  72. 2
      build/test/results/test_gesamtkapital_Rentabilitaeten.pass
  73. 2
      build/test/results/test_grenzGewinn.pass
  74. 2
      build/test/results/test_marktanteil.pass
  75. 2
      build/test/results/test_trapezFlaeche.pass
  76. 6
      src/funktion.c
  77. 8
      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_Vmiddle.out

BIN
build/test/out/test_Vmiddle2.out

BIN
build/test/out/test_Vmiddle3.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_Vskalort.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 :ignored: 0
:stdout: :stdout:
- Testergebniss 552.000000 - Testergebniss 552.000000
:time: 0.002397113999904832
:time: 0.0021953410005153273

2
build/test/results/test_Anlagenabnutzungsgrad.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 60.000000 - Testergebniss 60.000000
:time: 0.0016378690006604302
:time: 0.0024351000001843204

2
build/test/results/test_Anlagenintensitaet.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 4878.048780 - Testergebniss 4878.048780
:time: 0.0017037560000972007
:time: 0.0018606740004543099

2
build/test/results/test_Anlagenproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 18.203304 - Testergebniss 18.203304
:time: 0.0051029060005021165
:time: 0.0016116229999170173

2
build/test/results/test_Arbeitsproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 60.000000 - Testergebniss 60.000000
:time: 0.0015053550005177385
:time: 0.0019354830001248047

2
build/test/results/test_Cashflow_zu_Gesamtkapital.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 0.158038 - Testergebniss 0.158038
:time: 0.0015520320002906374
:time: 0.003553020999788714

2
build/test/results/test_Dynamische_Amortisationszeit.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 189.421906 - Testergebniss 189.421906
:time: 0.003400005999537825
:time: 0.0016166649993465398

2
build/test/results/test_Effektivverzinsung.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 16.034390 - Testergebniss 16.034390
:time: 0.0017292699994868599
:time: 0.0017326669994872645

2
build/test/results/test_Finanzierungsregeln.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 0.051041 - Testergebniss 0.051041
:time: 0.0016367239995815908
:time: 0.004237866000039503

2
build/test/results/test_GewinnMaximum.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 251.000000 - Testergebniss 251.000000
:time: 0.0019253560003562598
:time: 0.0013034290004725335

2
build/test/results/test_Kalkulatorische_Zinsen.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 1.440000 - Testergebniss 1.440000
:time: 0.002106973999616457
:time: 0.0029109510005582706

2
build/test/results/test_Kritische_Menge.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss -12.096026 - Testergebniss -12.096026
:time: 0.0033816519999163575
:time: 0.0017560449996381067

2
build/test/results/test_Stueckzeitakkort.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- '96600.000000' - '96600.000000'
:time: 0.0017116799999712384
:time: 0.001972701999875426

2
build/test/results/test_Vadd.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.002661763000105566
:time: 0.0028213429995957995

2
build/test/results/test_Vaddx2.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0018148959998143255
:time: 0.005015943999751471

2
build/test/results/test_Vaddx3.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0019799410001724027
:time: 0.0018979090000357246

2
build/test/results/test_Vlength.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.002191317999859166
:time: 0.004810903999896254

2
build/test/results/test_Vmiddle.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.004097662999811291
:time: 0.00447749799968733

2
build/test/results/test_Vmiddle2.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0013325170002644882
:time: 0.0018228869994345587

2
build/test/results/test_Vmiddle3.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.003859141999782878
:time: 0.0036964020000596065

2
build/test/results/test_Vmultiplier.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.002156450000256882
:time: 0.002029373999903328

2
build/test/results/test_Vmultiplier2.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.006454375000430446
:time: 0.002149492000171449

2
build/test/results/test_Vmultiplier3.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.002986141000292264
:time: 0.002835910999237967

2
build/test/results/test_Vparallel.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0016824849999466096
:time: 0.004778819999955886

2
build/test/results/test_Vshift.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0012992580004720367
:time: 0.007009155000559986

2
build/test/results/test_Vskalort.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.001960815000529692
:time: 0.005192976999751409

2
build/test/results/test_Vsubstract.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.00525231099982193
:time: 0.004478492000089318

2
build/test/results/test_Vsubstract2.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0019490300001052674
:time: 0.0051441159994283225

2
build/test/results/test_Vsubstract3.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0016022159998101415
:time: 0.0018999519998033065

2
build/test/results/test_Zeitlohn.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 3450.000000 - Testergebniss 3450.000000
:time: 0.0037747840005977196
:time: 0.00453161200039176

2
build/test/results/test_angebotserfolg.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 225.000000 - Testergebniss 225.000000
:time: 0.002466604999426636
:time: 0.0019300260000818525

2
build/test/results/test_eigenkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 62.500000 - Testergebniss 62.500000
:time: 0.0019096650003120885
:time: 0.006333573000119941

2
build/test/results/test_erloesfunktion.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 4000.000000 - Testergebniss 4000.000000
:time: 0.0015110880003703642
:time: 0.0014883139992889483

2
build/test/results/test_gesamtkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 27.136929 - Testergebniss 27.136929
:time: 0.0015217259997371002
:time: 0.005205324000598921

2
build/test/results/test_grenzGewinn.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 1141.000000 - Testergebniss 1141.000000
:time: 0.0014132480000625947
:time: 0.0024794129994916148

2
build/test/results/test_marktanteil.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- Testergebniss 21.739130 - Testergebniss 21.739130
:time: 0.002088727999762341
:time: 0.0017361050004183198

2
build/test/results/test_trapezFlaeche.pass

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

6
src/funktion.c

@ -218,10 +218,12 @@ float Vmiddle3(float x3, float z3) {
} }
float Vskalort(float x1, float x2, float x3, float z1, float z2, float z3) { float Vskalort(float x1, float x2, float x3, float z1, float z2, float z3) {
float E; float E;
double result;
E = x1 * z1 + x2 * z2 + x3 * z3; E = x1 * z1 + x2 * z2 + x3 * z3;
if (E == 0) { if (E == 0) {
return 1;
result = 1;
} else { } else {
return 0;
result = 0;
} }
return result;
} }

8
src/main.c

@ -165,20 +165,12 @@ int main()
z3 = getValue('Z'); z3 = getValue('Z');
Vmiddle3(x3, z3); Vmiddle3(x3, z3);
printf("1. Vektor\n");
printf("x eingeben");
x1 = getValue('X'); x1 = getValue('X');
printf("y eingeben ");
x2 = getValue('X'); x2 = getValue('X');
printf("z eingeben");
x3 = getValue('X'); x3 = getValue('X');
printf("2. Vektor\n");
printf("a eingeben");
z1 = getValue('Z'); z1 = getValue('Z');
printf("b eingeben ");
z2 = getValue('Z'); z2 = getValue('Z');
printf("c eingeben");
z3 = getValue('Z'); z3 = getValue('Z');
Vskalort(x1, x2, x3, z1, z2, z3); Vskalort(x1, x2, x3, z1, z2, z3);
} }
Loading…
Cancel
Save