Cody

Solution 466884

Submitted on 6 Jul 2014
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
%% M = [ 0.091273 0.060806 0.130562 0.076233 0.184484 0.170092 0.197685 0.244964 0.226948 0.308231 0.232963 0.309789 0.321582 0.329059 0.343480 0.384513 0.612326 0.505868 0.691264 0.529026 0.710301 0.595951 0.733409 0.637104 0.774992 0.649954 0.836475 0.717744] x = 0.881524; y_correct = 0.857148; assert(abs((new_point_fit(M,x)-y_correct)/y_correct)<=0.1)
Error: Assertion failed.
2   Fail
%% M = [ 0.016105 0.042602 0.048845 0.100409 0.135680 0.162205 0.382335 0.174843 0.409982 0.219579 0.505942 0.247533 0.535645 0.463607 0.553299 0.539963 0.562505 0.629237 0.605515 0.665519 0.609794 0.668600 0.718378 0.761209 0.803968 0.822402 0.996661 0.883440] x = 0.999173; y_correct = 0.954605; assert(abs((new_point_fit(M,x)-y_correct)/y_correct)<=0.1)
Error: Assertion failed.
3   Fail
%% M = [ 0.0705596 0.0010882 0.0880270 0.1284582 0.1557501 0.1819287 0.4294053 0.1980035 0.4354657 0.4193907 0.5222490 0.6849248 0.6131108 0.7573705 0.6277358 0.7864304 0.6678857 0.8790018] x = 0.9916796; y_correct = 0.7335639; assert(abs((new_point_fit(M,x)-y_correct)/y_correct)<=0.1)
Error: Assertion failed.