Browse Source

refactory:probability_from_tree

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

BIN
build/test/out/test_trapezFlaeche.out

BIN
build/test/out/test_vPunkt.out

2
build/test/results/test_Akkortrichtsatz.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 552.000000
:time: 0.007866255999033456
:time: 0.0021576819999609143

2
build/test/results/test_Anlagenabnutzungsgrad.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.004099502999451943
:time: 0.003508665999106597

2
build/test/results/test_Anlagenintensitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4878.048780
:time: 0.002544674000091618
:time: 0.002917410000009113

2
build/test/results/test_Anlagenproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 18.203304
:time: 0.0017637499986449257
:time: 0.005943973999819718

2
build/test/results/test_Arbeitsproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.0033360410016030073
:time: 0.0016179200010810746

2
build/test/results/test_Cashflow_zu_Gesamtkapital.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.158038
:time: 0.00272540199875948
:time: 0.0013433690000965726

2
build/test/results/test_Dynamische_Amortisationszeit.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 189.421906
:time: 0.0017185569995490368
:time: 0.0013859850005246699

2
build/test/results/test_Effektivverzinsung.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 16.034390
:time: 0.0016871799998625647
:time: 0.0021734720012318576

2
build/test/results/test_Finanzierungsregeln.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.051041
:time: 0.002001824999751989
:time: 0.0017803640002966858

2
build/test/results/test_GewinnMaximum.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 251.000000
:time: 0.001410099999702652
:time: 0.0022076269997342024

2
build/test/results/test_Kalkulatorische_Zinsen.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1.440000
:time: 0.003338993999932427
:time: 0.006400242999006878

2
build/test/results/test_Kritische_Menge.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss -12.096026
:time: 0.0018501929989724886
:time: 0.002303446000951226

2
build/test/results/test_Stueckzeitakkort.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- '96600.000000'
:time: 0.0015410480009450112
:time: 0.002429381000183639

2
build/test/results/test_Vadd.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0018041010007436853
:time: 0.0013770579989795806

2
build/test/results/test_Vaddx2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002057634999800939
:time: 0.001445219999368419

2
build/test/results/test_Vaddx3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0021860500000911998
:time: 0.002078814000924467

2
build/test/results/test_Vangle.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0037403749993245583
:time: 0.0033905760010384256

2
build/test/results/test_Vlength.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0016802390000520973
:time: 0.002578505000201403

2
build/test/results/test_Vmiddle.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.004738868999993429
:time: 0.00277927500064834

2
build/test/results/test_Vmiddle2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.004648265001378604
:time: 0.0034392329998809146

2
build/test/results/test_Vmiddle3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0018271660010213964
:time: 0.007561193999208626

2
build/test/results/test_Vmultiplier.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0018927809996966971
:time: 0.002655837999554933

2
build/test/results/test_Vmultiplier2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.001803843999368837
:time: 0.001532724998469348

2
build/test/results/test_Vmultiplier3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0012804279995179968
:time: 0.0017408980002073804

2
build/test/results/test_Vparallel.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0024604820009699324
:time: 0.003320322999570635

2
build/test/results/test_Vshift.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0018329430004087044
:time: 0.001449869001589832

2
build/test/results/test_Vskalort.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002142957999240025
:time: 0.0018154090012103552

2
build/test/results/test_Vsubstract.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0015674200003559235
:time: 0.0022959180005273083

2
build/test/results/test_Vsubstract2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0016028030004235916
:time: 0.002155036001568078

2
build/test/results/test_Vsubstract3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002439313000650145
:time: 0.0029436249988066265

2
build/test/results/test_Zeitlohn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 3450.000000
:time: 0.0021390590009104926
:time: 0.0017063979994418332

2
build/test/results/test_angebotserfolg.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 225.000000
:time: 0.002358757999900263
:time: 0.0014974500008975156

2
build/test/results/test_eigenkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 62.500000
:time: 0.001762895000865683
:time: 0.0024017040013859514

2
build/test/results/test_erloesfunktion.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4000.000000
:time: 0.0013848620001226664
:time: 0.0023601699995197123

2
build/test/results/test_gesamtkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 27.136929
:time: 0.0018161459993280005
:time: 0.0015163669995672535

2
build/test/results/test_grenzGewinn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1141.000000
:time: 0.001778494999598479
:time: 0.0013913610000599874

2
build/test/results/test_marktanteil.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 21.739130
:time: 0.0032300359998771455
:time: 0.0018299700004718034

5
build/test/results/test_probability_from_tree.pass

@ -14,6 +14,5 @@
:passed: 1
:failed: 0
:ignored: 0
:stdout:
- 'The probability is: 0.050000'
:time: 0.001313610999204684
:stdout: []
:time: 0.002275183998790453

2
build/test/results/test_trapezFlaeche.pass

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

2
build/test/results/test_vPunkt.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002123493999533821
:time: 0.0023238069989020005

1
src/funktion.c

@ -251,6 +251,5 @@ float vPunkt(float x1, float x2, float x3, float z1, float z2, float z3, float p
double probability_from_tree(double successful_outcomes, double total_outcomes, double branches) {
double result;
result = successful_outcomes / (total_outcomes * branches);
printf("The probability is: %lf\n", result);
return result;
}

1
src/main.c

@ -196,7 +196,6 @@ int main()
p3 = getValue('P');
vPunkt(x1,x2,x3,z1,z2,z3,p1,p2,p3);
printf("Enter the number of successful outcomes, total outcomes, and number of branches: ");
x = getValue('S');
y = getValue('T');
z = getValue('B');

Loading…
Cancel
Save