Browse Source

refactoring:Vangle

main
fdai6887 2 years ago
parent
commit
0e12973323
  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_trapezFlaeche.out
  40. 2
      build/test/results/test_Akkortrichtsatz.pass
  41. 2
      build/test/results/test_Anlagenabnutzungsgrad.pass
  42. 2
      build/test/results/test_Anlagenintensitaet.pass
  43. 2
      build/test/results/test_Anlagenproduktivitaet.pass
  44. 2
      build/test/results/test_Arbeitsproduktivitaet.pass
  45. 2
      build/test/results/test_Cashflow_zu_Gesamtkapital.pass
  46. 2
      build/test/results/test_Dynamische_Amortisationszeit.pass
  47. 2
      build/test/results/test_Effektivverzinsung.pass
  48. 2
      build/test/results/test_Finanzierungsregeln.pass
  49. 2
      build/test/results/test_GewinnMaximum.pass
  50. 2
      build/test/results/test_Kalkulatorische_Zinsen.pass
  51. 2
      build/test/results/test_Kritische_Menge.pass
  52. 2
      build/test/results/test_Stueckzeitakkort.pass
  53. 2
      build/test/results/test_Vadd.pass
  54. 2
      build/test/results/test_Vaddx2.pass
  55. 2
      build/test/results/test_Vaddx3.pass
  56. 6
      build/test/results/test_Vangle.pass
  57. 2
      build/test/results/test_Vlength.pass
  58. 2
      build/test/results/test_Vmiddle.pass
  59. 2
      build/test/results/test_Vmiddle2.pass
  60. 2
      build/test/results/test_Vmiddle3.pass
  61. 2
      build/test/results/test_Vmultiplier.pass
  62. 2
      build/test/results/test_Vmultiplier2.pass
  63. 2
      build/test/results/test_Vmultiplier3.pass
  64. 2
      build/test/results/test_Vparallel.pass
  65. 2
      build/test/results/test_Vshift.pass
  66. 2
      build/test/results/test_Vskalort.pass
  67. 2
      build/test/results/test_Vsubstract.pass
  68. 2
      build/test/results/test_Vsubstract2.pass
  69. 2
      build/test/results/test_Vsubstract3.pass
  70. 2
      build/test/results/test_Zeitlohn.pass
  71. 2
      build/test/results/test_angebotserfolg.pass
  72. 2
      build/test/results/test_eigenkapital_Rentabilitaeten.pass
  73. 2
      build/test/results/test_erloesfunktion.pass
  74. 2
      build/test/results/test_gesamtkapital_Rentabilitaeten.pass
  75. 2
      build/test/results/test_grenzGewinn.pass
  76. 2
      build/test/results/test_marktanteil.pass
  77. 2
      build/test/results/test_trapezFlaeche.pass
  78. 3
      src/funktion.c
  79. 9
      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_trapezFlaeche.out

2
build/test/results/test_Akkortrichtsatz.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 552.000000
:time: 0.003636677000031341
:time: 0.002399888999207178

2
build/test/results/test_Anlagenabnutzungsgrad.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.003507821999846783
:time: 0.001325733999692602

2
build/test/results/test_Anlagenintensitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4878.048780
:time: 0.002491379999810306
:time: 0.002281396000398672

2
build/test/results/test_Anlagenproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 18.203304
:time: 0.0020424940003067604
:time: 0.0023092510000424227

2
build/test/results/test_Arbeitsproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.0029920909992142697
:time: 0.0023830989994166885

2
build/test/results/test_Cashflow_zu_Gesamtkapital.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.158038
:time: 0.0014707629998156335
:time: 0.007011855999735417

2
build/test/results/test_Dynamische_Amortisationszeit.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 189.421906
:time: 0.0021627099995384924
:time: 0.0013021199993090704

2
build/test/results/test_Effektivverzinsung.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 16.034390
:time: 0.0024297410000144737
:time: 0.002492425999662373

2
build/test/results/test_Finanzierungsregeln.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.051041
:time: 0.00305657999979303
:time: 0.00147429199932958

2
build/test/results/test_GewinnMaximum.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 251.000000
:time: 0.0037081790005686344
:time: 0.001873303999673226

2
build/test/results/test_Kalkulatorische_Zinsen.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1.440000
:time: 0.0017208929994012578
:time: 0.0017593940010556253

2
build/test/results/test_Kritische_Menge.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss -12.096026
:time: 0.003995162000137498
:time: 0.003066676999878837

2
build/test/results/test_Stueckzeitakkort.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- '96600.000000'
:time: 0.001518885999757913
:time: 0.0021466230009536957

2
build/test/results/test_Vadd.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0016438989996458986
:time: 0.0017158040009235265

2
build/test/results/test_Vaddx2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0020302789998822846
:time: 0.009013839999170159

2
build/test/results/test_Vaddx3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0016461750001326436
:time: 0.0030124209988571238

6
build/test/results/test_Vangle.pass

@ -14,7 +14,5 @@
:passed: 1
:failed: 0
:ignored: 0
:stdout:
- 'Der Winkel betraegt: nan'
- ''
:time: 0.005512795999493392
:stdout: []
:time: 0.0015157560010266025

2
build/test/results/test_Vlength.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0017696009999781381
:time: 0.0024006630010262597

2
build/test/results/test_Vmiddle.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0017347259999951348
:time: 0.002326756999536883

2
build/test/results/test_Vmiddle2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0016793879995020689
:time: 0.002608106000479893

2
build/test/results/test_Vmiddle3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0015692110000600223
:time: 0.0040471239990438335

2
build/test/results/test_Vmultiplier.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0017407859995728359
:time: 0.0018804369992722059

2
build/test/results/test_Vmultiplier2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002005395000196586
:time: 0.006173394000143162

2
build/test/results/test_Vmultiplier3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.00319874799970421
:time: 0.0031467860007978743

2
build/test/results/test_Vparallel.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0022599650001211558
:time: 0.0034395319999021012

2
build/test/results/test_Vshift.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0031051680007294635
:time: 0.0019837849995383294

2
build/test/results/test_Vskalort.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.006159935000141559
:time: 0.00292253299994627

2
build/test/results/test_Vsubstract.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0069610629998351214
:time: 0.0017591699997865362

2
build/test/results/test_Vsubstract2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0025703319997774088
:time: 0.0025469290012551937

2
build/test/results/test_Vsubstract3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.001652977999583527
:time: 0.0018718180017458508

2
build/test/results/test_Zeitlohn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 3450.000000
:time: 0.002210190000369039
:time: 0.004910883000775357

2
build/test/results/test_angebotserfolg.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 225.000000
:time: 0.0017859230001704418
:time: 0.001999018999413238

2
build/test/results/test_eigenkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 62.500000
:time: 0.002008553999985452
:time: 0.003382340000825934

2
build/test/results/test_erloesfunktion.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4000.000000
:time: 0.0019638029998532147
:time: 0.0019166260008205427

2
build/test/results/test_gesamtkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 27.136929
:time: 0.0020353720001367037
:time: 0.0038596659996983362

2
build/test/results/test_grenzGewinn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1141.000000
:time: 0.0026516950001678197
:time: 0.008569053999963216

2
build/test/results/test_marktanteil.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 21.739130
:time: 0.001674809999713034
:time: 0.003991020999819739

2
build/test/results/test_trapezFlaeche.pass

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

3
src/funktion.c

@ -232,7 +232,6 @@ double Vangle(float x1, float x2, float x3, float z1, float z2, float z3) {
double p = sqrt(x1 * x1 + x2 * x2 + x3 * x3);
double q = sqrt(z1 * z1 + z2 * z2 + z3 * z3);
double s = i / (p * q);
double t = acos(s) * 180 / M_PI;
printf("Der Winkel betraegt: %f\n\n", t);
double result = acos(s) * 180 / M_PI;
return 11;
}

9
src/main.c

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