Cody

Solution 943297

Submitted on 26 Aug 2016 by Martin C.
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
peta = 40; nano_correct = 7.5; assert(isequal(round(peta_to_nano(peta)*1000)/1000,nano_correct))

p = 1.0000e+15 f = 4.0000e+16 lambda = 7.5000e-09 nano = 7.5000

2   Pass
peta = 250; nano_correct = 1.2; assert(isequal(round(peta_to_nano(peta)*10)/10,nano_correct))

p = 1.0000e+15 f = 2.5000e+17 lambda = 1.2000e-09 nano = 1.2000