Cody

Solution 1744520

Submitted on 7 Mar 2019
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
v_in = 100; % km/h yearsCorrect = 241830; % years years = becomeOneSecondYounger(v_in); assert(abs(yearsCorrect-years)<10)

gam = 1.0000 years = 5.6896e+05

Assertion failed.

2   Fail
v_in = 1000; % km/h yearsCorrect = 2418.7; % years years = becomeOneSecondYounger(v_in); assert(abs(yearsCorrect-years)<0.1)

gam = 1.0000 years = 5.7078e+03

Assertion failed.

3   Fail
v_in = 10000; % km/h yearsCorrect = 24.187; % years years = becomeOneSecondYounger(v_in); assert(abs(yearsCorrect-years)<0.01)

gam = 1.0000 years = 57.0776

Assertion failed.

Suggested Problems