Cody

Solution 677688

Submitted on 29 May 2015 by Moe_2015
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
%% n = 0; y_correct = 0; tolerance = 1e-12; assert(abs(no_mult_div(n)-y_correct)<tolerance);

y = 0

2   Pass
%% n = 0.1; y_correct = 0.0750; tolerance = 1e-12; assert(abs(no_mult_div(n)-y_correct)<tolerance);

y = 0.0750

3   Pass
%% n = 1; y_correct = 0.7500; tolerance = 1e-12; assert(abs(no_mult_div(n)-y_correct)<tolerance);

y = 0.7500

4   Pass
%% n = -1; y_correct = -0.7500; tolerance = 1e-12; assert(abs(no_mult_div(n)-y_correct)<tolerance);

y = -0.7500

More from this Author1