@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 552.000000
:time: 0.0017804130002332386
:time: 0.001761557999998331
- Testergebniss 60.000000
:time: 0.00491794099980325
:time: 0.0021446160008053994
- Testergebniss 4878.048780
:time: 0.003222309998818673
:time: 0.00189514900012
- Testergebniss 18.203304
:time: 0.003931907000151114
:time: 0.0028041349996783538
:time: 0.0018627720000949921
:time: 0.0017782340000849217
- Testergebniss 0.158038
:time: 0.005546435000724159
:time: 0.0019877250015269965
- Testergebniss 189.421906
:time: 0.0018890200008172542
:time: 0.0019505410000419943
- Testergebniss 16.034390
:time: 0.0016974339996522758
:time: 0.004336714999226388
- Testergebniss 0.051041
:time: 0.0014716960013174685
:time: 0.002983173999382416
- Testergebniss 251.000000
:time: 0.001646841001274879
:time: 0.001606047999302973
- Testergebniss 1.440000
:time: 0.0018257169995195
:time: 0.001648126999498345
- Testergebniss -12.096026
:time: 0.002026236999881803
:time: 0.0031450299993593944
- '96600.000000'
:time: 0.002102997999827494
:time: 0.003909514000042691
@ -15,4 +15,4 @@
:failed: 0
:stdout: []
:time: 0.0026261009988957085
:time: 0.0030360079999809386
:time: 0.005395653999585193
:time: 0.0015205409999907715
:time: 0.0015696239988756133
:time: 0.005406865999248112
:time: 0.0016816280003695283
:time: 0.0017805900006351294
:time: 0.001683295000475482
:time: 0.0017829239986895118
:time: 0.0016756210006860783
:time: 0.0022317710008792346
:time: 0.0015711260002717609
:time: 0.0024374549993808614
:time: 0.0018666260002646595
:time: 0.001756851999743958
:time: 0.0018209059999207966
:time: 0.002135062999514048
:time: 0.0032439990009152098
:time: 0.0023879840009612963
:time: 0.002459958001054474
:time: 0.001585478999913903
:time: 0.0025641580014053034
:time: 0.0019305590012663743
:time: 0.001945666999745299
:time: 0.004239556999891647
:time: 0.001544736000141711
:time: 0.001731761998598813
:time: 0.002150717999029439
:time: 0.0025617459996283287
:time: 0.0018433610002830392
:time: 0.0017148059996543452
:time: 0.0021236239990685135
:time: 0.003085691001615487
- Testergebniss 3450.000000
:time: 0.001939702000527177
:time: 0.001809663999665645
- Testergebniss 225.000000
:time: 0.0016371870005968958
:time: 0.0018674390012165532
@ -15,6 +15,5 @@
- The binomial coefficient C(2, -1) is 1
- Testergebniss 1
:time: 0.002219015999799012
:time: 0.002445379999699071
- Testergebniss 62.500000
:time: 0.00194221800120431
:time: 0.0016374919996451354
- Testergebniss 4000.000000
:time: 0.001711550999971223
:time: 0.002038440999967861
- Testergebniss 27.136929
:time: 0.0017669599983491935
:time: 0.00298699800077884
- Testergebniss 1141.000000
:time: 0.0018872260006901342
:time: 0.0017009420007525478
- Testergebniss 21.739130
:time: 0.0021236690008663572
:time: 0.0026781649994518375
:time: 0.0018104690007021418
:time: 0.003882367998812697
@ -17,4 +17,4 @@
- 'Flaeche vom Trapez beträgt: 21.000000'
- Testergebniss 21.000000
:time: 0.001722078000966576
:time: 0.0022368500012817094
:time: 0.003141678000247339
:time: 0.0017837289997260086
@ -262,6 +262,5 @@ int binomial_coefficient(int n, int k) {
for (int i = 0; i < k; ++i) {
result = result * (n - i) / (i + 1);
}
printf("The binomial coefficient C(%d, %d) is %d\n", n, k, result);
return result;
@ -201,7 +201,6 @@ int main()
z = getValue('B');
probability_from_tree(x, y, z);
printf("Enter a and b to calculate the binomial coefficient: ");
a = getValue('a');
b = getValue('b')
binomial_coefficient(a, b);