Cody

Solution 1880301

Submitted on 21 Jul 2019 by William
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   Pass
x = [2.7 3.3 2.0 3.3 1.7 3.7]; vds_correct = 0.8046; assert(isequal(vogel_dobbener_normalized(x), vds_correct))

2   Pass
x = [linspace(0, 0, 5) linspace(1, 1, 20) linspace(2, 2, 43) linspace(3, 3, 13)]; vds_correct = 0.6205; assert(isequal(vogel_dobbener_normalized(x), vds_correct))

3   Pass
x = [linspace(10, 10, 4) linspace(11, 11, 17) linspace(99, 99, 38) linspace(7777, 7777, 22)]; vds_correct = 0.6511; assert(isequal(vogel_dobbener_normalized(x), vds_correct))

4   Pass
x = [-pi -pi -pi i i i]; vds_correct = 1; assert(isequal(vogel_dobbener_normalized(x), vds_correct))

5   Pass
x = [7777 7777 7777 7777 7777 7777]; vds_correct = 0; assert(isequal(vogel_dobbener_normalized(x), vds_correct))