Cody

# Problem 2375. Obscured by Earth

Solution 1712957

Submitted on 22 Jan 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
x1 = [10e6 10e6 10e6]; x2 = x1.*[-1 -1 1]; assert(isequal(in_los(x1, x2), true))

Undefined function or variable 's1'. Error in in_los (line 2) s1=s1'; Error in Test1 (line 3) assert(isequal(in_los(x1, x2), true))

2   Fail
x1 = [10e6 10e6 10e6]; x2 = 2*x1; assert(isequal(in_los(x1, x2), true))

Undefined function or variable 's1'. Error in in_los (line 2) s1=s1'; Error in Test2 (line 3) assert(isequal(in_los(x1, x2), true))

3   Fail
x1 = [10e6 10e6 10e6]; x2 = -x1; assert(isequal(in_los(x1, x2), false))

Undefined function or variable 's1'. Error in in_los (line 2) s1=s1'; Error in Test3 (line 3) assert(isequal(in_los(x1, x2), false))

4   Fail
x1 = 2*(6378137+1e-3)/sqrt(3)*[1 1 0]/sqrt(2); x2 = 2*(6378137+1e-3)/sqrt(3)*[1 0 1]/sqrt(2); assert(isequal(in_los(x1, x2), true))

Undefined function or variable 's1'. Error in in_los (line 2) s1=s1'; Error in Test4 (line 3) assert(isequal(in_los(x1, x2), true))

5   Fail
x1 = 2*(6378137-1e-3)/sqrt(3)*[1 1 0]/sqrt(2); x2 = 2*(6378137-1e-3)/sqrt(3)*[1 0 1]/sqrt(2); assert(isequal(in_los(x1, x2), false))

Undefined function or variable 's1'. Error in in_los (line 2) s1=s1'; Error in Test5 (line 3) assert(isequal(in_los(x1, x2), false))