Cody

Solution 2255283

Submitted on 5 May 2020 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
d = 35786000; f = 10e9; y_correct = 2.035220463738069e+02; assert(abs(FSPL(d,f)-y_correct)<10*eps(y_correct))

loss = 203.5220

2   Pass
d = 41950000; f = 1.98e9; y_correct = 1.908357263304084e+02; assert(abs(FSPL(d,f)-y_correct)<10*eps(y_correct))

loss = 190.8357

3   Pass
s=importdata('FSPL.m'); y_correct=false; assert(isequal(sum(contains(s,'regexp')),y_correct))