Cody

Solution 1992696

Submitted on 27 Oct 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
n = 0; V_correct = 1.0; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test1 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

2   Fail
n = 1; V_correct = 1.0; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test2 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

3   Fail
n = 2; V_correct = 0.433012701892219; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test3 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

4   Fail
n = 3; V_correct = 0.117851130197758; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test4 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

5   Fail
n = 4; V_correct = 0.023292374765623; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test5 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

6   Fail
n = 5; V_correct = 0.003608439182435; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test6 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

7   Fail
n = 6; V_correct = 0.000459331824838; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test7 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

8   Fail
n = 7; V_correct = 0.000049603174603; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test8 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

9   Fail
n = 8; V_correct = 0.000004650297619; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test9 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

10   Fail
n = 9; V_correct = 0.000000385125244; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test10 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

11   Fail
n = 10; V_correct = 0.000000028561653; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test11 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

12   Fail
n = 11; V_correct = 0.000000001917653; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test12 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

13   Fail
n = 12; V_correct = 0.000000000117613; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test13 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

14   Fail
n = 13; V_correct = 0.000000000006639; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test14 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

15   Fail
n = 14; V_correct = 0.000000000000347; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test15 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

16   Fail
n = 15; V_correct = 0.000000000000017; assert(abs(simplexvolume(n)-V_correct)<4*eps)

Unrecognized function or variable 'x'. Error in simplexvolume (line 2) V = sqrt(n+1)/(factorial(x)*sqrt(2^x)) Error in Test16 (line 3) assert(abs(simplexvolume(n)-V_correct)<4*eps)

Suggested Problems

More from this Author18