Cody

# Problem 473. old wine in a new bottle?

Solution 176874

Submitted on 13 Dec 2012 by Aurelien Queffurust
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   Pass
%% XXX = @(z)cos(z); assert(isequal(wine_tester(XXX),'old wine')) % cos

``` ans = 1 ```

2   Pass
%% XXX = @(z)sqrt(1-cos(z)^2); assert(isequal(wine_tester(XXX),'old wine')) % sin

``` ans = 1 ```

3   Pass
%% XXX = @(z)cos(z)^2+10; assert(isequal(wine_tester(XXX),'new wine')) %

``` ans = 0 ```

4   Pass
%% XXX = @(z)log10(10*z)-1; assert(isequal(wine_tester(XXX),'old wine')) % log10

``` ans = 0 ```

5   Pass
%% XXX = @(z)sin(log10(z)*0+z); assert(isequal(wine_tester(XXX),'old wine')) % sin

``` ans = 1 ```

6   Pass
%% XXX = @(z)sin(log10(z)); assert(isequal(wine_tester(XXX),'new wine')) %

``` ans = 0 ```

7   Pass
%% XXX = @(z)cosd(z); assert(isequal(wine_tester(XXX),'old wine')) % cosd

``` ans = 1 ```

8   Pass
%% XXX = @(z)exp(z); assert(isequal(wine_tester(XXX),'old wine')) % exp

``` ans = 1 ```