Cody

Solution 2124892

Submitted on 11 Feb 2020
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
t = 0:0.001:1; x = cos(2*pi*5*t); y_correct = cos(2*pi*10*t); %assert(isequal(SineDublr(x),y_correct)); assert(sqrt(sum((y_correct-SineDublr(x)).^2))<0.1);

Assertion failed.

H9cmuj6c7xrtqaaaabjru5erkjggg=="}]
2   Fail
t = 0:0.002:1; x = cos(2*pi*15*t)+2; y_correct = cos(2*pi*30*t)+2; %assert(isequal(SineDublr(x),y_correct)); assert(sqrt(sum((y_correct-SineDublr(x)).^2))<0.1);

Assertion failed.

+umnci4z4zmg7zpm8ddffx3dcxp3ywdgh6obogoaogoaogoaogoaqboaqboaqboaqboaqboaqgyaqgyaqgyaqgaaqggaqggaqggaqggaqgggagcgagcgagcgagcgagcoggcoggcoggccxp8faxn0+1e0waiaaaaasuvork5cyii="}]
3   Fail
t = 0:0.001:1; x = 3*cos(2*pi*35*t)-2; y_correct = 3*cos(2*pi*70*t)-2; %assert(isequal(SineDublr(x),y_correct)); assert(sqrt(sum((y_correct-SineDublr(x)).^2))<0.1);

Assertion failed.

8bqy3997ig0lyaaaaasuvork5cyii="}]
4   Fail
t = 0:0.001:1; freq = floor(rand*100); offset = floor(rand*10); amp = floor(rand*10); x = amp*cos(2*pi*freq*t)-offset; y_correct = amp*cos(2*pi*2*freq*t)-offset; %assert(isequal(SineDublr(x),y_correct)); assert(sqrt(sum((y_correct-SineDublr(x)).^2))<0.1);

Assertion failed.

Xydwejdz8j2aaaaaelftksuqmcc"}]

Suggested Problems