Note that using rand() with round() will not produce the correct answer. There is another function that must be used instead.
What can be used? I am a bit confused.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
N = 6;
rng(7);
assert((round(abs(loln(N)),7) == 7.2900e-05))
dice_diff =
-7.2890e-05
|
2 | Pass |
N = 10;
rng(1000);
assert((round(abs(loln(N)),7) == 8.7600e-05))
dice_diff =
-8.7570e-05
|
6718 Solvers
Sort a list of complex numbers based on far they are from the origin.
4326 Solvers
Determine Whether an array is empty
646 Solvers
170 Solvers
Rounding off numbers to n decimals
1050 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!