Test  Status  Code Input and Output 

1  Pass 
x=2; y=2; A=2; B=2; C=4;
y_correct = 1.4142;
assert(abs(normalLen(x,y,A,B,C)y_correct)<=1e4)
l =
function_handle with value:
@(t)[0;C/B]+t*[B;A]
th =
0.5000
e =
1
1
d =
1.4142

2  Pass 
x=3; y=4; A=3; B=4; C=5;
y_correct = 6;
assert(normalLen(x,y,A,B,C)y_correct==0)
l =
function_handle with value:
@(t)[0;C/B]+t*[B;A]
th =
0.1500
e =
3.6000
4.8000
d =
6

3  Pass 
x=4; y=5; A=3; B=4; C=5;
y_correct = 7.4;
display(normalLen(x,y,A,B,C))
assert(abs(normalLen(x,y,A,B,C)y_correct)<1e1)
l =
function_handle with value:
@(t)[0;C/B]+t*[B;A]
th =
0.1900
e =
4.7600
5.6800
d =
7.4108
7.4108
l =
function_handle with value:
@(t)[0;C/B]+t*[B;A]
th =
0.1900
e =
4.7600
5.6800
d =
7.4108

4  Pass 
x=0;y=12345;A=0;B=1;C=0;
y_correct = 12345;
display(normalLen(x,y,A,B,C))
assert(abs(normalLen(x,y,A,B,C)y_correct)==0)
l =
function_handle with value:
@(t)[0;C/B]+t*[B;A]
th =
0
e =
0
12345
d =
12345
12345
l =
function_handle with value:
@(t)[0;C/B]+t*[B;A]
th =
0
e =
0
12345
d =
12345

5  Pass 
x=0;y=12345;A=0;B=1;C=0;
y_correct = 12345;
display(normalLen(x,y,A,B,C))
assert(abs(normalLen(x,y,A,B,C)y_correct)==0)
l =
function_handle with value:
@(t)[0;C/B]+t*[B;A]
th =
0
e =
0
12345
d =
12345
12345
l =
function_handle with value:
@(t)[0;C/B]+t*[B;A]
th =
0
e =
0
12345
d =
12345

856 Solvers
Read a column of numbers and interpolate missing data
1293 Solvers
373 Solvers
1350 Solvers
309 Solvers