Cody

# Problem 2002. Schrödinger dog

Solution 3111106

Submitted on 8 Oct 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
y_correct = 1; assert(isequal(dog,y_correct))

k = 0.3178

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test1 (line 2) assert(isequal(dog,y_correct))

2   Fail
y_correct = 0; assert(isequal(dog,y_correct))

k = 0.4571

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test2 (line 2) assert(isequal(dog,y_correct))

3   Fail
y_correct = 0; assert(isequal(dog,y_correct))

k = 0.9256

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test3 (line 2) assert(isequal(dog,y_correct))

4   Fail
y_correct = true; assert(isequal(dog,y_correct))

k = 0.9166

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test4 (line 2) assert(isequal(dog,y_correct))

5   Fail
y_correct = false; assert(isequal(dog,y_correct))

k = 0.3582

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test5 (line 2) assert(isequal(dog,y_correct))

6   Fail
y_correct = 1; assert(isequal(dog,y_correct))

k = 0.0591

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test6 (line 2) assert(isequal(dog,y_correct))

7   Fail
y_correct = 42; assert(isequal(dog,y_correct))

k = 0.0259

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test7 (line 2) assert(isequal(dog,y_correct))

8   Fail
y_correct = pi; assert(isequal(dog,y_correct))

k = 0.0945

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test8 (line 2) assert(isequal(dog,y_correct))

9   Fail
y_correct = 'pie'; assert(isequal(dog,y_correct))

k = 0.0813

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test9 (line 2) assert(isequal(dog,y_correct))

10   Fail
y_correct = true; assert(isequal(dog,y_correct))

k = 0.1137

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test10 (line 2) assert(isequal(dog,y_correct))

11   Fail
y_correct = 1; assert(isequal(dog,y_correct))

k = 0.0887

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test11 (line 2) assert(isequal(dog,y_correct))

12   Fail
y_correct = 0; assert(isequal(dog,y_correct))

k = 0.0956

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test12 (line 2) assert(isequal(dog,y_correct))

13   Fail
y_correct = -1; assert(isequal(dog,y_correct))

k = 0.5627

Unrecognized function or variable 'y'. Error in dog (line 17) woof=y Error in Test13 (line 2) assert(isequal(dog,y_correct))

14   Fail
y_correct = 'woof'; assert(isequal(dog('what is your name?'),y_correct))

Error using dog Too many input arguments. Error in Test14 (line 2) assert(isequal(dog('what is your name?'),y_correct))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!