Test  Status  Code Input and Output 

1  Pass 
a=1;
b=2;
c=1;
t=3;
s=15;
y=SolveEquation(a,b,c,t,s)
y_correct = [ 0.5700 , 2.5700]
tolerance = 1e4;
assert(abs(y(1)y_correct(1))<tolerance)
assert(abs(y(2)y_correct(2))<tolerance)
x =
2.4650
x2 =
1.0000 2.0000 1.4650
y =
2.5700
0.5700
xy =
0.5700 2.5700
y =
0.5700 2.5700
y_correct =
0.5700 2.5700

2  Pass 
a=1;
b=2;
c=2;
t=exp(1);
s=exp(1);
y=SolveEquation(a,b,c,t,s)
y_correct = [ 1 , 1]
tolerance = 1e4;
assert(abs(y(1)y_correct(1))<tolerance)
assert(abs(y(2)y_correct(2))<tolerance)
x =
1
x2 =
1 2 1
y =
1
1
xy =
1 1
y =
1 1
y_correct =
1 1

131 Solvers
Replace every 3rd element in a vector with 4
124 Solvers
91 Solvers
81 Solvers
Find scalar product of two polynomials a and b, given as vector array.
35 Solvers