Cody

Solution 234069

Submitted on 22 Apr 2013
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, log in.

Test Suite

Test Status Code Input and Output
1   Pass
user_solution = fileread('simplexvolume.m'); assert(isempty(strfind(user_solution,'regexp'))); assert(isempty(strfind(user_solution,'2str'))); assert(isempty(strfind(user_solution,'str2'))); assert(isempty(strfind(user_solution,'interp')));
2   Pass
%% n = 0; V_correct = 1.0; assert(abs(simplexvolume(n)-V_correct)<4*eps)
3   Fail
%% n = 1; V_correct = 1.0; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
4   Fail
%% n = 2; V_correct = 0.433012701892219; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
5   Fail
%% n = 3; V_correct = 0.117851130197758; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
6   Fail
%% n = 4; V_correct = 0.023292374765623; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
7   Fail
%% n = 5; V_correct = 0.003608439182435; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
8   Fail
%% n = 6; V_correct = 0.000459331824838; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
9   Fail
%% n = 7; V_correct = 0.000049603174603; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
10   Fail
%% n = 8; V_correct = 0.000004650297619; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
11   Fail
%% n = 9; V_correct = 0.000000385125244; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
12   Fail
%% n = 10; V_correct = 0.000000028561653; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
13   Fail
%% n = 11; V_correct = 0.000000001917653; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
14   Fail
%% n = 12; V_correct = 0.000000000117613; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
15   Fail
%% n = 13; V_correct = 0.000000000006639; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
16   Fail
%% n = 14; V_correct = 0.000000000000347; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.
17   Fail
%% n = 15; V_correct = 0.000000000000017; assert(abs(simplexvolume(n)-V_correct)<4*eps)
Error: Assertion failed.