Cody

# Problem 481. Rosenbrock's Banana Function and its derivatives

Solution 64824

Submitted on 22 Mar 2012
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

``` ```

2   Fail
%% x = [0; 0]; assert(isequal(Rosenbrock_banana(x),1))

```Error: License checkout failed. License Manager Error -5 Cannot find a license for Symbolic_Toolbox. Troubleshoot this issue by visiting: <a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a> Diagnostic Information: Feature: Symbolic_Toolbox License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses Licensing error: -5,0. ```

3   Fail
%% x = [1; 1]; assert(isequal(Rosenbrock_banana(x),0))

```Error: License checkout failed. License Manager Error -5 Cannot find a license for Symbolic_Toolbox. Troubleshoot this issue by visiting: <a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a> Diagnostic Information: Feature: Symbolic_Toolbox License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses Licensing error: -5,0. ```

4   Fail
%% x = [1; -1]; assert(isequal(Rosenbrock_banana(x),400))

```Error: License checkout failed. License Manager Error -5 Cannot find a license for Symbolic_Toolbox. Troubleshoot this issue by visiting: <a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a> Diagnostic Information: Feature: Symbolic_Toolbox License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses Licensing error: -5,0. ```

5   Fail
%% x = [-1; 0.5]; assert(isequal(Rosenbrock_banana(x),29))

```Error: License checkout failed. License Manager Error -5 Cannot find a license for Symbolic_Toolbox. Troubleshoot this issue by visiting: <a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a> Diagnostic Information: Feature: Symbolic_Toolbox License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses Licensing error: -5,0. ```

6   Fail

```Error: License checkout failed. License Manager Error -5 Cannot find a license for Symbolic_Toolbox. Troubleshoot this issue by visiting: <a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a> Diagnostic Information: Feature: Symbolic_Toolbox License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses Licensing error: -5,0. ```

7   Fail
%% x = [0; 0]; [~,~,Hess]=Rosenbrock_banana(x); assert(isequal(Hess,diag([2, 200])))

```Error: License checkout failed. License Manager Error -5 Cannot find a license for Symbolic_Toolbox. Troubleshoot this issue by visiting: <a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a> Diagnostic Information: Feature: Symbolic_Toolbox License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses Licensing error: -5,0. ```

8   Fail
```Error: License checkout failed. License Manager Error -5 Cannot find a license for Symbolic_Toolbox. Troubleshoot this issue by visiting: <a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a> Diagnostic Information: Feature: Symbolic_Toolbox License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses Licensing error: -5,0. ```
```Error: License checkout failed. License Manager Error -5 Cannot find a license for Symbolic_Toolbox. Troubleshoot this issue by visiting: <a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a> Diagnostic Information: Feature: Symbolic_Toolbox License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses Licensing error: -5,0. ```
```Error: License checkout failed. License Manager Error -5 Cannot find a license for Symbolic_Toolbox. Troubleshoot this issue by visiting: <a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a> Diagnostic Information: Feature: Symbolic_Toolbox License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses Licensing error: -5,0. ```