Browse Source

refactoring:Vmiddle2

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

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.0014881320003041765
:time: 0.006140577999758534

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.002773400000478432
:time: 0.0025134480001725024

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.002147223999600101
:time: 0.002877918000194768

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.0020234160001564305
:time: 0.008499601000039547

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.002072707000479568
:time: 0.0017325250000794767

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.0022117200005595805
:time: 0.008665354000186198

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.006845533999694453
:time: 0.0031762980006533326

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.006796829000450089
:time: 0.0016555379997953423

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.0016831200000524404
:time: 0.004093991999980062

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.001935133000188216
:time: 0.0018228010003440431

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.002501054000276781
:time: 0.002207948999966902

2
build/test/results/test_Stueckzeitakkort.pass

@ -16,4 +16,4 @@
:ignored: 0 :ignored: 0
:stdout: :stdout:
- '96600.000000' - '96600.000000'
:time: 0.0013919939992774744
:time: 0.0024240040002041496

2
build/test/results/test_Vadd.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.004898690000118222
:time: 0.00428303200078517

2
build/test/results/test_Vaddx2.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.001306823000049917
:time: 0.001765105000231415

2
build/test/results/test_Vaddx3.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0012867899995399057
:time: 0.0017510610005047056

2
build/test/results/test_Vlength.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.002495374999853084
:time: 0.005587866000496433

2
build/test/results/test_Vmiddle.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.005504810999809706
:time: 0.001660205999542086

2
build/test/results/test_Vmiddle2.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0075450300000738935
:time: 0.0019753160004256642

2
build/test/results/test_Vmultiplier.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.002419198999632499
:time: 0.0013233430008767755

2
build/test/results/test_Vmultiplier2.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0017313619991909945
:time: 0.0014715710003656568

2
build/test/results/test_Vmultiplier3.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0020859090000158176
:time: 0.0017002610002236906

2
build/test/results/test_Vparallel.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0018662189995666267
:time: 0.004189305999716453

2
build/test/results/test_Vshift.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0015334559993789298
:time: 0.004562609999993583

2
build/test/results/test_Vsubstract.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.002326619999621471
:time: 0.0015104370004337397

2
build/test/results/test_Vsubstract2.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.005454393999571039
:time: 0.0017144960002042353

2
build/test/results/test_Vsubstract3.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0017736739991960349
:time: 0.0020922379999319674

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.001323896999565477
:time: 0.0033085079994634725

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.005426359000011871
:time: 0.0014865550001559313

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.0034705970001596143
:time: 0.002103877000081411

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.0026744320002762834
:time: 0.0016521990000910591

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.001988664000236895
:time: 0.0035017109994441853

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.0016964430005828035
:time: 0.002711019000344095

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.0018845140002667904
:time: 0.0022752230006517493

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.001766296000823786
:time: 0.001729229999909876

7
src/funktion.c

@ -207,8 +207,7 @@ float Vmiddle(float x1, float z1) {
return result; return result;
} }
float Vmiddle2(float x2,float z2) { float Vmiddle2(float x2,float z2) {
x2 = x2 + z2;
printf("%f", x2 * 0.5);
x2 = x2 * 0.5;
return x2;
double result = x2 + z2;
result = result * 0.5;
return result;
} }

2
src/main.c

@ -157,9 +157,7 @@ int main()
z1 = getValue('Z'); z1 = getValue('Z');
Vmiddle(x1, z1); Vmiddle(x1, z1);
printf("y eingeben ");
x2 = getValue('X'); x2 = getValue('X');
printf("b eingeben ");
z2 = getValue('Z'); z2 = getValue('Z');
Vmiddle2(x2, z2); Vmiddle2(x2, z2);

Loading…
Cancel
Save