Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a=1;
b=1;
c=1;
d=1234;
[v1,v2] = directionvectors(a,b,c,d);
assert(sum([a b c].*(v1+[0 0 d/c]))==d);
assert(sum([a b c].*(v2+[0 0 d/c]))==d);
assert(dot(v1,v2)~=0);
|
2 | Pass |
%%
a=0;
b=5;
c=7;
d=1234;
[v1,v2] = directionvectors(a,b,c,d);
assert(sum([a b c].*(v1+[0 0 d/c]))==d);
assert(sum([a b c].*(v2+[0 0 d/c]))==d);
assert(dot(v1,v2)~=0);
|
Which values occur exactly three times?
3306 Solvers
Get the length of a given vector
1359 Solvers
Simple equation: Annual salary
3407 Solvers
90 Solvers
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
197 Solvers